ITeye博客

ios的helloworld

haoningabc · 2014-09-08 19:51 · ios · 开源软件 · iOS · Markdown

参考http://www.macx.cn/thread-2104805-1-1.html .h


#import <UIKit/UIKit.h>

@interface FirstViewController : UIViewController


-(IBAction)showMessagezhege;
@end

.m


#import "FirstViewController.h"

@interface FirstViewController ()

@end

@implementation FirstViewController

- (void)viewDidLoad
{
    [super viewdidload];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didreceivememorywarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)showMessagezhege
{
    UIAlertView *helloWorldAlert = [[uialertview alloc]
                                    initWithTitle:@"this is the first" message:@"first" delegate:nil cancelButtonTitle:@"cancel." otherButtonTitles:nil];
    
    [helloworldalert show];
}

@end


评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。