IOS learning notes (7) Basic concepts and usage of UISegmentedControl segment controls (blog address: http://blog.csdn.net/developer_jiangqq)
Author: hmjiangqq
Email: jiangqqlmj@163.com
UISegmentedControl
First, let's take a look at the official
Here is a Demo that implements automatic layout through code. I won't talk about it if I do it through IB. There are a lot of online materials. Here is a good link to write, if you are interested, let's take a look.
IOS7 Automatic Layout tutorial (1)
If you want to migrate your old iOS 6 app to iOS 7, you must pay attention to it. When your old app is running on iOS 7, all ViewController views are moved up as a whole, because iOS 7 sets the overall screen height (including the status bar and
In iOS7, Apple provides two APIs for developers to update application interfaces and content in the background. The first API is Background Fetch, which allows developers to perform specific actions, such as obtaining Network Content and updating
Display log in debug and automatically block log output code in release. It took some time to combine the two NSLog optimization methods on the Internet.
The details are as follows:
1. Create a New. h file named DLog. h.
DLog. h file content:
//
Instancetype: Use the instancetype compiler and IDE to perform a type check, but the id does not perform a complete type check.A method with a related result type can be declared by using the type instancetype as its result type. instancetype is a
... To be honest, the system's built-in Activity Indicator View is really ugly.
After referring to projects of others, we modeled the Activity Indicator View ).
The effect is as follows:
Implementation Method:
1. Import the MRActivityIndicatorView.
Without a doubt, we have never liked storyboards like this. Since iOS 5, Apple has provided the storyboard editor in its new IDE version and "upgraded" its Object Library, especially UITableView, In the storyboard editor. In addition to providing
You may encounter this kind of requirement when designing an application design drawing. The application icons are of the old version and the new version, and you want to display both icons on the desktop to compare the results. An application only
Today, let's take a look at the nsicationicationcenter message and notification center class.An nsicationicationcenter object is in a program and provides a mechanism for broadcasting messages.An nsicationicationcenter object is essentially a
We have analyzed the distribution of a single iOS event, mainly introducing how to find the view to be processed for the event, and how to transfer the event level by level according to the responder chain. This article mainly introduces the
In different language environments, the date formats displayed by applications are different. For example, in an English language environment, the displayed dateJanuary 27,201 4. The display date in the Chinese language
When I used the ios7SDK build yesterday, I found several warnings. Some of the previously written internal purchase methods were discarded under ios7. Today I changed it and sent the code.
PGStoreKitManager. h
//// PGStoreKitManager. h //
I had to re-learn cocos2d-x.
Take notes and study.
Some games require a fixed horizontal/vertical screen. The following describes the simplest method.
Open the project.
1. FindIosFolderRootViewController. mmFile.
2. open the file and
// Do not define the Frame in this place. The following Visual Format defines the Frame.
UIView * redView = [[UIView alloc] init];
RedView. backgroundColor = [UIColor redColor];
// Set NO according to the Apple Doc to prevent the autoresize
IOS Dev (16) is one of the sections on some basic OC knowledge points.
Author: CSDN laruence
Blog: self in static methods of http://blog.csdn.net/prevention1Use self and self to represent this class in static methods (class methods. For example,
1. Starting from block iOS SDK 4.0, Apple introduced the block feature. Literally, a block is a code block, but its magic is that parameters can be passed during inline execution (similar to C ++. At the same time, the block itself can also be
1. When using UIColor
I used the above method and found that there was no effect at all. Later I found that the values of red, green, and blue were all 0 ~ 1. After the attempt, it is found that the following usage is correct:
Divide each value by
Here we use a demo to illustrate how ios transfers important parameters between view controllers. This article first discusses from the handwriting UI, and in the next article we will discuss how to transmit data in the storyboard.
Create an empty
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.