Lightweight View Controllers and viewcontrollers
Iew controllers is usually the largest file in iOS projects, and they contain a lot of unnecessary code. Therefore, the code in View controllers is almost always the least reusable. We will see the
IOS-GET request details-GET sets the Request Header
A rare remark is a very detailed native GET network request operation, which is recorded as obsessive-compulsive disorder and shared with you... Also used for backup Replication
-(Void) getResult {_
IOS network request base, ios network request
This article is about network requests, which are compiled based on the actual situation of the company. If you have different opinions, please leave a message for discussion.
After 9.0, iOS completely
Objective-c variables and Objective-c Variables
Language variables in OC can be divided into local variables and global variables by scope.
Local variables: these are also called internal variables. Local variables are declared within the method.
Objective-C code Quality Improvement objective 1: Simplified writing and Objective-c MachineCaution for improving OC code quality 1. OC features
OC has added the object-oriented feature for the C language, which is its superset;
OC uses a
2: CAKeyframeAnimation, cakeyframeanimation
It is a subclass of CApropertyAnimation. The difference with CABasicAnimation is that CABasicAnimation can only be changed from one value (fromValue) to another value (toValue), and CAKeyframeAnimation
UIView and uiview Animation
/*
Layer relationship
Child view-view nested on parent View
Parent view-nested View
The view and view can be nested layer by layer
*/
UIView * red = [[UIView alloc] initWithFrame: CGRectMake (50,100,100,100)];
Red.
Umeng add page statistics, umeng page
Umeng's statistics are still quite powerful. Although the project does not require relevant functions, related statistics are still added, and a line of code must be added to viewWillAppear and viewWillDisappear
Objective-C note string operations, objective-c string
In this summary, there are some operations on strings in OC.
When a String object is created, an object whose content cannot be changed is created, which is called an immutable object. You can
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
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
#
IOS9 ReplayKit Video Recording
IOS9 ReplayKit video recording, the api is very simple, the following is the code, Objective-C is similar, it will not be written.
/// ReplayKitProxy. swift // ReplayKitDemo /// Created by LiuYanghui on 15/12/11. //
Dark Horse programmer-C Study Notes-first c language program,-C Study Notes
------- Ios training, android training, and java training. We look forward to communicating with you! ----------
I. The first C Language ProgramSource code: Compile the
Ios development-Category, ioscategory
Category adds a method to an existing class without changing the existing class to extend the function of the class.
There are multiple ways to expand class functions. For example, we can extend the functions
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