Swift Tour Summary (3), swifttour
About Optional Control Flow
If let constantName = someOptional {
Statements
}
If the Optional is nil, if is not entered; otherwise, the execution and constantName are the value of the Optional.
Example:
If let
IOS development-bottom layer-Class explanation, ios bottom layer-class explanation
Objective-c is iOS's development language. its true face is that it is not a real object-oriented language, and abstract understanding is just about it. In fact, it
NSString initialization and memory management, nsstring Initialization
1. NSString three initialization Methods
A. Direct Value assignment: NSString * str = @ "a string", which uses constant memory.
B. Use the class method: NSString * str =
IOS checks whether the app has the permission to use the camera.
IOS checks whether the app has the permission to use the camera.
NSString * mediaType = AVMediaTypeVideo;
AVAuthorizationStatus authStatus =
Objective-C basics 1: class inheritance and combination in OC, objective-coc
1. Class Definition and Declaration
The class declaration in OC ends with @ interface and @ end.
The class definition in OC starts with @ implementation and ends with @ end.
Third-party database used by databases FMDB and third-party fmdb
Download FMDB
1. introduce the sqlite3 toolbox and introduce header files in the class for database operations: because third-party software also uses the sqlite toolbox to operate
Ios album operation ALAssetsLibrary
1. The ALAssetsLibrary instance provides us with the function of getting pictures and videos in an album (photo app. In ios8 photos framework, ALAssetsLibrary is replaced.
When using ALAssetsLibrary, We need to
Handling iOS detection version updates
If we want to detect updates to the app version, we must obtain the version information of the currently running app version and the latest version released on the appstore.
The current running version can be
IOS custom control progressView (ring progress bar)
When I was working on a project, I used a ring progress bar. First I found a third-party control on the Internet and found that it is easy to use, that is, there are too many things and it is a bit
Use TouchID verification and ios8touchid verification in ios8.
In iOS8, developers can use APIs that open the Touch ID permission to third-party applications so that they can use Fingerprint Authentication in applications to complete user
Singleton implementation (Singleton macro), implementation (macro)
1. What is a Singleton?
A singleton is a class. Each creation is the same object. That is to say, it can only be instantiated once.
2. How to ensure that each creation is the same
Magical record (based on coredata) for ios data persistence)
After seeing magical record, I tried it and found it useful,
Magic Record is an open-source class library written by Saul Mora to make Core Data easier to use. The development of this
IOS-integrated game center (leader board)
The leader board in the game center has been used again recently. In fact, this is very simple, but it is easy to forget. So I plan to write it down.
Create an app on iTunes Connect and enable game
IOS development-Object-C Block implementationWe can regard Block as a closure function, which can access external variables and local variables, but the external variables cannot be modified by default. You can use it for callback, which is more
IOS Mobile Phone Number Regular Expression (full)/* Verify the mobile phone number modified by helensong */-(BOOL) isMobileNumber :( NSString *) mobileNum{ /*** Mobile phone number* Move: 134 [0-8], 135,136,137,138,139,150,151,157,158,159,182,187,188
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