ios--Development Weekly (2015-07-31)

Source: Internet
Author: User

1. Keychain: Red box in the previous one by one corresponding, if the keys in the private key or public key Delete, then the corresponding certificate will not be used (because I do not like my things too messy, so I deleted some things in the keys, The results found that the certificate can not be used, reinstall is not so, had to re-apply a set of certificates)

Figure


2. Xcode does not have the Frameworks folder, you can now manually add (for example, add a directory not wrong, otherwise you add the system library will not be automatically added to the directory)


3. When you manually create the framework library, the default is to create a dynamic library, if you need a static library, then you need to manually modify the "Mach-o Type" for the static Library



5. Determine if there are no characters other than the specified string in the stringNscharacterset*namecharacters = [[Nscharactersetcharactersetwithcharactersinstring:@ "1234567890"]Invertedset];
Nsrange range = [Phonenum Rangeofcharacterfromset: Namecharacters];
if (range. Location != Nsnotfound) {
return NO;    }

6. Resolve The Didselectrowatindexpath conflict problem with UITapGestureRecognizer and UITableView (override gesture Agent event) - (BOOL) Gesturerecognizer: (Uigesturerecognizer*) Gesturerecognizer Shouldreceivetouch: (Uitouch*) Touch {
// if theUitableviewcellcontentview(that is, click theTableviewcell), you do not interceptTouchEvents
if ([Nsstringfromclass([Touch.Viewclass]) isequaltostring:@ "Uitableviewcellcontentview"]) {
return NO;
}
return  YES;}

7.:  Self.view.backgroundColor = [Uicolor whitecolor];UIView *rootview = [UIApplication sharedapplication].keywindow.rootviewcontroller.view;uigraphicsbeginimagecontextwithoptions (RootView.bounds.size, YES, 2);[Rootview.layer Renderincontext:uigraphicsgetcurrentcontext ()];UIImage *uiimage = Uigraphicsgetimagefromcurrentimagecontext ();Uigraphicsendimagecontext ();
8. When you call the Presentviewcontroller method, when you jump between views, you want presented viewcontroller to be transparent, you can override

-(void) Presentviewcontroller: ( Uiviewcontroller *) viewcontrollertopresent animated: (BOOL) flag completion: (void ( ^) (void)) Completion {

if ([[DEVICE systemversion] floatvalue] >=8.0) {

viewcontrollertopresent. Modalpresentationstyle = Uimodalpresentationovercurrentcontext ;

} else {

self. Modalpresentationstyle = Uimodalpresentationcurrentcontext ;

}

[superpresentviewcontroller: viewcontrollertopresentAnimated : Flag Completion: completion];

}



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

ios--Development Weekly (2015-07-31)

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.