IOS reminds users to go to the settings page to re-authorize notification locating and other functions, ios notification
The least unknown feature of iOS 8 and later versions is the deep link with application settings, you can authorize the location,
Multithreading for iOS development-thread status and multithreading for ios development
Multithreading for iOS development-thread status
1. Brief Introduction
Thread creation:
Self. thread = [[NSThread alloc] initWithTarget: self selector: @
Automatic Masonry layout and Masonry Layout
Masonry is a lightweight layout framework that uses better syntax to encapsulate automatic layout. It has its own layout DSL. It is concise, clear, highly readable, and supports both iOS and Max OS
Listen to the keyboard to prevent the input from overwriting textfiled and listen to textfiled
[[Nsicationcenter center defacenter center] addObserver: self selector: @ selector (keyboardwasChange :) name: UIKeyboardWillChangeFrameNotification
The iOS Block interface reversely transmits values, and the iosblock interface reversely transmits values.
In the previous blog "Introduction to iOS Block", I focused on analyzing the concept of iOS Block. This article will focus on their
The iOS adaptation old project cannot be displayed normally under iOS9, iosios9
In iOS development, old projects, such as version upgrades and Demos, are often used,
The iOS SDK is constantly upgraded, which brings new vigor to iOS development.
Simple implementation of waterfall stream and simple implementation of waterfall stream
In fact, the waterfall stream is to write the class UICollectionViewLayout as the style you need, so we must first inherit this class
Override some methods in
UITouch details, uitouch
The UITouch object is used to position, size, motion, and the intensity of a specific event on the screen with a finger. The intensity of touch is available on devices that support 3D touch on iOS 9. You can use the UIEvent
IOS-design mode-lazy loading, ios-design mode loadingI. Why do I need to load it lazily? A: the memory of the iPhone device is limited. If you load all the resources that will be used in the future at one time after the program starts, the memory of
Introduction to iOS Block and iosblock
A Block is an object that encapsulates a piece of code that can be executed at any time. A block can be used as a function parameter or return value, and it can contain an input parameter or return value. It is
IOS 8 adaptive height Cell
In iOS 8, The UITableViewAutomaticDimension constant supports adaptive height cells (iOS 7 requires a lot of trouble ). But in practical application, we need to pay attention to the following issues:
1. Set the automatic
IOS development-use MBProgressHUD to increase user experience
For a mobile client application, the user experience is very important. For example, if a long loading time causes the interface to die, MBProgressHUD can help you solve this problem.
Get parameters for iOS
The Application name, version number, and other information are saved in a dictionary of mainBundle. The following code can be used to obtain the information.
NSDictionary* infoDict =[[NSBundle mainBundle]
IOS generates UIColor from various color labels
When you know the RGB value and Alpha transparency, use the native method of the following UIColor:
UIColor * color = [UIColor colorWithRed: 255.0/255.0 green: 108.0/255.0 blue: 96.0/255.0
IOS extended UINavigationController returned from Stack to the previously marked position
This feature suddenly reminds me of the impression of the original code of a Java Data Structure last year. It contains a mark, a mark, and a mark ,... All
Objective-C instancetype keyword, instancetype keyword
InstancetypeStarting from clang 3.5, clang provides a keyword
Indicates the Objective-C object of the unknown type returned by a method.
Instancetype will tell the compiler the current type,
The basic use of the Automatic Layout of sizeclass and autolayout in iOS 8 is autolayoutsizeclass.
1. First, create a new project and set rootviewcontroller (I will not talk about it here)
2. Check the following (because we use sizeClass below,
NSProxy, nsproxynsobject
The NSProxy class is very important in the distributed object architecture. Because of its special functions, NSProxyCocoaThe frequency of appearance in the program is very low.
NSProxy is an abstract class that defines a
Cell Expansion Methods: cell expansion methods
1. Insert a new cell
Principle:
(1) define whether to expand and the subscript of the expanded cell
@ Property (assign, nonatomic) BOOL isExpand; // whether to expand @ property (strong, nonatomic)
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.