Code the header file directly.
// Image processing 0 semi-gray 1 gray 2 dark brown 3 reversed color + (UIImage *) imageWithImage :( UIImage *) image grayLevelType :( UIImageGrayLevelType) type; // how much is the color value dimmed? 0.0-1.0 +
The most basic macro definition usage
# Define aaa bbb
The content of bbb is replaced by aaa.
Macro scope
Macros are used in the current file,
If you want to act on other classes (for example, calling Class a's defined macro in Class B), you
Recently I used it in the program. In the pop-up box at the bottom, I read the code written by my predecessors and searched the internet. I found that I did not solve the problem very well. So I studied it, share the code and share it with you. If
Tag View Controller-comprehensive use of UITabBarController custom UITabBarItem custom navigation bar and tag Bar background imageI. The tag View Controller UITabBarControllerUITabBarController has the following important attributes: View Controller
The SBJson package is in the previous article.
You can use the key-value pairs in NSDictionary to splice Json data, which is very convenient and can also be nested and directly run the Code:
// Start splicing the Json string NSDictionary *
KCATransitionFade fade outKCATransitionMoveIn overwrites the source ImageKCATransitionPushThe bottom of kCATransitionReveal is shown PageCurl page upPageUnCurl flip down one pageRippleEffect dripping EffectSuckEffect contraction effect, such as a
Sort 24 documents related to iOS OpenGLES framework
Beautiful Life of the sun and fire god (http://blog.csdn.net/opengl_es)
This article follows the "signature-non-commercial use-consistency" creation public agreement
Reprinted please keep this
Reference: if Apple is not so cool, we don't need to customize it. Unfortunately, UIActivityIndicator has only one initialization method, initWithActivityIndicatorStyle. I. It cannot be changed at Will-sometimes we need an invincible firewheel that
First of all, the following two methods can obtain the mac address of the mobile phone, but there is a limit that can be obtained only on iOS. After iOS7, Apple performed technical processing on sysctl and ioctl. the MAC address returns 02: 00: 00: 0
When I added the sharing in the afternoon, I still liked the default sharing Function of ios7 with so many third-party sdks, Which is concise and generous. It also displays your installed social apps.
Next I will explain how to use it in cocos2
In IOS apps, the comment is very simple. You only need two sentences:
1. Obtain the URL address:
NSString * nsStringToOpen = [NSString stringWithFormat: @ "itms-apps: // itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?
Let's talk about the adaptation between different ios versions.
Let's talk about one thing first: In xcode, there is one thing called targets. Apple's official documentation says this:
A target specifies a product to build and contains the
I used a small App last year. The key feature was to send a local notification to the user. Unfortunately, I didn't write my blog at the time, so I didn't record the corresponding knowledge. Recently, I encountered the use of this function. This
The home page of the project needs a 3D effect. You can refer to this Demo. What about this example? I got one from the Internet, but I don't know. It's amazing that the people who wrote the Demo can do it easily. It's amazing, I watched it for an
When the autorelease method is executed, the object is added to the Auto Release pool.
When the automatic release pool is destroyed, all objects in the pool are automatically released for the release operation.
After the object executes the
In-APP purchase
(Nonconsumable) If you buy it, you will have the title and function (Consumable). If you buy it, you will use it. If you use it, you will not have it.
Product defined
Products defined
# Define kIAPBomb @
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