iphone - presentModalViewController not working? -


i coded in button action like

  [uiview beginanimations:nil context:null]; [uiview setanimationduration:1.0]; [uiview setanimationtransition:uiviewanimationtransitionflipfromright forview:maindelegate.window cache:no]; [maindelegate.window addsubview:[self.calcentrycontroller view]]; [uiview commitanimations]; 

it works fine,but when use in calcentrycontroller.m in 1 action

  [self presentmodalviewcontroller:self.weeklyscorecontroller animated:yes]; 

to go viewcontroller , not working pls?

is there reason aren't using presentmodalviewcontroller calcentrycontroller? can set modaltransitionstyle on calcentrycontroller uimodaltransitionstylefliphorizontal , use presentmodalviewcontroller:animated instead of doing manual animations.

the reason may because code not calling functions viewwillappear:, viewdidappear:, etc., whereas presentmodalviewcontroller:animated calls right functions presenting new views.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -