After ios6, orientation can be set in the plist file. The setting item is "supported interface orientations ".
If you use ios5 or the following versionBy default, the uiviewcontroller class supports portrait only. To support other orientation, You
After mastering the basic skills, it is basically difficult to understand all the disassembly results. It is better to teach fish to fish:
Observe what you writeCodeTo master the disassembly results of various codes, so as to reverse guess the
When developing an application, you sometimes want to add a sound to the application, such as a key tone or a drop-down menu sound, or increase the vibration. It is most convenient to use system sound services to play these short-term sounds.
Enter
The Objective-C2.0 provides the category mechanism to expand existing objective-C classes. We can use the category mechanism to solve the problem that some methods of the existing cocoa framework have too many versions.
For example, in uiwebview,
You can create a tableview in multiple ways.
We first use the simplest method to create a tableview.
Write uitableview directly in appdelegate. m. The Code is as follows:
-(Bool) Application :( uiapplication *) Application
Gesture of iOS development -- Coexistence of uigesturerecognizer
In the development of iPhone or iPad, in addition to using the touchesbegan/touchesmoved/touchesended method to control users' finger touch, you can also use the uigesturerecognizer
1. Architecture comparison between MAC and IOS
Mac: Cocoa, Media, Core Service, and Core OS
Ios: Cocoa Touch, Media, Core Service, and Core OS
We can see that the changes in Ios and Mac are mainly different from those in Cocoa Touch. Cocoa Touch
The Objective-C language level synchronization uses the mutex, just likeNSLockDoes. Semantically there are some small technical differences, but it is basically correct to think of them as two seperate interface implemented on top of a common (more
Document directory
One is to use two defined subclasses:
The other is to inherit NSOperation
Previous ArticleNSThread for iOS multi-thread programming
This article introduces three types of multi-threaded programming and NSThread.
There are
1. dynamically Add a Button
After a Button is clicked, a Button is generated and added to the Button.
1. Drag and Drop a button on the xib file with the title "Add button.
2. Hold down the ctrl key and drag it to the blank space of the
UINavigationController for iOS (1) adding UIBarButtonItem is the previous article. Let's talk about the important role of UINavigationController, Page Management and switching.
1. RootView jump to SecondView
First, we need a new View. Create a
On iOS, the time and date Selection control is like this. On the left side is the combination of time and date, and on the right side is the pure date mode.
,
You can select four modes as needed: Time, Date, Date and Time, and Count Down Timer.
UIAlertView is similar to MessageBox on Windows. A small record, ah! I want to write down everything that I want to write down, even though it is simple and the related technical documents of Apple are also described. The initial stages of obsessive-
First download the xmppframework address: https://github.com/robbiehanson/XMPPFramework point ZIP that button to download.
Specific Operation Method reference: https://github.com/robbiehanson/XMPPFramework/wiki/GettingStarted_iOS
Here is
Memory partition:
1) stack: the stack zone is automatically allocated and released by the compiler, and stores the parameter values of functions and the values of local variables. The operation method is similar to the stack in the data structure.2)
In recent projects, image security needs to be processed to ensure that users (even jailbreaking users) cannot view the images downloaded from the server.
After a variety of methods, it is found that it is most convenient to use base64 to encode 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