一个简单的iPhone项目及代码
2010-08-26 11:04:00 来源:WEB开发网核心提示:{// Return YES for supported orientationsreturn (interfaceOrientation == UIInterfaceOrientationPortrait);}*///sayHello的实现方法-(void) sayHello:(id)sender{NSString
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/
//sayHello的实现方法
-(void) sayHello:(id)sender{
NSString *userName = nameField.text;
NSString *helomessage = [[NSString alloc] initWithFormat:@"Hello,%@",userName];
displayLable.text=helomessage;
[helomessage release];
nameField.text=NULL;
}
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
- (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)dealloc {
[super dealloc];
}
@end
- ››简单的修 改 SQL Server 2000数据库的端口号
- ››简单的修 改 MySQL数据库的端口号
- ››一个网站的内链布局设置技巧
- ››iphone图片拉伸的几种方法
- ››iphone正则表达式的简单使用
- ››一个专业刷流量刷排名的代码页
- ››iPhone开发Unresolved Symbols CAKeyframeAnimati...
- ››IPhone开发-“此证书是由未知颁发机构签名”解决方...
- ››IPhone开发-整合私钥和证书,生成.p12文件
- ››iPhone应用开发-UIPickerView选取器详解
- ››iphone 获取屏幕的宽度和高度
- ››iPhone读取工程包中的二进制文件
更多精彩
赞助商链接