![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
【Topics】General
文章平均质量分 66
Cyaninreality1975
这个作者很懒,什么都没留下…
展开
-
【APNs】Scheduling the Delivery of Local Notifications
- (void)scheduleAlarmForDate:(NSDate*)theDate { UIApplication* app = [UIApplication sharedApplication]; NSArray* oldNotifications = [app scheduledLocalNotifications]; // Clear o原创 2014-09-19 13:29:23 · 438 阅读 · 0 评论 -
【Loading Resources】iOS Supports Device-Specific Resources
In iOS 4.0 and later, it is possible to mark individual resource files as usable only on a specific type of device.This capability simplifies the code you have to write for Universal applications. Rat原创 2014-09-23 09:16:20 · 316 阅读 · 0 评论 -
【Internationalization】strings files (to be continued...)
Text is a prominent part of most user interfaces but also a resource that is most affected by localization changes.Rather than hard-coding text into your code, iOS and OS X support the storage of user原创 2014-09-23 09:14:06 · 409 阅读 · 0 评论 -
【Sample Code】Custom Segue
In a delegate-based model, the view controller defines a protocol for its delegate to implement. The protocoldefines methods that are called by the view controller in response to specific actions, s原创 2014-09-22 22:29:34 · 436 阅读 · 0 评论 -
【Loading nib file】Loading a nib file
Loading a nib file from the current bundle - (BOOL)loadMyNibFile{ // The myNib file must be in the bundle that defines self's class. if (![NSBundle loadNibNamed:@"myNib" owner:self]) {原创 2014-09-23 15:40:27 · 404 阅读 · 0 评论 -
【URL Schemes】The Complete Tutorial on iOS/iPhone Custom URL Schemes
地址:http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html转载 2014-09-22 16:10:39 · 403 阅读 · 0 评论 -
【Topics Power】Reduce Power Consumption
You can help improve batterylife by optimizing your use of the following features:The CPUWi-Fi, Bluetooth, and baseband (EDGE, 3G) radiosThe Core Location frameworkThe accelerometersThe disk原创 2014-09-22 14:21:56 · 499 阅读 · 0 评论 -
【Topics Generic】App Launch (Default) Images
It is recommendedthat you use the following format for launch image filenames:原创 2014-09-22 10:10:29 · 346 阅读 · 0 评论 -
【Topics Generic】Launching in Landscape Mode
Launching in Landscape ModeApps that uses only landscape orientations for their interface must explicitly ask the system to launch the appin that orientation. Normally, apps launch in portrait mode原创 2014-09-22 10:45:30 · 456 阅读 · 0 评论 -
【Topics Generic】Supporting Multiple Versions of iOS
Any app that supports a range of iOS versions must use runtime checks to prevent the use of newer APIs onolder versions of iOS that do not support them. For example, if you build your app using new fe原创 2014-09-22 10:37:59 · 319 阅读 · 0 评论 -
【Topic Generic】Hide App icon in iOS
在AppName-info.plist文件中 加入:SBA原创 2014-09-22 08:47:47 · 388 阅读 · 0 评论 -
【Topic Generic】App Icons
CFBundleIconskey Info.plist原创 2014-09-22 09:10:29 · 346 阅读 · 0 评论 -
let your App runs in background mode
在AppName-info.plist文件中加入下面:Required background modes (Array)it原创 2014-09-22 08:53:26 · 380 阅读 · 0 评论 -
【Multitasking】Executing a Finite-Length Task in the Background
//Starting a background task at quit time- (void)applicationDidEnterBackground:(UIApplication *)application { bgTask = [application beginBackgroundTaskWithExpirationHandler:^{ // C原创 2014-09-19 11:50:54 · 492 阅读 · 0 评论 -
【Loading Image】Loading Image Resource
Loading Images in Objective-C NSString* imageName = [[NSBundle mainBundle] pathForResource:@"image1"ofType:@"png"];NSImage* imageObj = [[NSImage alloc] initWithContentsOfFile:imageName];原创 2014-09-23 17:07:21 · 625 阅读 · 0 评论