Can’t seem to find a tutorial which does as the question title describes. I’d like to understand just where the UIToolbar needs to be declared and how to get it onto my view layer.
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.
UIToolbaris a subclass ofUIView, so the short answer to your question is: just like any other view.Specifically, this is an example of how to programmatically create a toolbar. The context in this snippet is
viewDidLoadof a view controller.See UIToolbar and UIBarButtonItem documentation for details.