使用信息黑暗

时间:2012-03-14 20:01:23

标签: ios5 xcode4 xcode4.2

我是一个iOS开发人员,无论如何新的,但为什么我想要点击信息按钮,然后它显示信息,但我有点击它的代码,但它进入一个空白的黑屏继承人代码

#import <UIKit/UIKit.h>

@interface FirstViewController : UIViewController


-(IBAction)infobuttonpressed:(id)sender;


@end






#import "FirstViewController.h"
#import "SecondViewController.h"


@implementation FirstViewController


-(IBAction)infobuttonpressed:(id)sender;

{
    SecondViewController *Second = [[SecondViewController alloc] initWithNibName:nil bundle:nil];

    Second.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:Second animated:YES];

}

谢谢,我真的很感激

0 个答案:

没有答案