IOS: local notification UILocalNotification
1. Create a local notification
UILocalNotification * local = [[UILocalNotification alloc] init];
2. Set the notification display time
Local. fireDate = [NSDate date];
3. Set the Default Time Zone
IOS skills, features, and specifications
I. compiler features
1. ARC.
ARC is a compiler feature. If ARC is used in the project, the compiler automatically adds the OC object counter release code during project compilation. If ARC is used, the
Ios: Modify the project name and program name (xcode6.3)
Step 1: Modify the project folder name
Step 2: Open the new folder and set. rename xcodeproj, right click. xcodeproj and select Show package contents. A dialog box contains several files. (
25 common methods for iOS performance optimization/Memory Optimization
1. Use ARC to manage memory
ARC (Automatic ReferenceCounting, Automatic reference counting) and iOS5 are released together to avoid Memory leakage, which is often caused by
Optimize the performance of tableView (for the phenomenon of card sliding), tableview slidingOptimize tableView performance (for the phenomenon of card sliding)
In iOS apps, UITableView should be one of the most frequently used views. IPod, clock,
IOS map positioning uses several small FunctionsThe positioning service provided by the iOS system can meet many requirements. For example, obtain the current longitude and latitude, and obtain the current location information.Obtain the current
IOS basics-UITextField
UITextField is usually used for external text input, which is a common input box. The following code describes various UITextField attributes and methods.
-(Void) viewDidLoad {[super viewDidLoad]; // text input box
UITableView table view and reconstruction mechanism, uitableviewTable view UITableViewThe table view UITableView is the most important view in IOS. It can be seen everywhere. A table view is usually used to manage a group of data with the same data
(IOS) RESPONSE event transfer, nextResponder Research
RESPONSE event transfer, nextResponder Research
Here, we will consider the following two cases.
Question 1. How do I call the methods in the controller of the parent view?
The answer is
IOS multithreading and thread synchronization
Generally, we use threads to access the same resource in multiple threads. To ensure the security of thread resources and ensure the correctness of thread access.
In IOS, we generally use the following
Source code of a High-imitation ios application, and the high-imitation ios source code
Similar to basic functions. XMPP-based instant messaging and dating clients.---- The functions of the first code are as follows ----1. New User
The ASIHttpRequest function is used to load network data and data.
To use the third library of ASIHttpRequest, You need to configure
II,
The data upload function uses ASIFromDataRequest (binary and string can be uploaded to the server)
The
IOS development-custom list controls
In the past two days, projects are relatively idle. When you are idle, You can implement the list control by yourself. It took about one day from the start of the project to the preliminary completion. At present,
Simple login layout for ios Learning
Haha, I am a local tyrant. I have to buy a mac and start to install it. I can't be idle when I buy it. By the way, I want to learn about ios and learn a simple login interface, all apps have logon interfaces.
IOS development-Contacts touch eventsTouch event
When a user uses an app, various events are generated.
Events in iOS can be divided into three types:
Touch event: accelerator event: Remote Control event:Recipient
In iOS, not all objects can process
Animation in IOS -- Core Animation
I. Basic animation CABasicAnimation
1 // initialization method: CABasicAnimation * cabase = [CABasicAnimation animation]; 2 // you can use keyPath to set the attribute to be animated. In this
IOS interview questions1. The answer to the definition of MAX or MIN. cainiao is as follows:
#define MAX(X,Y) X>Y ? X : Y
Verification:When MAX (1 = 3, 2) is input, the expected result is 2, but the actual result is 0?The answer is as
(To) oc static extern and const, ocextern
Static global, which can be changed. If static is declared in a class, the change volume is also used when it is used elsewhere in the class. Similar to java, but cannot be accessed directly using the class
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