Ios gets the properties and width of the screen.
1. app size, remove the status bar
CGRect r = [UIScreen mainScreen]. applicationFrame;
R = 320,460
In addition: self. view. bounds. size
2. Screen Size
CGRect rx = [UIScreen mainScreen].
QQ interface for iOS
Compile a QQ interface as requested by the master to help me solve the code problem.
Compile a QQ interface with three groups, each of which is attended and shows that the group is online or offline;
Let's take a look.
This
IOS-NSThread/NSOperation/GCD for thread operations
1NSThread. Declare the thread and start the thread: (the first parameter declares the target class, 2nd parameters declare the target method, and 3rd parameters are parameters of the
IOS _ 3rd library SDWebImage
1. Add the downloaded source code package of the 3rd-party class library SDWebImage to the project.
2. Go to Build Phases of the project and add all. m files in the source code package to the project.
3. Import the built-
My ios-App and ios-App
1. PocketConfidential (password protection box)
Introduction
Save sensitive information such as account and password.
Application Technology:
Sqlite, sqlcipher encryption, AES data encryption, GCD
[IOS] Swift SVGKit record, iossvgkit
Recently, I plan to use swift and SVGkit as an app. I have encountered many situations. For Beginners, one is a static library, and the other is a mix of oc and swift, the third is the incomplete library of xcode6
Jump between IOS pages and between ios pages
There are two commonly used methods: navigation and direct jump.
The first method of direct jump is to create a new target page, and then set the page Jump animation to initialize the data on the target
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 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.
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_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
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.
Ios7 set the title attribute of cancelButton on searchbar
[SearchBarsetShowsCancelButton: YES]; after setting, the default value is "cancel ".
Many methods are useless in stackoverflow.
The key here is to get the cancelButton in the
Usage of nsuserults ults in ios
Usage of nsuserults ults in ios
The NSUserDefaults class provides a programming interface for interacting with the default system. The NSUserDefaults object is used to save and restore preference settings and
IOS-network requests
Network requests include GET. POST. The steps are as follows: 1> get url. 2> GET request. 3> create a link. 4> return data (proxy ).
1> get the URL.
NSString * urlStr = @ "http://api.zbw.vc/api/vip/GetPhonePadTagMsg"; // when
[Ios] ios delayed execution method and ios delayed execution Method1. the most direct method is javasmselector: withObject: afterDelay: the disadvantage of this method: Write a method for the delay each time. use class and use BOLCK to execute [Code]
How to ensure that the input box is not overwritten when the keyboard appears on iOS?
When you request to display the keyboard on iOS5, the system slides the keyboard from the bottom of the screen, located above the content of the application.
(Wall:
Li dongqiang-write view with code and view with Li dongqiang code
Main Code
//
// ViewController. m
// Create view-709
//
// Created by apple on 14-7-9.
// Copyright (c) 2014 Camp David education. All rights reserved.
//
# Import "ViewController.
@ Property defines attributes and declares the getter and setter methods. (Note: The property is not a variable)
@ Synthesize is used to implement attributes, such as the getter and setter methods.
If you override setter, getter, and method when
1. Preface Swift will not be introduced much here, so it should be well known to everyone. It took more than a month before Swift was available. In my spare time, I used Swift to implement some common UITableView operations. It is basically usable.
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