Gesture Operation---Recognition click or double-clickThe problem with recognizing both the click Gesture and the double-click gesture on the view is that when a click is detected, it is not certain that it is indeed a click or just the first click
Introduction of Nsoperation
1. Simple description
Nsoperation for ⽤: Multithreading can also be achieved with nsoperation and Nsoperationqueue
Nsoperation and Nsoperationqueue to implement multithreading specific steps:
(1) Encapsulate the
If you want to count the iOS development code, including the header file, CD to the project directory, the commands are as follows
① list the number of rows per file
Copy Code code as follows:
Find. -name "*.M"-or-name "*.h"-or-name
OBJC inside a few empty value symbols will almost kill me, these basic things should be clear to the line, in order to improve the basic quality of agricultural code.
Nil
A nil is a literal null value for a OBJC object, an object that corresponds
Copy Code code as follows:
Txtlbl.font = [Uifont boldsystemfontofsize:14.0f];
Txtlbl.numberoflines = 0;
NSString *str = @ "Albania decided to set up a network of science and technology to leave the TV show cent W amount of two mainland
To do a two-dimensional code scan of iOS, there are two third-party libraries to choose from, Zbar and zxing. Today we are going to introduce the native two-dimensional code scan provided by the iOS7.0 avfoundation framework.
First you need to add
In the use of UIButton, you need to implement UIButton to the left of the picture, the picture immediately following the text effect is more trouble, the simple implementation of the specific code is as follows:
(void) Viewdidload {[Super
Here's how it works. Drawing of circular heads
Let's take a look at the effect chart
Analyze:
1, first is the need to draw a round head with background color
2, then the need to draw text
3, text is a part of the intercepted string
4,
As usual, the text gradient effect chart
Realize the following ideas
Create a color gradient layer that is as large as a text control.
Second, the use of text layers to crop the gradient layer, only retain the text part, will let the gradient
Generally there are two ways, are the third party frame, the wheel, you can use the first, the back to optimize.
One: reachability
1. First add the header file "Reachability.h" to the AppDelegate.h, and import the frame systemconfiguration.frame.
Picture cutOne, use quartz2d to finish the picture cut1. Display the picture in a custom viewFirst draw the picture to the view. Draw the picture to a point according to the original size.Code:
Copy Code code as follows:
-(void)
In the project function has a positioning cllocation needs, encountered some knowledge and difficulties, after the help of the heroes, problem solving, hereby share for everyone to learn, I hope we learn and progress together.
One, simple
The Uipickerview control is often used when selecting certain data for the user, which shows a simple selection of data, displayed in the Uitextfield input box, uipickerview as Input view, and toolbar as the selected Data button. Similar to other
As a new handwritten note, it is convenient for you to remember:
From Android to the iOS, for the page jump, looking for a lot of information, now record the page jump method.
1. With Navigationcontroller
2. Jump directly (just found on the
Description
1. Placeholderimageview based on Sdwebimage
2. Given a picture of the urlstring, and a placeholderimage can be elegant display picture loading effect
Effect
Source
Placeholderimageview.h/.m
Library named Psrefresh, support Uiscrollview and all Uiscrollview subclass controls,UITableView(horizontal TableView) and Uicollectionview , etc. are available.
Supports custom text, supports custom GIF, and can be set to the last page.
This
The effect is shown below.
Animation to achieve the core:
The core of the animation is the use of the properties in iOS UIView transform , and then based on the size of the coordinates of the four pictures to pan and zoom.The specific layer
First, the system with the regular expression of the use of
In addition to being able to use, and nsscanner this class can achieve some of the same effect
1. Creating Regular Expression objects
2, the method that the regular
It's written in front.
In iOS development, whether in UITableView or Uicollectionview, it is a more common requirement to get pictures from the network and set them to the cell. Although there are a lot of existing third-party libraries can be
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