I show an image on the navigation bar (I use UIImageView). Could you let me know how can I position it on a certain x, y location on the navigation bar?
Thanks.
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.
Assuming you’re adding the UIImageView as a subview of the UINavigationBar view, you can use the UIView method
initWithFrame:to choose a specificCGRectto draw the image view within. This method allows you to specify, in terms of the coordinate system of the superview, what rectangle your UIImageView should draw within.For more info, see this Apple documentation page (must be registered as an iPhone developer).