[IOS learning basics] File-related, ios learning basics
I. SandBox)
1. Sandbox Mechanism
1> each application has its own storage space, I .e., sandbox.2> applications can only access their sandbox but cannot access other regions.3> If the
UICollectionViewCell -- find the cell that corresponds to which cell, uicollectionviewcell
There are various problems in writing projects.
When the button is added to the cell, add it directly to self or self. contentView, and find the parent
1.0 events in iOS and 1.0iOS
When a user uses an app, various events are generated. Events in iOS can be divided into three types: UIKit can recognize three types of input events:
Touch event
Accelerator
Objective-c ui UITableView details, objectivecui
UITableView plays an important role in IOS development and must be mastered.
Before learning about UITableView, let's take a look at some basic concepts:
UITableView inherits from UIScrollView and
IOS rotates on a specific page and ios page
1. Add a tag in AppDelegate. h.
2. Add this method in AppDelegate. m.
3. Use
[(AppDelegate *) [UIApplication sharedApplication]. delegate setAllowRotation: YES];
To enable screen Rotation
4.
[Code Note] clicking a button will show the animation effect of multiple buttons.
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. h
#import @interface RootViewController : UIViewController{ UIImageView *iCanImageView; UIImageView
What about UITableView optimization?
As iOS developers, UITableView may be one of the most commonly used UI controls. Its importance is self-evident.
For TableView, I think the most important thing is the reuse mechanism of UITableViewCell.
Simply
Use the Runtime method in combination with the dynamic addition of instances.
Method substitution can replace any external class method. Dynamic addition can only be implemented in the object created by the added class, but can be used in
Multithreading in iOS development practices (Singleton Mode)Singleton mode: This mode ensures that there is only one instance in a class during the program running, and the instance is easy for external access, so as to conveniently control the
Multi-thread (GCD) for iOS development practices)What is GCD: 1. GCD is a multi-core programming solution developed by Apple. It is easier to use than other multi-threaded technical solutions.2. Pure C language: GCD provides many powerful functions.
IOS development practices: xib loading considerationsWhen xib adds addSubview to the Controller view, the program crashes. Error message:
'Nsinvalidargumentexception ', reason :'-[UITapGestureRecognizer superview]: unrecognized selector sent to
[IOS] iPhone for real machine testing (Basic edition) and iosiphone
After buying 688 individual developer accounts, how can I perform a real machine test ?? See the following:
1. Open https://developer.apple.com
Then, enter the App ID account and
Objective-C code specification (6.1.12 Wang Bin) and objectivec code specification
First, official code specifications
Objective-C coding specifications, content from Apple and Google's document translation, their coding experience and summary of
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//
[Code Note] Scroll down, the above title bar will also change, the note title bar
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. h
#import #import "SVSegmentedControl.h"@interface RootViewController : UIViewController{ UIScrollView
IOS9 request https problems-record, ios9 request https record
When iOS9 started, Apple changed all HTTP to HTTPS, so the network request failed. solution:
1. Change to HTTP:
Add a Key: NSAppTransportSecurity (Dictionary type) to the info. plist file,
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
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