I used a small App last year. The key feature was to send a local notification to the user. Unfortunately, I didn't write my blog at the time, so I didn't record the corresponding knowledge. Recently, I encountered the use of this function. This
Similar to what a process is and what a thread is, I don't waste much time here (Google has everything )!
Create and start a thread in Obj-c
// Create multi-threaded object 1
NSThread * thread = [[NSThread alloc] initWithTarget: self selector: @
-(Id) init {self = [super init]; if (self) {/* OSStatus AudioSessionInitialize (CFRunLoopRef inRunLoop, // The interrupt listener callback of the running loop should be run. NULL is passed and the main running cycle is used. CFStringRef
The home page of the project needs a 3D effect. You can refer to this Demo. What about this example? I got one from the Internet, but I don't know. It's amazing that the people who wrote the Demo can do it easily. It's amazing, I watched it for an
ViewController. h
//// ViewController. h // magnifier example /// Created by du jia on 14-3-10. // Copyright (c) June 2014 dujia. all rights reserved. // # import
# Import magniierv. h @ interface ViewController: UIViewController @ property
First, generate a class that inherits from UILabel SFPStrikeThroughAndUnderLineLabel
1. In the. h file
@ Interface SFPStrikeThroughAndUnderLineLabel: UILabel
{
BOOL _ isWithStrikeThrough;
}
@ Property (nonatomic, assign) BOOL isWithStrikeThrough; //
The previous part will not be flipped over. You can view the specific content directly.
Known problems with Bluetooth
When a 32-bit application runs on a 64-bit device, it cannot connect to the BTServer.
CFNetwork description
A compatibility
Autorelase: You can assign an object to the automatic release pool. When the release pool is destroyed, perform a release operation on the object as follows:
* Person =
Note: when defining the method name, it starts with the class name, and the
@ Interface Person: NSObject
+ (Void) test1;
-(Void) test2;
@ End
// Execute this line of code based on the Person class and method defined in the. h file as follows in the memory
Person * person = [[Person alloc] init];
SEL is
Clear that!
Dispatch_async sends a block to a specified thread for execution. The current thread does not wait and will continue to execute.
Dispatch_sync also sends the block to the specified thread for execution, but the current thread will
Only now can I understand that uicollectionview is used in the same way as u I tableview.
If you are using a storyboard
In the production process, be sure to pay attention to the connection of datasource dalegate, and some custom connections between
1. Set the size of ImagePicker.
ImagePicker is always displayed in the default size in Popover Controller. Setting the popoverContentSize attribute seems useless. The solution is to "include" ImagePicker to a custom ViewController, and then
When the autorelease method is executed, the object is added to the Auto Release pool.
When the automatic release pool is destroyed, all objects in the pool are automatically released for the release operation.
After the object executes the
Inter-Application Communication: 1. Learn about URL Schemes. URL Scheme is something like http: //, ftp: //. You can also customize URL Scheme for your own applications, other applications can access your application by using this identifier. If the
About NSURLSession upload and download
After IOS7.0, Apple released a new NSURLSession to replace NSURLConnection. NSURLConnection is executed in the main thread by default. The NSURLSession is executed on other threads. This article mainly
1. what is memory management the memory of mobile devices is extremely limited. The memory occupied by each app is limited. When the app occupies a large amount of memory, the system will issue a memory warning, in this case, we need to reclaim some
1. Create a repository on github to store the project you will submit
2. Open the terminal to enter the root directory of your project and execute the following command
Git commit-m
In this way, a common project is initialized into a git project.
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