I have a UIBarButtonItem item in a xib file. I can set its identifier as play, pause, page curl etc in the xib file. Now how can I do that programmatically?
I have a UIBarButtonItem item in a xib file. I can set its identifier
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.
this should work (in viewDidLoad)
where systemItem is the
UIBarButtonSystemItemtype you want to use. full list of options here