ios - Setting up of View frame is taking more time -
i have uiviewcontroller view frame setting up. taking .6sec set up. please tell me how should that, takes less time.
here code snippet
hispanel=[[hisimageviewcontroller alloc] initwithnibname:@"hisimageviewcontroller" bundle:nil]; cgrect frame=_deviceview.bounds; frame.origin.x=1; frame.origin.y=1; frame.size.height-=2; frame.size.width-=2; nsdate *methodstart = [nsdate date]; hispanel.view.frame = frame; nsdate *methodfinish = [nsdate date]; nstimeinterval executiontime = [methodfinish timeintervalsincedate:methodstart]; execution time = 0.6 sec
Comments
Post a Comment