Premise: When XCode is used for development and debugging, it is often necessary to print some debugging information for debugging. As you know, when there are too many information to print, it may not be a problem to run on the simulator, because
1. How to capture packets for real-machine joint debugging
Establish a virtual port and use the mobile phone's identifier. wireshark can detect the virtual port for packet capture.
Open zombie Process
Breakpoint for standard library
You can write a class crashpolictioincatcher and define a static method startCrashExceptionCatch in the class. In the method, call NSSetUncaughtExceptionHandler (& uncaughtExceptionHandler );
Bind the void uncaughtExceptionHandler (NSException *
I recently developed a Rich Text editor on the iPhone (see Rich-Text Editing in Mozilla ).-webkit-tab-highlight-colorI have not seen any articles on similar issues.Problem
Click the editor area (top-level container isdiv[contenteditable=true]) To
The Singleton mode is simple and often mentioned in interviews, so it is placed in the first place.What is Singleton mode?
Singleton, literally, means that the entire application can only create or have one instance.Why is Singleton mode required?
1.
Upgraded xcode5 to adapt to ios7. various pitfalls ..
Today I met another one.
The height of textview cannot be calculated correctly. (You can use textView. contentSize. height to obtain a float height)
However, on ios7, I found this was
NSBundle * bundle = NSString * path = [bundle pathForResource: ofType: _ dict = [NSDictionary dictionaryWithContentsOfFile: path];
NSMutableArray * images = (I =; I
Mark listens to all the buttons and click (IBAction)
There are three methods to implement multithreading in iOS development: NSThread, NSOperation, and GCD. This article describes the specific implementation of the three methods.
1. NSThread
There are two ways to initialize a thread:
/*******
1. Monitor the shake Action 1> make the current view controller the first responder // you must first make the current view controller the first responder to respond to the action time [self becomeFirstResponder]; 2> implement response
Run the application with Xcode5. The first result is the status bar change. In iOS6, the status bar is being processed by the system and does not need to be considered in the application. After iOS7, the application is processing. Each
In ios development, sometimes we need to play a certain kind of sound frequently, such as refreshing prompts on Weibo and QQ messages. For these short and frequently-played audios, it is best to add it to system sound. Note: The audio file to be
1. Create a single view project, import the ASIHttpRequest library, and import the four system libraries MobileCoreServices, CFNetwork, SystemConfiguration, and libz1.2.5.dylib.
2. Add an image as needed, such as haoyou.png
3. ViewController.
We all know that the tabbar of the UITabBarController controller in Xcode was ugly before IOS7, but sometimes we wanted to use UITabBarController to quickly switch the interface, which involved customizing the tabbar. So how can we customize a
1. Create a single view project, import the FMDatabase library, and import the libsqlite3 system library;
2. ViewController. xib File
3. ViewController. h
@interface ViewController : UIViewController
{ IBOutlet UITextField *_name;
The problem that the address book cannot be read in IOS7 is that the system version is not determined to construct ABAddressBookRef.
The following are two methods in two programs. For more information, see. All versions have been tested.
// Obtain
Comparison of the unique identifier of an existing IOS device
UDID
[[UIDevice currentDevice] uniqueIdentfier]
According to a formula, the device serial number, network interface address, and other information are calculated as parameters. After iOS6,
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