How can I develop a toolbar like this one, with a button that when it’s pressed reveals another toolbar (sliding on top of the current one)? This is a screenshot from the iPhoto application from Apple.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I got this to work using the following (Disclaimer: THIS MAY VIOLATE THE HIG!):
I used the following code:
Using that code, the new UIToolbar slides on/off ON TOP OF the “base” UIToolbar.
Edit/Update
Let’s try a different tactic.
(This assumes you’re adding the
UIToolbarobjects to your xib at design time)-(void)viewDidLoadmethod (this will move the second toolbar off-screen):Then, use the code from above, but skip the calls to
addSubview:andremoveFromSuperview.Does that make sense now?