In iOS development, we need to perform localization to display the content of some resources (mainly strings) in different languages. For example, "edit" is displayed in English, and "Edit" is displayed in Chinese ". The customer of a recent project
Author: Sun Dongfeng 2009-12-01 (source)
In my previous article "BSD Socket for iPhone network communication, I tried to use BSD Socket on the iPhone platform to build a framework that is compatible with both TCP/IP and HTTP protocols. In the
In the previous article, we have completed the UIDialogWindow custom pop-up window component. In this article, we will complete the user's OAuth authorization and authentication function. The effect is shown in.
1. Create a class file of the
Based on the previous article, this article completed the user login wait function as shown in Figure 2. First, let's talk about the origin of this page function, this is to query the user records from the table when checking that there is already a
Usage reason: the data is single, small, and the code is concise.
I. Position of NSUserDefaults Data Storage
NSUserDefaults is used to save iPhone program data, which is very convenient to use.So where will the data be stored? Stored in a plist
When I saw a friend who was just developing the iPhone software asking a lot of questions, I actually encountered the same problem. So I took the time to summarize the problems that I could think of or encountered, you can give yourself a memo or
Using C ++ With Objective-CApple's Objective-C compiler allows users to freely mix C ++ and Objective-C in the same source file. The compiled language is Objective-C ++. With it, you can use the existing C ++ class library in the Objective-C
Today, I encountered a terrible problem,
I used xib to create the button control and connected it. There is no problem, that is, when I click button action during the operation, the system will crash and"
Unrecognized selector sent to instance".
1. CCCallFunc can only call callback methods without Parameters
2. CCCallFuncN can include a parameter:
(Id) sender3. CCCallFuncND can contain two parameters (the type of the second parameter can be of any type ):
(Id) sender batchNode :(
During iOS development, developers who transfer data from C/C ++ must pay attention to the autorelease variable scope issue in obj-c. If there is a class under www.2cto.com; @ Interface ViewController: UIViewController{NSDate * memberDate;NSDate *
This article describes how to obtain the html content of a webpage by running javascript: Obtain all html: NSString * lJs = @ "document.doc umentElement. innerHTML ";Obtain the webpage title: NSString * lJs2 = @ "document. title ";UIWebView *
This article uses the previous http://www.bkjia.com/kf/201202/120764.htmlTo replace the corresponding Cell. xib interface with the following:
Then, add the attribute "dataArray" to oneViewController, that is, add @ property (nonatomic, retain)
I. Exception breakpoint descriptionWhen an exception is thrown due to a code problem, the exception breakpoint stops program execution, such as Foundation. some methods in framework, such as NSArray and NSDictionary, will throw an exception if they
1 PrefaceWhen using Quartz 2D drawing, we usually use the subclass of UIView. Think about the drawRect of this class: add the Quartz function call to the method. This method is called every time you need to repaint the view.
2. DetailsIn Quartz 2D,
I have been trying to test IOS development for a long time. Due to the development environment restrictions, I have been confined to theories and virtual machines. Recently, I have started my MacBook Pro and I have come to try it. I have also
Delegated Delegate is a protocol. It is implemented by @ protocol. As the name suggests, it is to entrust others to do something for themselves. That is, when it is not convenient for you to do anything, you can establish a delegate so that you
When debugging the IOS code today, the error "has no segue with identifier" is always prompted. What's even more strange is that debugging on the simulator is normal, and debugging on the real machine will cause this error. I have been developing
Gdb is not omnipotent, but it is absolutely impossible without gdb. Here is a brief introduction to the most basic gdb commands in iOS development.
PoPo is short for print-object and can be used to print all NSObject objects. Example:
(Gdb) po self
UIControl: I believe everyone is familiar with it. For example, the most common UIButton inherits from UIControl. By convention, let's take a look at why there is a UIControl class? When will it be used? After checking the document, we can see that
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