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
The precision of the finger on the screen is very different from that of the mouse pointer. When a user clicks a screen
The area is actually an elliptical shape, and it is closer to the next point than you think. The size and shape of the touch area
As shown in the third lecture, even if the XIB file is not used, you can rewrite the viewDidLoad function to configure any view or Controller. Here we will look at how to program and customize such views and controllers.
First, if the XIB file
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 :(
1. I wrote a small Demo to implement up and down movement: the main code is as follows: [cpp]-(IBAction) upChange :( id) sender {if (typeView = down) {[self. downBtn setHidden: NO]; [self. upBtn setHidden: NO]; [UIView animateWithDuration: 0.5
KVC (Key Value Coding)
KVO (Key Value Observing)
KVB (Key Value Binding)
KVO is an important mechanism of Cocoa. It provides methods to observe the changes of a certain attribute and greatly simplifies the code. This observation-the observed model
1 PrefaceToday, we will learn how to create an auto scaling transform for your view and use the UIView animation method to perform the scaling transformation.
2. code exampleZYViewController. m:
[Plain]-(void) viewDidLoad{[Super viewDidLoad];// Do
Alert views are pop-up views that appear over the current view on the iPhone.
Creating and showing an alert (ARC compatible ):
UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @ "Really reset? "Message: @" Do you really want to reset this
Static LinkingIf you find the reference in the obj file during ld, the binary code of this reference will be added to your program in libary.The static link program is a truly complete and runable program. You only need the OS kernel to call this
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 PrefaceIn the previous section, we introduced the state of program execution. From the example, we can find that there are clear policies to follow when processing these state changes. Here we will introduce them.
2. Details2.1 activity-no
1 PrefaceThe simplest state an application encounters is transition from activity to activity, and then return to activity. Today, let's use an example to look at its specific application.
2. DetailsThe content here is relatively simple, so you can
1 PrefaceWe have already learned that we can construct a wide variety of application interfaces. Then, some applications cannot be fully implemented simply by using the built-in components of UIKit. Sometimes the application needs custom plotting.
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
There are several data storage methods in iOS development. Select an appropriate data storage method based on the specific business scenario.
(1) User default settings-in this case, user intervention is usually not required, such as game clearance
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
. Add the required library xxx. ttf to the project. Note that it must exist in copy bundle resources. If not
2. Add fonts provided by application to the info. plist file. The default value is array. You can also use dictionary to add xxx. ttf as
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
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