Application Changes in IOS are mainly concentrated in three aspects: interface, business logic, and data source.
The following is a self-developed technical experiment that can be used to handle changes in the business logic.
For more information,
First, no picture, no truth
Use third-party class libraries for pull-down refresh results
Odrefreshcontrol
Example directory structure:
Resources resource folder
Thirdpartlib third-party class library folder
Direct core
1 Preface
Use the dispatch_once function in the app's lifecycle to ensure that each segment of code is executed only once, even if it is called multiple times in different places of the Code (such as single-instance initialization ).
2. code
For traversal of collection elements (such as nsarray), OC is similar to Java. But there are also differences. Let's take a look at all the methods for traversing the set elements:
1. Index Traversal
Similar to traversing a set by array subscript
1
Last night, Apple released iOS 7 and the new Mac, although there is no passion for watching at night. In the morning, you can't help but try again. In fact, as long as the mobile phone can be used, the UI is not too big a problem. However, when I
0 cgcontextref context = uigraphicsgetcurrentcont
EXT (); Set Context
1 cgcontextmovetopoint
2 cgcontextaddlinetopoint draw a straight line
4 cgcontextaddellipseinrecT draws an elliptical shape.4 cgcontextsetlinecap4 cgcontextsetlinedash draw the
Document directory
Download the source
Compiling the library
Bringing it all together as a universal library
If you want to download the tar format, the zip press enter is incorrect. confg may be faulty. The following is a record of the library
1. Unknown type name 'class'; did you mean 'class '?
Reference the class of C ++ or C code and change it to. Mm.
2.
Undefined symbols for architecture armv7s?
When creating a static library, use the real machine
1). deleeturesChange to armv6 armv7,
When using UIBUtton, we sometimes need to set pictures and text at the same time. The following code is for reference only:
UIButton * _ backButton = [UIButtonButtonWithType: UIButtonTypeCustom];
[_ BackButton setFrame: CGRectMake (12,8, 64, 28)];
[
The iPhone and iPad have different processing methods for the camera and image library code. The iPad is mainly used
UIPopoverController to include UIImagePickerController.
The main code is as follows:
1. The class is inherited from
Preface:
The Framework can be physically used to modularize iOS programs.
Benefits:
1. If the interface between modules is well defined, modular programs have good scalability and cohesion;
2. Physical modularization facilitates management and
Ref: http://bjango.com/articles/pngcompression/
At face value, running your images through a tool like ImageOptim seems like a great idea. it grinds away, shaving kilobytes or bytes off each file, hopefully helping your app download and launch
Bundle is a directory that contains the resources used by the program. these resources contain images, sounds, compiled code, and nib files (bundle is also called plug-in ). corresponding bundle,
Cocoa provides the NSBundle class.
Now we use bundle
In the previous blog post on iOS, we learned how to use the Tab Bar and Switch views. This is to use Tabbar in AppDelegate. To open a program like TabbarView, sometimes we need to provide some help pages for the program, you can also log on to the
1. Close the keyboard when you click the background.Add a gesture reader to viewDidLoad.
// add tap gesture recognizer UITapGestureRecognizer* tapRecognizer = [[UITapGestureRecognizer alloc]
A Table View usually needs to set its dataSource and delegate.You can use Control + drag to set
And adopt two Protocols@ Interface SecondViewController: UIViewController UITableViewDelegate is commonly used in the following methods:
// Called
1. What is Prefix. pch used?
Is a tool to speed up compilation. Only header files that never change or rarely change can be added to prefix files. This allows the Framework Code to be compiled in advance and visible to all classes. However, if the
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