Jump between IOS apps and between apps and Safari
Recently, the project encountered such a requirement: jump from the APP to Safari and then jump back to the APP. Previously, it was easy to jump from an APP to Safari. It focuses on redirecting from
IOS development-multi-thread programming
1. "power saving, smoothness, high-quality applications, fast response, good user experience ......" It may be the Apple system in the eyes of many users.
2. In the age when mobile phone manufacturers
IOS: learning notes, Swift operator Definition
You can customize the Swift operator by adding a simple identifier.
@ Infix: center operation. For example, +,-, *,/operation.
@ Prefix: prefix. Example-
@ Postfix post operation. a ++, --
@ Assignment
IOS _ hide the top Status Bar
Comparison between iOS6 and iOS7 in hiding Status Bar:
Storyboard
Select UIViewController on the page, and the Simulated Metrics on the rightmost shows that the Status Bar is set to None.
ViewController
IOS 6Use
IOS gets two milliseconds of time differenceIOS gets two milliseconds of time difference by Wu xueying
NSString * savedTime = [[NSUserDefaults standardUserDefaults] stringForKey: @ "time"]; NSString * time = [NSString stringWithFormat: @ "% f",
IOS _ dynamically determines the Label width and height based on the word countThe following method is used in iOS7:
-(CGSize) sizeWithAttributes :( NSDictionary *) attrs;
Replace-(CGSize) sizeWithFont :( UIFont *) font method in outdated iOS6
//
UILabel for iOS development
UILabel is a commonly used component in iOS development and is mainly used to display content.
UILabel is mainly used as follows:
/* Size */
CGRect labelRect = CGRectMake (100,100, 80, 40 );
/* Initialize */
FMDB for iOS third parties
FMDB has three main classes
1. FMDatabase-indicates a separate SQLite database. The command used to execute SQLite.
2. FMResultSet-indicates the result set after the FMDatabase executes the query.
3. FMDatabaseQueue-if you
Ios file upload and post dataI. File Download
There are two methods to obtain the resource file size:
1,
Http head method NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL: url cachePolicy: 0 timeoutInterval: kTimeout]; request.
IOS_3 _ Image Browsing
BeyondViewController. h
//// BeyondViewController. h // 03 _ Image Browsing /// Created by beyond on 14-7-22. // Copyright (c) 2014 com. beyond. all rights reserved. // # import
@ Interface BeyondViewController:
In ios, the text of the button on the UIImagePickerController page is changed to Chinese.
Today, we call the system's photo taking and local album editing functions, but the buttons are all in English. I want to change them to Chinese to cancel,
IOS learning notes-simple use of UIPickerView Control
UIPickerView is one of the commonly used controls in iOS. It provides a series of multi-value options through the rotation interface. It displays information to users and collects user input. The
IOS_1 _ Divider
BeyondViewController. h
//// BeyondViewController. h // 01_calc /// Created by beyond on 14-7-20. // Copyright (c) 2014 com. beyond. all rights reserved. // # import
@ Interface BeyondViewController: UIViewController // the
Rotation animation of buttons for iOS-specific images
To add a rotation animation for a button with a specific image, the Demo code is as follows:
# Import "ViewController. h "@ interface ViewController () {BOOL flag;} @ property (strong, nonatomic)
Status and notification of multithreading 3-NSThread in iOSIn OC, although there are not many actual scenarios for NSThread, if you can carefully understand the NSThread method when learning multithreading, it will be helpful to further study GCD
IOS_6_ToolBar + xib + Dream of Red Mansions
Final
VcD4KPHAgY2xhc3M9 "p1">
BeyondViewController. h
//// BeyondViewController. h // 6_ToolBar /// Created by beyond on 14-7-24. // Copyright (c) 2014 com. beyond. all rights reserved. // #
Test and package ios programs
Ios program release test package memo1. Obtain the test machine UDIDConnect your mobile phone to your computer, open iTunes-Summary-click the serial number, and the device overview page displays the device udid-anti-key-
Use and configuration of common third-party libraries in iOS development-GDataXML and ios-gdataxml
This article aims to promptly check your future needs, saving you the need to go to baidu every time.1. xml Parser library-GDataXMLReference:
Plist basic operations, plist
Important Concept: the reason why "can only be read but cannot be written" in some paths
IPhone and ipad
Resouces Folder: it is read-only and cannot be written.
Document and temp folders: readable and writable.
I.
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