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:
//
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
# UserDefault tips# Version numbers must be added to UserDefault for version-related variables> For example, hasShowGuide // whether the boot page is displayed>, It should be hasShowGuide1_1_0# The added version number should be obtained using
When developing a project, I encountered a problem:
In my UIScrollViewOut, A UIScrollViewIn is embedded,
When I want to drag UIScrollViewIn, UIScrollViewOut changes, while UIScrollViewIn does not. However, you only need to press and hold
IPhone/iPad development Simulator screenshots
Command + Shift + 3Capture entire screen and save as a fileCapture the entire screen and save the png file to the desktop
Command + Control + Shift + 3Capture entire screen and copy to the
Notes for using loadView in iOS Dev (43)
Never take the initiative to call the loadView MethodViewController calls loadView when the view attribute is requested and the current view is nil.If you use xib to create a view and initialize
IOS Dev (38) You may not understand the main. m file
First look at the code#import
#import AppDelegate.hint main(int argc, char * argv[]){ @autoreleasepool { return UIApplicationMain(argc, argv, nil,
We found that map and location functions are introduced in many social software. If we want to implement these two functions, we need to use two frameworks: Let's first look at the frameworks: and the frameworks:
[_mapView
I have always wanted to study coreText. Now I have the opportunity to record it.
VcD4KPHA + examples/fOqtK7uPbV + examples + MO/0NC/examples + examples/examples + 4 LXItcjQxc + ioaM8L3A + examples/OhoyAyoaLJ + examples
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 animations include attribute animation and transition animation. Before ios4.0Property Animation
The content and settings are mainly placed in square brackets:
[UIView beginAnimations: @ move context: @ aa];
Set the animation content and
We all know that mobile phones have the vibration function. In fact, this function is very simple to implement. We only need to use a few functions:
-(Void) motionBegan :( UIEventSubtype) motion withEvent :( UIEvent *) event
-(Void) motionEnded :(
1. Image View
// Find the image
UIImage * pImage = [UIImage imageNamed: @ "sea.png"];
// Create an ImageView Based on the Content Image
Self. pImageView = [[UIImageView alloc] initWithImage: pImage];
// Place the ImageView to the parent View
[Self.
When I write the following code in ARC mode, the compiler reports an error.Semantic Issue: Property's synthesized getter follows Cocoa naming convention for returning 'owned 'objects
@ Interface ViewController: UIViewController {
NSString *
Gesture refers to all events that occur when you touch the screen with one or more fingers until all your fingers exit the screen. The UIGestureRecognizer is an object that knows how to observe user-generated event streams and recognize when users
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