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.
edit: seems of performance goes calling uibutton.titlelabel triggers autolayout constraint calculation
Comments
Post a Comment