i developing vin code scanner app iphone. went when try open nib displays on nib file. here code button launches new nib file.
-(ibaction)done{ sellautoviewcontroller *autocontroller = [[sellautoviewcontroller alloc] initwithnibname: @"sellautoviewcontroller" bundle: nil]; [self.view addsubview:autocontroller.view]; }
and here did in sellautoviewcontroller.m use shoulautorotate function show in portrait mode nothing happened
-(bool)shouldautorotate{ return yes; } -(nsuinteger)supportedinterfaceorientations{ return (uiinterfaceorientationmaskportrait); }
here view before tapping done button load sellautoviewcontroller https://www.dropbox.com/s/8ssi4n50dcaqf28/screenshot%202013.05.06%2013.26.54.png , here happen when tap done button. :( https://www.dropbox.com/s/q6z6a4dr0n198n3/screenshot%202013.05.06%2013.27.13.png
replace done method below method
-(ibaction)done{ sellautoviewcontroller *autocontroller = [[sellautoviewcontroller alloc] initwithnibname: @"sellautoviewcontroller" bundle: nil]; [self presentviewcontroller:controller animated:yes completion:nil]; }
Comments
Post a Comment