Use the optional values (Optional). Optional values:
· ExistA value, which is equalX
Or
·Does not existAny value
Note:
The optional values in C and Objective-C do not exist. In Objective-C, the most similar (concept) to the optional values is
Protocols and Extensions Protocols (interfaces) and Extensions
Swift uses the Keyword protocol to declare a protocol (Interface ):
Both class (classes), enumeration (enumerations), and structure (structs) can adopt the protocol (protocol ):
1 class
The following error occurs when loading an https site. Therefore, you have made some modifications to the embedded webview in iOS, so that it can load the http site or load the https site,
The following error occurs when I load the https
Use of UIButton in ios development (I) I. Simple Description generally, after clicking a control, the corresponding response is that buttons have many functions, including displaying text and images, you can also adjust the positions of internal
Server Configuration
The key configurations of nginx are as follows:
listen 443;server_name localhost;ssl on;ssl_certificate /usr/local/opt/nginx/certificates/server.cer;ssl_certificate_key
This article mainly includes three aspects:
Use console to check app status
Logging and mastering NSLog
Use the lifecycle of an object to track memory usage.
Use Console to check app status
The small black box at the bottom of Xcode is a good friend
Xcode document code annotation tool vv1_enter
Https://github.com/onevcat/VVDocumenter-Xcode
Install: run the downloaded vv1_enter project and restart Xcode.
Use: Enter // before the method to automatically generate the annotation framework and
Create
Singleton.h
- ()playSoundWithName:(NSString *
Add the sound effects used by the APP to the newly created bound.
Create
Singleton.m
*_soundDict; - (= _soundDict =
The system sound service uses SystemSoundID to play
This article implements the magnifier function. The usage is as follows:
1. Import the MagnifierView class to the project. : Http://pan.baidu.com/s/1eUz2Q
ViewController. h
#import
#import "MagnifierView.h"@interface ViewController :
IOS study notes (8) UIActivityIndicatorView (activity indicator view) (blog address: http://blog.csdn.net/developer_jiangqq)
Author: hmjiangqq
Email: jiangqqlmj@163.com
UIActivityIndicatorView:
Purpose: prompt that the user is loading progress.
Reasons for multithreading in iOS:
1. In iOS, only the main thread has the right to directly modify the Ui.
2. The main thread stack of the iPhone is 1 M, and the newly opened thread stack is 512 K.
3. Multi-task, multi-core, efficiency, and user
1. UICollectionViewController you can use UIScrollView or UICollectionViewController when creating a nine-Cell Layout. When we use UICollectionViewController for nine-Cell Layout, it is more convenient and saves a lot of trouble, such as horizontal
EXC_BAD_ACCESS. The error is generally caused by automatic release, which is essentially a memory management problem.
SIGABRT. errors are generally caused by Invalid methods or attributes of the object or type.
For example, [NSNull null] length
1. Create a single viewproject, import it to the mediaplayerdatabase, and import a video file test1.mp4.
2. ViewController. h
#import
#import
@interface ViewController : UIViewController { MPMoviePlayerViewController *_playerVC;}@end
A. [] indicates an array
B. {} indicates the relationship between the dictionary and the object model.
C. There are many applications. Basically, the main data transmitted by mobile development is JSON.
D.
To use JSON, obtain data from
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