IOS open source code-non-UI

Regexkitlite -- Regular Expression To extract specific content from a string or check the validity of the input, a regular expression is often used. Regexkitlite extends nsstring and supports regular expression search and replacement.

Line feed in IOS uitextview and localizable. Strings

1. Use localizable. StringsOption + returnThe key combination inserts \ NAnd then load the string to uitextview to display the line feed. Nsstring * obtained after internationalization is converted to char *. The position of the line feed in char *

IOS study notes 44-implement sliding menu slidingmenu

Sliding left and right to switch out menu or sub-interface is now increasingly used in a variety of mobile applications, such as Facebook. Today John's project on GitHub is used to implement this function first: In operation, you can click

IOS application development architecture

I have been developing IOS for nearly two years and have written a lot.Code, Has done a lot of projects. I will share with you the architecture of the IOS application. This article is my opinion. If you have any concerns, please leave a message.

IOS data sorting (sandbox)

I. Sandbox)For security purposes, ApplicationsProgramYou can only write your data and preference settings to specific locations. When an application is installed on a device, the system creates a home directory for it, which is the sandbox of the

Asynchronous image loading for iOS development

Original method: asyncimageview. h: #import @interface AsyncImageView : UIView{     NSURLConnection* connection;    NSMutableData* data;} - (void)loadImageFromURL:(NSURL*)url;@end Asyncimageview. M: #import "AsyncImageView.h"@

IOS Exception Handling learning notes

1. Starting with version 3.3 of the GNU Compiler Collection (GCC), make sureThe-fobj-exceptions flag is turned on; 2. The macros ns_during, ns_handler, and ns_endhandler Corresponding to @ try @ catch raise corresponding Throwthe exception macros

IOS multi-core processing code

// Multi-core accelerated processing function // during the blocking period, a thread with the same number of processor cores is created to execute the callback function // For example, a dual-core will execute the following method // pfun (0, 2) //

IOS code for distinguishing single-and double-finger-presses

How can we distinguish between single-finger and double-finger tap? Directly run the Code. If uikit is used, modify the function name. The following code is cocos2d. // Gametouches = [[nsmutableset alloc] init];-(void) cctouchesbegan :( nsset *)

IOS open source code-ui-related

Mbprogresshud -- Progress indication An elegant, translucent progress display. It also provides other additional functions, such as displaying complete information and fading out. Icarousel-- Page arrangement with cool results Pages with similar

IOS learning notes 1-iphone program running process

IPhone program running process Main. M file, the main entry of the IOS Application The two parameters of the main function are command line parameters, which are not used in iOS development. These two parameters are used to be consistent with the

IOS learning notes 9-ios touch event monitoring and operations

Various operation events will be encountered in iOS development, and these events can be responded through the program. First, when an event responds, you must know who will respond to the event. In iOS, the responder chain responds to events. All

IOS Study Notes 10-uicontrol object details

In the previous article, we talked about uitouch and uievent events. In a brief review, uievent is a collection of uitouch and is responsible for responding to touch events in IOS. In addition, the concept of the responder chain is also mentioned.

IOS study note 41-Apple push mechanism apns (2)

The previous article introduced the basic principles and processing procedures of apns. After introducing the apns mechanism, let's take a look at how to integrate the apns service into our own project. First, log on to our apple developer

IOS study note 27-use gdataxml to parse XML documents

There are many ways to parse XML documents on the iOS platform. There are built-in parsing methods in the SDK, but in most cases, they tend to use third-party libraries, the reason is higher resolution efficiency, more convenient to use, on the iOS

IOS video playback [mpmovieplayercontroller]

1. The database must be supported. Mediaplayer. Framework 2. Code Mpmovieplayercontroller * mplayer = [[mpmovieplayercontroller alloc] init]; // video address local nsstring * Path = [[nsbundle mainbundle] pathforresource: @ "FILENAME" andtype:

Sharing of IOS programming experience (Niu Ren)

Arranged in different order: 1. When performance encounters problems, if you can perform computing and processing at the application layer, take it out of the database layer. Sorting and grouping are typical examples. Performance improvement at the

The IOS function receives an indefinite parameter.

//[ViewController writeWithFormat:@"1", @"2", @"3", nil]; + (void)__methodName__:(NSObject*)string, ... {// parms must be end with nil    va_list args;    va_start(args, string);    if(string) {        NSLog(@"Do something with First: %@", string);  

IOS supports playing music in the background

After ios4, audio can be played in the background. You can play the audio in the background in the following two steps. 1. In info. plist, add the "Required background Modes" key and set its value to "app plays audio" 2. Add the following two pieces

[IPhone advanced] XMPP-based IOS chat client (XMPP Server Architecture)

I recently read about the XMPP framework. Taking text chat as an example, the message to be sent is: helloWord In the base, from is the message sent from the user, to is the message sent to the user, XMPP users are in the form of mailbox. Body

Total Pages: 709 1 .... 575 576 577 578 579 .... 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.