区别于破解APP的方法:http://blog.sina.com.cn/s/blog_74e9d98d0102v1a5.html
给应用工程添加“Setting buldle”
然后根据http://my.oschina.net/plumsoft/blog/56573里面的介绍布局设置页的配置
再代码中通过NSUserDefault来访问:
- (IBAction)show:(id)sender {
NSString *t
= [[NSUserDefaults standardUserDefaults]
objectForKey:@"name_preference"];
NSLog(@"t =
%@",t);
}
- (IBAction)update:(id)sender {
[[NSUserDefaults standardUserDefaults] setObject:@"vvv"
forKey:@"name_preference"];
[[NSUserDefaults standardUserDefaults] synchronize];
}