给App在“设置”中添加选项(类似招行App)
区别于破解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];
}
给应用工程添加“Setting buldle”
然后根据http://my.oschina.net/plumsoft/blog/56573里面的介绍布局设置页的配置
再代码中通过NSUserDefault来访问:
- (IBAction)show:(id)sender {
}
- (IBAction)update:(id)sender {
}
网络上志同道合,我们一起学习网络安全,一起进步,QQ群:694839022