ios - Optimizing button.titleLabel -


i optimizing app on iphone 4, it's fast on iphone 5 lagging little on iphone 4. using instrument time profiler, found 30% of time spent on [uibutton titlelabel], seems huge uikit simple task calling several times button.titlelabel.font , [button.titlelabel setfont:font]; don't see why using pointers take long. how optimise this? app using autolayout.

enter image description here

enter image description here

edit: seems of performance goes calling uibutton.titlelabel triggers autolayout constraint calculation


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -