if i have multi uiimageviews (30 images) in the view, is it better (for performance) to insert the images from the code or insert them using the IB.
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.
It won’t be meaningfully different; most of the execution time will be loading the images themselves, rather than your code to create the image views in ObjC or through loading the nib.
So you should do what’s better for your performance as a programmer; typically, if there’s some kind of regular geometric pattern to the positions and names of the objects, code will be easier, but if not, IB will be easier.