Inter-thread communication in IOS

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,

IOS memory released

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

IOS development intermediate: uitoolbar, uinavigationbar, uitabbar, uibarbuttonitem, uitabbaritem custom method summary

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

Advanced iOS development: airserver uses airplay images for multi-screen display control

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

IOS development intermediate: audio uses avaudioplayer to implement systemsoundservice

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

IOS socket gcdasyncsocket

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-

Use of uilocalnotification in IOS

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:

IOS shields log output based on changes in debug and release statuses

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

Getting started with iOS-basic controls

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

How to Use blocks with IOS

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

Keyboard style settings-iOS development

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

IOS task completion API abuse

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 analysis: Install IPA using mobile installation in IOS (using the same installation API as iTunes/appstore)

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 (

Introduction to UI adaptation in IOS

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

Localization of IOS applications

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

Simulation of Page scrolling effect on webpages on iOS devices

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

[IOS] how to add mobile ads to cocos2d games

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

[IOS] the process of solving the problem of memory release in cocos2d-x

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

[IOS] extended quadcurvemenu to implement pop-up menus in eight directions

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

IOS big image loading and cutting

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

Total Pages: 709 1 .... 395 396 397 398 399 .... 709 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.