`
haoningabc
  • 浏览: 1444490 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ios的helloworld

    博客分类:
  • ios
ios 
阅读更多
参考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


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics