CoreData has never been used before. I tried it recently. It saves a lot of code and is very convenient. Of course, it will only be used.
Create a project first
By default, the system will add some things to you. As for how these things are made,
Sometimes, if you want to run a piece of code after a certain period of time, you need to use delayed execution.
There are several common methods:
1. The most direct method is performSelector: withObject: afterDelay: the disadvantage of this method:
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:
//
... 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.
We often encounter the need to call out another application in one application, such as clicking an address in the document and calling safari to open a webpage; for example, clicking a file in a file browser, automatically activate an application
# 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
N the apple sample code "SpeakHere" you can do some thing like this:
AudioQueueNewInput (
& MRecordFormat,
MyInputBufferHandler,
This/* userData */,
NULL/* run loop */,
NULL/* run loop mode */,
0/* flags */, & mQueue)
You can do some thing in
As we all know, no tool can easily build complex interfaces like html/css. To ensure a good user experience, sometimes we may choose to use html to display highly complex and reusable interfaces. On the iOS platform, it is natural to choose
Web
How to upload file in Node. js
Create Echo Server in Node. js
Near-Realtime Analytics with MongoDB, Node. js & SmoothieCharts
Getting Started With Node. js and Visual Studio
Partitioning MongoDB Data on the Fly
Other
Making C #
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
On the 2011 WWDC, Apple released GCD, which adds a new method for multithreading. GCD must run in iOS or later or OS X10.6 or later. GCD, short for Grand Central Dispatch, is a group of C interfaces used to implement concurrent programming. GCD is
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
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 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,
The status bar and view in iOS7 overlap, so the y coordinate of the application cannot be the same as before. You need to recalculate the settings. Basically, you can see this problem after running Xcode5. Here is a simple example. A Label control
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
When I was working today, I encountered such a problem ..
It's so careless. Mark,
11:44:34. 762 softwareApp [1435: c07] *** Terminating app due to uncaught exception 'nsinternalinconsistencyexception', reason: '***-[JKDictionary setObject: forKey:]:
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