UIImagePickerController when dismissed pushes view to 20 px up in iOS 6.0 only

前端 未结 4 1169
执笔经年
执笔经年 2021-01-29 04:16

EDIT : I am using UIStoryBoard.

I have presented like this:

UIImagePickerController *imagePicker = [[UIImagePi         


        
4条回答
  •  南方客
    南方客 (楼主)
    2021-01-29 05:00

    The reason was i was setting frame of view controller which is in protrait mode as its previous view was in landscape mode.

    self.view.bounds = CGRectMake(0,0,...,...);
    

    Whenever imagepicker dissmiss got called it moved to original position as mentioned.

    Now changed in structure for orientation without setting self.view frame externally solved my problem.

提交回复
热议问题