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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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