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
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
1. After the Xcode tool is installed, it will bring with it the frameworks that are commonly used in development. The storage address path is:
/Applications/Xcode. app/Contents/Developer/Platforms/iPhoneOS.
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
UIButton achieves background stretching, that is, there are two ways to do this without stretching between the two ends of the image:
The first method is simple and widely used. The method is to directly stretch the image for setBackgroundImage. The
Clear that!
Dispatch_async sends a block to a specified thread for execution. The current thread does not wait and will continue to execute.
Dispatch_sync also sends the block to the specified thread for execution, but the current thread will
1. Create a repository on github to store the project you will submit
2. Open the terminal to enter the root directory of your project and execute the following command
Git commit-m
In this way, a common project is initialized into a git project.
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 @
1> non-retina abc.png
2> retina abc@2x.png
The program detects the Retina screen to automatically replace @ 2x
* The default.png image is automatically displayed on the full screen during the program startup process, and the default.png image
1. Classes are also objects
A Class is a Class object.
Class Type Definition
Typedef objc_class * Class;
A class name represents a Class Object. Each class has only one class object.
Class person1 = [Person * p = [Person = [p
1. The description method is the NSObject method, including class and object methods.
+ (NSString *-(NSString *
2. By default, when NSLog and % @ are used to output objects, the class name and memory address are returned.
3. Modify the default
Use of NavigationBar
1. // use the setnavigationbarhidmethod of the navigation controller to hide the navigation bar
[Self. navigationControllersetNavigationBarHidden: YES];
2. // the size of the navigation bar in the navigation controller is
Question address: Click to open the link
C ++ code:
#include
#include
#include
#include #include
#include
#include
#include
using namespace std;int main(){int
Review
[Cocos2d-x IOS game development-fishing talents 1] content Introduction
Review in the previous section
[Cocos2d-x IOS game development-city parkour 1] parkour game Introduction
Review in the previous section
Cocos2d-X game
1. Open the info. plist file under the Resources file.
2. Add a row in plist. The key is View controller-based status bar appearance and the value is set to NO (as shown below)
In this way, the status bar is hidden.
In addition, if the above
Before ios7, you can use this line of code in AppDelegate to hide the status bar:
[[UIApplication sharedApplication] setStatusBarHidden:YES];
However, in ios7, this line of code does not take effect. You need to add a configuration in the plist
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