Common attributes: frame, bounds, and center
Important Method: addsubview adds a child control to a parent control. superview returns the parent control of the Child control.
Common functions:-(void) removefromsuperview;
-(Void) insertsubview :
1. Obtain the date of the current day
Nsdate * today;
Today = [nsdate date];
2. [[uidevice currentdevice] orientation] the following seven statuses are available for obtaining device statuses:
Uideviceorientationunknown
Uideviceorientationportrait
This article is transferred from the network, the original address
Memory usage is critical during iPhone development. Not only should we allocate and use the memory reasonably, but we should also pay attention to the memory leakage problem, because
Find iPhone Memory leakage: leaks Tool Guide Original address: http://www.mobileorchard.com/find-iphone-memory-leaks-a-leaks-tool-tutorial/
See also: http://www.iposei.com /? P = 127
My game development is coming to an end. Recently, I often use
Document directory
Aesthetics integrity
Consistency
Intuitive operation
Feedback
Metaphor
User Control
A good user interface should follow the "human-user-thinking and work" concept in the user interface design principle, rather than the
In iOS, objective-C uses reference counting to manage memory. Recently, when writing animation effects, it encountered a memory leakage problem.
For the delegate declaration of objects, we recommend that you use assign in the objective-C
From: http://www.wuleilei.com/blog/327
VoIP is used in recent projects. The full name of VoIP is voice over Internet protocol, that is, network telephone, which is frequently used in daily life, such as Skype.
There are not many VoIP libraries that
I did flash development. Due to ANE and other development issues, I decided to invest in iOS development.
IOS development aims at ANE and interest.
Document preparation: the English version is also prepared for temporary translation
Icationcenter center usage:
[Original] nsicationicationcenter may not be created in the class of the message receiver. You can put it in another class. instantiate it first, and then assign the value of observer to the new object.
Here, the observer
Required Conditions:
99 $
(You don't have to read it any more)
My system is in different versions of 10.5.7, which may be slightly different.
First, log on
Http://developer.apple.com/iphone/index.action
If you have purchased 99 $, log on to the
Nsdateformatter is used to convert between nsdate and nsstring:
Nsdate to nsstring:
Nsdate * Date = [nsdate date]; nsdateformatter * dateformatter = [[nsdateformatter alloc] init]; [dateformatter setdateformat: @ "yyyy-mm-dd hh: mm: SS"]; // set
1. uitouch
The phase property returns a constant of the touch phase, indicating that the touch starts, continues, ends, or is canceled. (Constant returned by phase:
I. xml: an open-source parsing class, gdataxmlnode (add it to the project), and add the libxml2.dylib framework
Frequently used methods:
1.-(ID) initwithxmlstring :( nsstring *) STR options :( unsigned INT) mask error :( nserror *) Error
2.-(ID)
Classes used in network connections:
1. reachability
1. Add the. h and. m Files of Reachability, and then add systemconfiguration. framework.
2. Three Network statuses are defined in reachability:
Typedef num {
Notreachable = 0, // No
The above is the effect of the navigation bar, which is widely used in projects and needs to be mastered.
Create a project and select "empty application". The project name is navigationcontrollertest.
Create a new uiviewcontroller view named
The main content of Memory Management in IOS is to solve the crash problem !!!
Crash
In iOS, 100% of the reason for crash is memory problems.
1. Memory leakage (open up space, no recycling; keep opening up without releasing)
30 m (a program 3gs, 3
The iPhone contains many frameworks and libraries, from the underlying sockets to different layers of encapsulation, you can easily add network functions to the program.
(1) BSD socket. The underlying socket, which is a common API for UNIX network
Method 1: Add [self. textfiled resignfirstresponder] to the button clicking event.
Method 2:
In the XIB file, you can not add a view control on the view page. A simple method is to set the class of the view page to uicontrol (this class inherits
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.