The Core animation is directly acting on the Calayer (not UIView) very powerful animations across Mac OS X and iOS platforms Api,core Animation animation execution is done in the background and does not block the main thread. Core animation
Forget about the iphone or the ipad access restrictions password, it does not matter, a minute to quickly resolve.
This method is applicable to the 7.0.4 system, has been tested, other versions please self-test
The total method is divided into two
iOS-side apps are added to the App store by adding a binary file, similar to the Android obfuscation, to prevent decompile, but sometimes for reasons that are not descriptive, we imagine some Daniel learning some experience and saying, "Reading
In the Uicontrol control event, briefly explain the following several events.
Description: Because it was tested in the IOS simulator, you can't use your finger, you can only use the mouse.
1) Uicontroleventtouchdown
Refers to the left mouse button
Models
Size
Resolution
Logical resolution
Ppi
Status bar Height
Navigation Bar Height
Label Bar Height
App Store icon
Icon of the main screen
Set icon
Spotligh
Notice icon
Toolbars and navigation
This article directory one, add a simple layer two, add a layer to display the picture three, why Calayer use Cgcolorref and cgimageref these 2 types of data, without Uicolor and uiimage. Iv. UIView and Calayer's Options v. Other relations between
I. Nsrunloop
In cocoa, a run loop (Nsrunloop) object within each thread (Nsthread) object is used to loop through the input events, including two classes, one from the input sources asynchronous event, and one from the timer Sources synchronization
Recently developed new features, which have the need to load Web pages, and recently learned that the Wkwebview, said that the memory consumption is small, fast loading, and JS interactive good. Because the need to interact with the Web page, and
1. Get Current time
+ (NSString *) getcurrentdate
{
Get current time
NSDate *now = [NSDate Date];
Kelog (@ "Now date are:%@", now);
Nscalendar *calendar = [Nscalendar Currentcalendar];
Nsuinteger unitflags = Nsyearcalendarunit | Nsmonthcalendarunit
In many cases, we need to know the width and height of a piece of text to better write the interface. The method in iOS is actually very simple, write a simple method as follows:
cgsize calculatetextsize (uifont font, nsstring text)
{
cgsize
The common encryption method is to encrypt the password and save it to the user preferences.
The keychain is kept in clear text, but it is not known where it is stored.
1base64 encryption
Base64 coding is the foundation of modern
If it is the contents of the page alert, we can wait for the page loaded, that is, in the Webviewdidfinishload to execute the following JS code, you can screen alert
[Mywebview stringbyevaluatingjavascriptfromstring:@ "window.alert=null;"];
But the
Reprint from: Click to open the link
Summary of knowledge points often used or infrequently used in iOS development, collection and accumulation of several years (trampled pits). i. IPhone Size
Mobile phone Model
Screen Size
function RealizationEnter the registration interface from the login interface to return to the login interface from the registration interface
function Realization Idea
Search on the internet found that you are using navigation, but the individual
Reprint Address: http://blog.csdn.net/kmyhy/article/details/7940704
Today, multitasking is an interesting feature that has been successfully integrated into the device, and one of the things that we use today to fully support multitasking is
to save a picture for example:
1. Save
/**
* Save user Avatar * *
+ (NSString *) Saveuserimage: (UIImage *)
image{nsstring; Gets the document path
Nsarray *document = Nssearchpathfordirectoriesindomains (NSDocumentDirectory,
several ways to use global variables in the iphone development(
Method 1: Use static variables (not recommended)
Method 2: Use singleton pattern (ref link:http://nice.iteye.com/blog/855839)
Method 3: Set the global variable to Appdelegate
In the
Yesterday received several new tasks, the first one is to implement the text translation function. Search data from the Internet to find commonly used there are Baidu translation, Youdao translation, Google translation.
All three are in contrast: 1.
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.