第三天主要是做一个单击按钮打开一个页面的小程序,主要方法如下
-(IBAction)openweb:(id)sender{
NSString *urltext=[NSString stringWithFormat:@"http://blog.csdn.net/mmc7621"];
//通过sharedApplication方法来引用应用程序对象
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:urltext]];
}