IOS --- simple use of NSCacheNSCache
NSCache is a cache class officially provided by Apple. Its usage is similar to that of NSMutableDictionary. It is used in AFNetworking and SDWebImage to manage cache.
NSCache Automatically releases some objects
Implementation of iOS message push mechanism
The working mechanism of iOS message push can be summarized as follows:
Provider refers to the Push server of an iPhone software. APNS is the abbreviation of Apple Push Notification Service and is the
Ios multi-thread operations (11)-advanced NSOperation operationsNSOperation can call the start method to execute tasks. By default, NSOperation is executed synchronously. If you add NSOperation to NSOperationQueue, the system automatically performs
IOS Study Notes 2015-03-24 OC-API-Immutable string, 2015-03-24oc-api-
Mostly imitation//// Main. m // OC-API-Immutable string /// Created by wangtouwang on 15/3/25. // Copyright (c) 2015 wangtouwang. all rights reserved. // # import // initialize
IOS Study Notes OC-API-date-
API 1 NSdate2 NSDateFormatter 2 Application Scenario 1 get current date 2 increase time difference 3 Comparison time difference 4 return earlier time 5 Date Format words 6 date to string 7 string to date 3 specific code /
Direction of the Controller in iOS
# Import "LKNavigationController. h"
@ Interface LKNavigationController ()
@ End
@ Implementation LKNavigationController
# Pragma mark-implement this method to control the screen direction
/**
*
Ios multi-thread operations-GCD latency operations and one-time codeYou can use the GCD function to perform latency operations. This function is
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)),
IOS. OC.02 KVC-key value encoding, ios. oc.02kvc-key value
KVC is the abbreviation of key, value, and coding, that is, key-value encoding. In iOS, You can indirectly access the property information of an object through the class attribute name (key.
IOS. OC.01 NSFileManager-file management, nsfilemanager
// Create a file
// Convert the string file into NSData before it can be written to the file
NSFileManager * manager = [NSFileManager defaultManager]; // create an object
NSString * homePath =
IOS UINavigationBar-navigation bar, UINavigationItem-Navigation item, iosuinavigationitem
1. What is the navigation bar (UINavigationBar ).
UINavigationBar is an attribute of UINavigationController. Is an integral part of the navigation bar
IOS handwritten UICollectionViewThe first problem:
An error occurred while writing the UICollectionView. The problem is:
UICollectionView must be initialized with a non-nil layout parameter
The set view must be initialized using layout
IOS-Get all levels of UIViewObtain all levels of UIView in iOS
Application scenarios
In actual iOS development, you often need to know which sub-controls are contained in a UI control and their hierarchy, their own frame, and bounds, so that we can
IOS development-Email sendingDuring Web development, email registration and logon are essential, and mobile phone numbers can be changed. However, email addresses are used only when they are important, such as the required email address when looking
Regular Expression practices in iOS development (1)Requirement Abstraction:
Now there is a string
{"State": 200, "error": "Logon successful! "," Json ": {" auid ":" 402888f54c12441e014c1246bdf90003 "}} Now we need to extract the content string after
IOS Learning Log, ios2015-3-17
Objective -- C One keyword @ class import existing class id object type indicates any ObjC object type Block object type. In OC, it is called a code Block. Similar to the function type pointer in C, typedef defines the
# Define collection commonly used in iOS,
1. Define Constants
When defining constants, it is best to start with a lower-case letter k to give people an insight,
(1) Navigation Bar Height: We all know that the height of the navigation bar is 44 when
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