Tool resources used during developmentImage Processing
Compressed image
ImageOptim (Mac client, free of charge), supports PNG, JPEG, and GIF animations. After compression, the image quality remains unchanged, and the size is smaller and loaded
Objective-C instancetype keyword, instancetype keyword
InstancetypeStarting from clang 3.5, clang provides a keyword
Indicates the Objective-C object of the unknown type returned by a method.
Instancetype will tell the compiler the current type,
IOS long-press control and iOS long control
Preface
On the Internet, we can see that the effect of a button's long-pressed control is good. A diamond increases from the center to the two sides.
Principle
In red, the view is placed on the control.
[Code Note] GTMBase64 and gtmbase64
1. engineering documents.
Ii. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. self. title = @ "GTMBase64"; [self initBase64];}-(void) initBase64 {NSData *
Network encapsulation Based on AFNetworking3.0, afnetworking3.0
1. Create a header file named HTTPMethod.
2. Import the AFNetworking header file (download the latest version on github ):
# Import "AFNetworking. h"
3. Declare the class method in the.
Start to sort out iOS job interview questions and answers, and start to sort out ios job interviews
Can Object-c classes be inherited in multiple ways? Can multiple interfaces be implemented? What is Category? Is the method of rewriting a class well
IOS development Demo similar to upload AvatarCode:
Items in tablvew in front of the image Selector
-(Void) tableView :( UITableView *) tableView didSelectRowAtIndexPath :( NSIndexPath *) indexPath {// image selector UIImagePickerController * imgPC =
IOS_swift _ FUNCTION usage1. Multiple return values
func x(x:Int, y:Int)->(Int, Int){ let a = x+y let b = x-y return (a, b) } let (a, b) = x(10, y: 3) print(a = (a)) let val = x(10, y: 3) print(val =
IOS checks whether the array is empty, and iOS checks the Array
Some people say that it is possible to use ([array count] = 0) to determine whether it is null. It is a pitfall. If array is empty, an error will be reported directly when count is
1202.2 -- Xcode and 1202.2xcode
Ctrl + N (Next) move cursor to Next lineCtrl + P (Previous) move cursor to the Previous line Ctrl + B (Back) Move a character to the leftCtrl + F (Forward) Move a character to the right Ctrl + H delete a character on
IOS and ios1. The network interface does not support https protocol.
In iOS9, the system intercepts access to the http interface by default, so the data of the http interface cannot be obtained.
Solution (select 2 from 1 in the following method ):(1)
Code note: the button is underlined and the button is underlined.
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. h
RootViewController. m
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. //
In iOS, when QLPreviewController is used to open a file and process txt files with garbled characters, qlpreviewcontrollerIn iOS, QLPreviewController is used to open a file and process Garbled text files.
Main Code:
-(Id ) previewController :(
Han junqiang's blog on iOSFramework needs to be introduced:
MessageUI. framework
The layout is as follows:
SMS and email:
# Import ViewController. h # import
@ Interface ViewController ()
// Follow the protocol @ end @
About the rejected appeal, review the rejected appeal
The application download function is rejected for the second time. This time, the download is prohibited and the user is prompted to refuse to download the application due to copyright issues!
I
We recommend an iOS color library-Wonderful, ios library-wonderful
The Wonderful library is mainly connected to the UIColor information, which contains four sub-Files: UIColor + Wonderful, UIColor + Separate, SXColorGradientView, and SXMarquee.
Ios7 -- the system's built-in sliding to the right gesture returns the previous interface, ios7 -- gesture
When pushing from Controller A to Controller B, we return Controller A, in addition to using the button to return
[self.navigationController
About installing black apple and installing black apple
This article provides the Installation Tools and tutorials for Apple.
Purpose:
The purpose of this article is to say to those who have no time to worry about it, and to those who are unwilling
When you request an http address in IOS9, an error is returned. AVAudioPlayer: Why is the code correct but cannot be played? ios9.avaudioplayer
In the new version of Xcode7.1, errors are always reported during HTTP requests. As long as there are
[Code Note] three sections, each with header., sectionheader
I ,:
2. project directory.
Iii. Code
RootViewController. h
#import @interface RootViewController : UIViewController{ UITableView *MyTableView;}@end
RootViewController. m
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