First of all, Uialertview and Uiactionsheet in iOS9 after the official Apple is not recommended, but use Uialertcontroller to replace.There are pictures to testify
So it is necessary to learn how to use Uialertcontroller.
1. Get the
Touch events are the most commonly used events in iOS, and here we introduce the next touch event.
Define Uiimageview in the following example. First we add touch events to the Toucheventviewcontroller and move the image using the touch move event,
Fmdb is a lightweight database in a Xcode that is used to store network resources locally. Therefore, Fmdb is a very practical, very important point of knowledge. Here is a simple example, based on the fmdb of the TIM-censored operations, the code
Converts the current date to the day of the week
- (void) Getweek { nscalendar *calendar = [[nscalendar alloc]
initWithCalendarIdentifier:NSGregorianCalendar];
NSDate *now;
NSDateComponents *comps = [[NSDateComponents alloc] init];
Design idea: Add a category to the UIView all views can be displayed as needed for red dots
#import @interface UIView (Chrreddot) @property (readonly, nonatomic) Calayer * chr_reddotlayer; /** the position of the center of the red Dot, and
Objective
This article is mainly to introduce the use of iOS to achieve Taobao pull into the details page interaction effect, the following words do not say more, to see the detailed implementation process.
Implementation analysis
As you can see,
When developing an iOS program, sometimes you need to adjust the time format to the format that you want, and we can use the NSDateFormatter class to handle it.For example:
Instantiate a NSDateFormatter objectNSDateFormatter *dateformatter =
To create a category file:Here, you must choose the class of base, as follows:No matter how perfect a class design is, it inevitably encounters an unpredictable demand, so how do you extend existing classes? Of course, inheritance is a good choice.
iOS sandbox mechanismiOS applications can only read files in the file system created for the change, not anywhere else, this area is sandboxed, so all of the non code files are saved here, such as images, icons, sounds, images, attribute lists, text
Now Taobao, Jingdong application is very wide, and today imitate to do a similar electric business app home example.
One, GIF effect chart:
Second, the UI layout:look at the hierarchy of the diagram below, remove the bottom of the Tabbar, the rest
Two-time encapsulation of fastcoding to enable more convenient storage and reading of data, to share
Zxeasycoding
Description
Encapsulates the fastcording and makes it easier to store and read object data
Installation:
Add Zxeasycoder entire
Summary and difference of KVC, KVO, Nsnotification, delegate in IOS
1, KVC, refers to the nskeyvaluecoding, an informal protocol, provides a mechanism to indirectly access the object's properties. Rather than by invoking the setter, getter method
First, a brief introductionwhat you can see in iOS is basically uiview, such as a button, a text label, a text entry box, an icon, and so on, all of which are uiview.
In fact, UIView can be displayed on the screen, because it is a layer inside,
Let's start with some basic knowledge of arm assembly. (We take ARMV7 as an example, the latest iphone5s on the 64-bit is not discussed)
Basic Knowledge Section:
First you introduce registers:
R0-R3: For the transfer of function parameters and
This article examples of iOS unlimited scrolling effect, share for everyone to refer to, the specific contents are as follows
Slide to the current position to request, local content is directly displayed (since Sdwebimage,uiview+ext)HZScrollView.h
IOS shares to the micro-mail after the return application to turn off send a successful prompt, and customize the prompts, specific content as follows
1. Close the prompt to send success
Just call the code when you share it:
Copy Code code
Through corelocation positioning, get to the user's current position, with the map of different positioning.
First, import Corelocation.framework
Second, #import
Third, the declaration agent
Four, code implementation
1. Statement
At present in the project needs to achieve the function of red envelopes, they wrote a password input box control, mainly used to the Uikeyinput protocol and Coregraphics framework, the effect of similar micro-letter payment, feeling still line on
Introduction: Uiscrollview A control that displays a large content in a small area. View different content in this small area with user smoothing and hand gestures. is the parent class of UITableView and Uitextview. It's a view, but it's special,
The example of this article distinguishes NSBundle and Nsurl, and realizes the following contents
In the project to add a file, this routine is added to the Aa.txt, the contents of the file for Baidu: Www.baidu.com, now to use NSBundle and Nsurl
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