Cocoa provides two methods for communication between IOS threads, one is mongomselector and the other is port.
Let's talk about the 1st types, which are the following:
2nd are nsmachport methods.Nsport has three subclasses: nssocketport,
When I first came into contact with obj-C, I always had no idea what to release, what to release, and when to release. Although automatic reference counting is provided after xcode4.2, the IOS coder around me tells me not to use this because it is
For custom controls such as uitoolbar, uinavigationbar, uitabbar, uibarbuttonitem, and uitabbaritem, we will discuss them together because they are common.
There are usually two ways to implement customization.
1) obtain the control object, and then
Airplay is a cool feature in IOS. It is connected to devices that support airplay through Wi-Fi, and then the image function can be used to display content and play sound on other devices. Many large games support airplay. For example, when
In previous blog posts, we have explained avaudioplayer and systemsoundservice usage. These two functions are suitable for playing game sound effects to a certain extent. Both have their own advantages and disadvantages. Which of the following are
Open Source Address: https://github.com/robbiehanson/CocoaAsyncSocket/wiki/Intro_GCDAsyncSocket
How to Use: see the specific instructions under the website.
Encapsulated code;
//// Clientsocket. h// Gameclientengine//// Created by Chao Zhang on 12-2-
Notification is a very common information transfer mechanism in smartphone application programming. It can save resources and check information status without consuming resources ), apps in IOS are divided into two different notification types:
Here is a very practical tips. When developing applications, we often use nslog to debug our programs. As the project grows, the log output for debugging becomes difficult to manage. When releasing the official version, we must block all background
After we finish helloword, we will learn some of the simplest and most practical controls. 1. Implementation of uialertview:
The effect is as follows:
2. the difference between uiactionsheet and uialertview is that they are used to prompt the user
Blocks are what help organise your code into independent snippets of code, optimised for re-use and readability. They have been introduced into our uikit world in IOS 4, along with over 100
Apple APIs that make use of blocks, so it is something that
I. keyboard Style
The uikit framework supports 8 types of keyboards.
TypedefEnum{
Uikeyboardtypedefault, // default keyboard: All characters are supported
Uikeyboardtypeasciicapable, // supports the default ASCII keyboard
As defined of you are aware, ios4 introduced several APIs that bring some degree of multitasking to iOS applications: one of them was originally meant to give an App the extra chance to finish some worthy tasks before getting susponded: It's called "
Original article: http://www.yonsm.net/post/553
To install a program in iOS, there are three types from the user's perspective:
1. Deb method similar to cydia: directly installed to/applications as the system app, cannot be long-pressed to delete (
It has been a long time since the iPhone 5 was released. Due to the changes in screen size, flexible UI control by the program is particularly important.
In fact, this summary still uses the relevant attributes in the old API, but we didn't think
Why the application itself? Because normal localization is based on the current settings of the device. In practice, some applications often require localization that is not related to device settings. For example, in a game, a player can select the
Maybe I don't know what I'm talking about, because IOS originally used this function, and what else does it simulate? Let me explain the background of the project.
I am developing a webapp, which is mainly used on the iPad. The app size is fixed. To
Recently, you need to add mobile ads to a cocos2d game. As we all know, there are many mobile ad platforms, each of which has its own SDK and each SDK method, the process is different. Find and find the final mobile advertisement.Its own website
At night to help students to see a Cocos2d-x project memory release problem, Win32 version running no problem, occupied memory only 20 mb, but on the iOS platform, crash is removed without switching between scenarios.
Several problems found during
Recently I have been reading some open-source projects. One of the pop-up menu quadcurvemenu seems pretty good. Unfortunately, you can only bring up the menu in the upper right corner, so I modified it and implemented the pop-up menu in eight
When developing cocos-2d, I learned some knowledge:
On iOS, the image is automatically scaled to the Npower of 2. For example, a 1024*1025 image occupies the same memory as a 1024*2048 image. The formula for calculating the memory used by the image
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.