"iOS Development-119" IPA packaging, Unit testing test, local notification uilocalnotification

Source: Internet
Author: User

(1) IPA packaging, you can use Xcode, you can also use itunes, with the latter relatively fast.

Specific tutorial: Packaging IPA I os_ipa with Xcode and itunes packaging method


(2) Unit test (generally used to test whether a method is feasible, etc.)

--Light weight

--Separate from the program target

--more intuitive and fast-reading knowledge of test results

In contrast, there are cluster tests (typically testing some modules and functions), stress testing (increasing data or user testing)


(3) Local notification

#import "ViewController.h" @interface Viewcontroller ()-(Ibaction) Addlocalnotification: (ID) sender;@    End@implementation viewcontroller-(void) viewdidload {[Super viewdidload]; if ([[Uidevice currentdevice].systemversion doublevalue]>=8.0) {uiusernotificationsettings *setting=[UIUserNoti Ficationsettings Settingsfortypes:uiusernotificationtypealert | Uiusernotificationtypebadge |        Uiusernotificationtypesound Categories:nil];    [[UIApplication sharedapplication]registerusernotificationsettings:setting];    }}-(void) didreceivememorywarning {[Super didreceivememorywarning]; Dispose of any resources the can be recreated.}     -(Ibaction) Addlocalnotification: (ID) Sender {//create uilocalnotification *localnoti=[[uilocalnotification alloc]init]; Set [email protected] "start playing the game";//Operation prompt [email protected] "This is alertbody";//prompt content Localnoti.repeatinterval =nscalendarunitday;//hint interval localnoti.applicationiconbadgenumber=3;//badge number localnoti.firedAte=[nsdate datewithtimeintervalsincenow:3];//When to start prompt//register, first delete all before, add again, prevent duplicate [[uiapplication Sharedapplication] CA    Ncelalllocalnotifications]; [[UIApplication sharedapplication] schedulelocalnotification:localnoti];} @end

If you need to click on a local notification to a specific page, you need to decide.

--When the program is running, clicking on local notifications will invoke the following method of APPDELEGATE.M. If you click the icon directly, it will start normally.

-(void) Application: (UIApplication *) application didreceivelocalnotification: (uilocalnotification *) notification{    }


"iOS Development-119" IPA packaging, Unit testing test, local notification uilocalnotification

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.