[Code notes] Click the option box that appears, and click "Code notes"
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. h
#import @interface RootViewController : UIViewController@end
RootViewController. m
# Import "RootViewController. h
Bits of knowledge, bitsofknowledgeHow to obtain the system version of the current device !!![[[UIDevice currentDevice] systemVersion] floatValue]Get App versionNSDictionary * infoDictionary = [[NSBundle mainBundle] infoDictionary];// App name//
A small tool class for image cropping. It is called using a code to crop the tool class.
Some time ago, I wrote a simple small tool class, that is, image cropping, and animation changes to frame hiding;
This class directly provides a class method
Common GCD methods and common GCD Methods
// 1. Create a main thread (Serial)
Dispatch_async (dispatch_get_main_queue (), ^ {
// Refresh the interface code
});
// 2. Create an asynchronous thread (parallel)
Dispatch_async (dispatch_get_global_queue (
Common ios problems (Real-time update) and ios real-time update
1. Error code: No ubuntures to compile for (ONLY_ACTIVE_ARCH = YES, active arch = x86_64, VALID_ARCHS = armv7 armv7s)
Command Line Error when building this target. You can search for
Interface design and design of the [edit] module of meitu xiuxiu beautifying pictures
Effect
Currently, the rotation and sharpening interfaces have not been done yet.
The editing module allows you to crop, rotate, and sharpen images.
1. Click
Ios development-application settings and user default settings [1. Use of bundle] And iosbundle
On the iphone, the app will have an exclusive app setting in "Settings". By selecting this menu interface, you can enter and change various options in
Objective-C data set and objective-c set
1. NSSet
1. It is an unordered collection class that manages multiple objects. The biggest feature is that duplicate objects are not allowed in the collection, which is similar to the mathematical meaning of
Remove unnecessary split lines in UITableView or hide split lines between cells.I. Remove extra split lines from tableViewFirst, customize a method-(void) setExtraCellLineHidden: (UITableView *) tableView{UIView * view = [UIView new];View.
JSON-to-Model internal resolution, json-to-model resolution
I. Ideas: 1. Obtain all attributes and their types through the model type. 2. process the obtained json. Type processing 3. Consider the inconsistency between the dictionary key value and
IOS development-ActionSheet usage and pop-up dialog box
In our iOS development, we often see the following interface requirements:
.
That is, click the button and a selection prompt box appears. We use two methods today (ActionSheet and
Implementation and use of Singleton in iOS
Singleton is the most common design pattern in our development, as well as in iOS. A singleton ensures that the instance of a class is unique in the program, facilitating sharing of resources and data. The
Objective-C memory management,
Management scope: any object that inherits NSObject. Basic data types are not managed.
Essentially: Because objects and basic data types are different in the system's storage space, local variables are mainly stored in
JSPatch uses note,
Hotfix is widely known for its role. Both Android and iOS have their own technologies. However, compared with the release of Android on the day (If your project does not require grayscale), iOS hot update is more significant.
IOS development-use Charles for http packet capture
In my previous blog "introduction and use of the network packet capture tool Charles", I briefly introduced the installation and cracking of Charles and the introduction of Charles packet capture
Ios swift (1) Bubble sorting, iosswift
// Bubble Sorting stability maximum time complexity high O (n (2), too many exchanges, one exchange equals three assignment is the easiest
Var count = 0
Func sortInts (inout data: [Int]) {
For var I = 0; I
Var
IOS-xib use 2 --- xib encapsulation and MVC, ios-xib2 --- xibmvc
I. (M) Create a model:
Bytes --------------------------------------------------------------------------------------------------------------------
II. (V) Encapsulation xib:
[Code Note] The UIAlertView with the input box and the uialertview with the input box
I ,.
Ii. Code.
// Click anywhere. The input box (void) touchesBegan :( NSSet *) touches withEvent :( UIEvent *) event {UIAlertView * dialog = [[UIAlertView
Objective-C sorting and objective-c sorting
In Objective-C, sorting is divided:
1. Sort objects in the Foundation framework
2. Sorting custom objects
Example: Each student has a score attribute, Which is sorted by score.
Custom object Student. h
#
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