Learning iOS development. If you are playing with it, the simulator in the Mac will be enough, but because the memory computing capability of the Mac simulator is much better than that of the real machine, there are many problems you can't find
This article describes how to implement a Tag list.
The effect of the iOS project is shown in the figure:
In each task, the corresponding tag List is included.
First, define a UILabel class:
FillLabel. h:
# Import @ Interface FillLabel: UILabel@
Because of the need for interface beautification, the original SearchBar control is too ugly and lazy to study the new style of the SearchBar control, so I decided to rewrite a search function control.
Creates a UITextField class object.
[Cpp]
There are some classes in UIKit that can be used to manipulate a single image, and an image class that can be used to display an image. Apple also provides a special navigation controller for selecting images from the image repository.
The UIImage
To filter html tags in a string:
[Cpp]-(NSString *) filterHtmlTag :( NSString *) originHtmlStr {NSString * result = nil;Nsange arrowTagStartRange = [originHtmlStr rangeOfString: @ "If (arrowTagStartRange. location! = NSNotFound) {// If you
The CategoryCategory mode is used to add methods to existing classes to expand existing classes. In many cases, Category is a better choice than creating a subclass. The newly added method will also be automatically inherited by all subclasses of
[Html] I recently made a project with the need to zoom in the Click image. I learned how to add the click event Method to the subclass of UIView. I would like to share with you: first, set UIView (or its subclass) to interactive: [html] imageview.
UISearchBar for iPhone development is the content to be learned in this article. It mainly introduces the use of UISearchBar. Let's look at the details first. Questions about UISearchBar. 1. Modify the background color UISearchBar of UISearchBar.
ASIHTTPRequest enables resumable upload. There are some introductions on the Internet, such as: [request setAllowResumeForFileDownloads: YES]; method. However, it is not a resumable upload. It can only pause and continue the application during the
If we have many requests on the interface, but all the requests are invalid at this time, we may prompt the user "request failed", "request timeout", etc, it would be nice to prompt once, but every failed request triggers a prompt box to prompt the
-[UIDevice failed]: unrecognized selector sent to instance 0x6c29000 BaiduMapDemo [716: f803] *** Terminating app due to uncaught exception 'failed', reason: '-[UIDevice failed]: unrecognized selector sent to instance 0x6c29000 '*** First throw call
Connection: didReceiveData: the request is successful and starts to receive data. If the data volume is large, it will be called multiple times;
Connection: didFailWithError: An exception occurred when loading data;
ConnectionDidFinishLoading: The
Integrating Multiple images into continuous animation may be required by many apple developers. The following is the code for single playback and loop playback.
AnimationImageView. animationImages = imageFrames; // imageFrames is an image array.
It is easy to display the UIView rounded corner. Only three lines of code are required.CALayer * layer = [avatarImageView layer];[Layer setMasksToBounds: YES];[Layer setCornerRadius: 9.0]; However, if you add a shadow to a rounded view, the
1 PrefaceThe title of the navigation bar is not necessarily a text, it can be an image, or even any view control. Today we will discuss it separately and use UIImageView as the title of the navigation bar.
2. instance codeZYViewController. m code:
1 Preface
Use the NSObject instance method msmselectorinbackground: withObject: to create a thread without directly processing the thread.
2. code exampleZYAppDelegate. m
[Plain](Void) firstCounter {@ Autoreleasepool {NSUInteger counter = 0;For
Recently, I made a function for IOS program. If the image is displayed locally, I downloaded it online and stored it. After finding the information on the Internet, I realized the function based on my own understanding. The following describes the
THLabel
The extension of UILabel provides effects such as shadow, gradient, and Black edge. The title is good. PS is required, and now the Label is used directly. Project addressTMCache
One of Tumblr's open-source projects provides Cache services
JSONModel is a database that parses the Json data returned by the server.
Generally, the json data returned by the server is converted to the Model by writing a data conversion module, and the NSString data is converted to the Data Type of the
In IOS (object-c), it is quite easy to download and view PDF files. Before downloading, you must first pass the directory of the IOS file that can be saved again:
IOS file storage directory
IOS can customize the file directories to be written,
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