03 2012 档案

摘要:由于NSUserDefaults 不支持保存自定类,保存的对象需要实现NSCoding协议,不过自定的类型就算实现了NSCoding也不可以保存,可以通过以下方法实现://h文件#import <Foundation/Foundation.h>@interface UserBean : NSObject<NSCoding>@property NSInteger userid;@property(nonatomic,copy)NSString *address;@property(nonatomic,copy)NSString *levelName;@property(n 阅读全文
posted @ 2012-03-22 09:38 EdwardLau 阅读(2202) 评论(0) 推荐(1) 编辑
摘要:为以后总结ios开发工具类的备份,首先要在framework中引入QuatrtzCore.framework,在头文件中需要#import <QuartzCore/QuartzCore.h>//.h 文件-(void)createAnimation:(double) duration fillMode:(NSString *)model Type:(NSString *)type subType:(NSString *)subtype removedOnCompletion:(BOOL)completion animationView:(id)... 阅读全文
posted @ 2012-03-21 15:35 EdwardLau 阅读(5126) 评论(0) 推荐(0) 编辑
摘要:公司要求做一个iPhone app,正在一边学习一边做用来记录工作上遇到的麻烦场景使用了以下这样的代码: LoginViewController *loginViewController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil]; self.logineNavigationController = [[UINavigationController alloc]initWithRootViewController:loginViewControl... 阅读全文
posted @ 2012-03-19 09:36 EdwardLau 阅读(4006) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示