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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -