objective c - Ipad ModalView rotation problem -
i created uisplitview, after splitview load in landscape mode, display modalview using presentmodalview, problem modalview in portrait mode, can't find solution that.
uideviceorientation orientation = [[uidevice currentdevice] orientation];
it gives me landscape orientation using
uideviceorientation orientation = [[uiapplication sharedapplication] statusbarorientation]
gives me portrait. (not working under 4.2)
thanks,
i'm using nstimer , loas function , work, thats bit tricky solution found right now.
[nstimer scheduledtimerwithtimeinterval:0.1 target:self selector:@selector(loadingmodal:) userinfo:nil repeats:no];
Comments
Post a Comment