ios的helloworld
参考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