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)