How can change orientaiton of camera as orientation get changed of device in iPhone/ios/ipad? -
i have tabbar root controller. when choose camera view controller opens in portrait mode, , change orientation still in portrait mode , when pickerview dismissed , again change main view controller landscape mpde 5 tabbar items shown on left side. looks tabbar items icons disturbed. can 1 change camera orientation when phone orientaiton gets changed?
if (self.pickerview) { self.pickerview = nil; } self.pickerview = [[uiimagepickercontroller alloc] init]; self.pickerview.delegate = self; self.pickerview.sourcetype = uiimagepickercontrollersourcetypecamera; self.pickerview.showscameracontrols = yes; self.pickerview.wantsfullscreenlayout = yes; self.pickerview.navigationbarhidden = yes; self.pickerview.toolbarhidden = false; self.pickerview.allowsediting=yes; [self presentviewcontroller:self.pickerview animated:yes completion:null];
Comments
Post a Comment