`
吃饱了就饿
  • 浏览: 66985 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
闹钟所实现的基本功能:定时提醒    //定义声音 CFBundleRef mainBundle; mainBundle = CFBundleGetMainBundle (); // Get the URL to the sound file to play soundFileURLRef = CFBundleCopyResourceURL ( mainBundle, ...
openURL的使用方法:       [[UIApplication sharedApplication] openURL:[NSURL URLWithString:appString]];  其中系统的appString有:1.Map    http://maps.google.com/maps?q=Shanghai  2.Email  mailto://myname@google.com  3.Tel    tel://10086  4.Msg    sms://10086   除此之外,还可以自己定义URL,方法如下: 打开info.plist,添加一项URL types ...
  UIDatePicker的初始化:       self.datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 50, 100, 150)]; UIDatePicker的时区设置:     [datePicker setTimeZone:[NSTimeZone timeZoneWithName
NSUserDefaults可以看作是存在于沙盒中的plist文件,他的特点是只要不remove这个键值对,此键值对就会一直存在。 NSUserDefaults一般用于保存用户的基本设置,例如用户名密码这类用户再次启动的时候可能需要继续使用的值 NSUserDefaults的初始化:       NSUserDefaults * userDefaults = [NSUserDefaultsstandardUserDefaults]; NSUserDefaults的赋值:       [userDefaults setObject:@"YES"forKey:@& ...
Global site tag (gtag.js) - Google Analytics