开发者

view not showing

Greetings guys,

I am a newbie in iphone programming. Basically my problem is the following:

I have a view which have inside an info button and a UIScrollView and inside this scrollview I have programatically added buttons with images.

When I press the info button the next view shows up, however when I press a button from scrollview nothing happens knowing that it is catching the click and it is accessing the function that is responsible for showing the next view.

- (void)showFlipid)sender{
  FlipsideViewController *controller = initWithNibName:@"FlipsideView" bundle:nil];
  controller.delegate = self;
  NSlog(@"1"); // IT IS SHOWING WHEN I开发者_开发问答 PRESS A BUTTON FROM UISCRoll
  controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
}

Please help


It seems that your code is missing critical line. Try to add :

[self presentModalViewController:navigation animated:YES];

at the end of your code.

BTW you should release the controller at the end.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜