iphone开发-文件的创建、读入、写、删除
摘要:View Code 1 创建与删除: 2 //创建文件管理器 3 NSFileManager*fileManager= [NSFileManager defaultManager]; 4 //获取路径 //参数NSDocumentDirectory要获取那种路径 NSArray*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString*documentsDirectory= [paths objectAtIndex:0];/...
阅读全文
posted @
2011-10-28 17:10
john.zhang
阅读(138)
推荐(0)
纯代码开发下如何关闭键盘
摘要:1.UIAlertViewDelegate- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ if(alertView == yourAlertView && buttonIndex == yourWantButtonIndex){ [yourWantTextField resignFirstResponder]; }}2.UITextFieldDelegate- (BOOL)textFieldShouldReturn:(UI...
阅读全文
posted @
2011-10-28 17:04
john.zhang
阅读(156)
推荐(0)