We run the program, if the network speed is very slow, the query will always black screen, until the end of the request screen to appear, so the user experience is very bad. Therefore, synchronous requests are generally used only in a child thread
When the payment is made and the amount is paid, the price requirement is very strict.A way to put an amount of arithmetic
Amount Calculation methodtypedef enum {adding,subtracting,Multiplying,Dividing,}calucateway;#pragma mark currency calculation+
[Code Note] iOS-Add button on the right and code note ios-button
1. Engineering Drawing.
Ii. Code.
ViewController. m
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // Add the
The implementation principle of infinite carousel images and the principle of carousel Images
Infinite carousel images are believed to be a common feature of many developers. Here we will summarize the implementation principles of the two commonly
IOS: common attributes, methods, and ios attributes
It is easy to forget the previous knowledge if you have not been in touch for a while. I wrote an article for months, but I forgot to pick it up.
0. macro definition
// Frame [UIScreen mainScreen]
[IOS] UIInterpolatingMotionEffect: Poor gravity vision, uimotioneffect
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. self. view. backgroundColor = [UIColor grayColor]; UIView *
[Code Note] iOS-UIActionSheet dynamic Add button, uiactionsheet dynamic
I ,.
Ii. Code.
RootViewController. h
# Import @ interface RootViewController: UIViewController @ end
RootViewController. m
// Click anywhere to bring up
Complete Context parsing and Context Parsing1. Context typeWe know that Android applications useJavaFor programming, you can think about the biggest difference between an Android program and a Java program? What is the division of boundaries? In
IOS application/json file upload, etc., iosjson
In the process of interacting with the sever background, sometimes, they need to be uploaded by iOS developers in the form of "application/json.
NSString * accessUrl = [NSString stringWithFormat: @ "%
NSLog () output function set format characters, nslog output function charactersThe powerful functions of nslog () are not mentioned here. I transferred it from c #, and it is inevitable that there will be some strangers. In c #, format ("{0}", xx}
Getting started with iOS development☞OC language · note 7, iosocCategory
Categories can only be added to class extension methods. Attributes cannot be added!
@ Interface Class Name (category name)// Declare the Extension Method@ End
Custom bullet box
Custom bullet box
Effect
Features
1. You can customize the style and content of the bullet box.
2. Three bullet box styles are written in the example. You can add the pop-up style as needed.
Usage
1. Drag the
[Open-source] professional klinedrawing [main/secondary chart, trend chart, transaction volume, rolling, zoom-in, MACD, KDJ, etc.), macdkdjThis is the drawing of a deep K line for the iOS project.
Functions include main/secondary graph, trend graph,
Https security verification
Recently, in order to meet Apple's https requirements, I finally wrote a method
Verify that the SSL Certificate meets ATS requirements
Nscurl -- ats-diagnostics -- verbose https: // your domain name
PASS meets
GCD group,
Asynchronous intra-group requests compete for resources with events executed in an out-group order.
1) create a group
Dispatch_group_t group = dispatch_group_create ();
2) in-group asynchronous ST1, DISPATCH_QUEUE_PRIORITY_DEFAULT
Configure and use the Xcode 7 PCH file-learn to use macro definition,
What is the purpose of using macros?
In actual development, sometimes some settings need to be used repeatedly (for example, set the print information, configure the color, and
PlaceholderImageView, placeholderimage
PlaceholderImageView
Description
1. PlaceHolderImageView Based on SDWebImage
2. Given the urlString of an image and a placeholderImage, the image loading effect can be elegantly displayed.
Effect
Source
The date format is compatible with iOS, And the date format is ios.
IOS does not support dates in the format of 12:21:12
Currently, Safari supports the following standard formats:
MM-dd-yyyy
Yyyy/MM/dd
MM/dd/yyyy
MMMM dd, yyyy
MMM dd,
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