Ios7 _ How to Implement UIAlertView and listen to click events, ios7uialertview
1. In the viewController. m file, follow the proxy Protocol
@ Interface moboViewController ()
2. Implement UIAlertView in the-(void) viewDidLoad Method
1-(void)
IOS _ draw a Label with strikethrough
A text label with strikethrough, inherited from UILabel
The steps for self-painting Code are as follows:
1. Override the drawRect method of the control.
2. first obtain the context object
3. Set the color
Set navigation bar properties for ios weibo the next day and add the plus sign button
Key points: 1. Add the plus button at the bottom. 2. Set navigation bar properties.
1. Four buttons at the bottom of the weibo button are the same, and the plus
Obtain UUID from iOS7 and convert MD5
Recently developed in the project, it is used to obtain UUID to MD5, but iOS7 cannot use the obtained UDID interface (involving privacy). The interface for obtaining MAC addresses is also discarded under iOS7.
IOS development -- call between applications (1), ios development
Call steps between iphone applications:
1) register the external interface in the plist File
In xcode group & files, expand resources and select info. plist
Right-click information
IOS-dispatch_semaphore and NSOperationQueue concurrency, nsoperationqueue
Concurrency: Run multiple tasks at the same time. It is also called "colopicity", which refers to the ability to process multiple synchronous activities.
Parallel: Two
Transfer Data between ios page jumps ---- use delegate
Mainly used, two classes, one delegate
Class a: Class B is called. After Class B is executed, a data must be passed to Class a, and Class a displays the data.
1. delegate, this header file is
IOS_21 group_ipad neutron controller screen adaptation
Finally:
Important screen adaptation techniques in iPad,
Add a contentView placeholder first,
And only set the frame in the viewDidLoad method,
Because no matter whether the horizontal
Ios gets the properties and width of the screen.
1. app size, remove the status bar
CGRect r = [UIScreen mainScreen]. applicationFrame;
R = 320,460
In addition: self. view. bounds. size
2. Screen Size
CGRect rx = [UIScreen mainScreen].
How to keep the socket persistent connection and data transmission in the iOS background
In the project, tcp persistent connections are used to transmit data to the server. On the IOS platform, due to Apple's background mechanism, the following
IOS multithreading _ NSThread and NSInvocationOperation
// Although most of the threads are currently using GCD, we should be familiar with other methods to introduce the simple usage of NSThread and NSInvocationOperation.
@
IOS_21 basic use of group_uicollectionview
Finally:
Code snippet:
DealListController inherits from UICollectionViewController
Self. view already contains a UICollectionView
And the data source and proxy are already the current controller self
Ios's understanding of the anchor
There are not many places for anchor in ios, most of which are used in animation.
Today, I saw an animation. It was all about the anchor. The concept of anchor came into contact with cocos2d two years ago. I didn't
QQ interface for iOS
Compile a QQ interface as requested by the master to help me solve the code problem.
Compile a QQ interface with three groups, each of which is attended and shows that the group is online or offline;
Let's take a look.
This
Simple use of NSThread for iOS Multithreading
1. Thread construction and enabling:
(1)_thread1 = [[NSThread alloc]initWithTarget:self selector:@selector(threadOneMethod) object:nil]; _thread2 = [[NSThread alloc]initWithTarget: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