IOS app slide back to right, iOS app slide back
Prerequisites: There are two pages, A and B. A is the main interface and A is pushed to B.
Method 1: If the return button of page B needs a Custom button (in iOS7, if UINavigationController is used,
[Code Note] iOS-long label, ios-long label
I ,.
Ii. Code.
ViewController. m
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // prompt label UILabel * alertLabel = [[UILabel
IOS note, ios note
1. NSDateFormatter format:
Year
yDisplay the year (0-9) as a number without leading zero
yyDisplays the year in the format of two digits with leading zeros.
yyyDisplay the year in four-digit format
yyyyDisplay the
[IOS dry goods]☞Socket, socket for iosI. Concepts
Socket, also known as "Socket"
Two programs on the network (for example, the client and the server) exchange data through a two-way communication connection. one end of the connection is called a
[Code Note] iOS-generate random number, note ios-Random Number
I. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSLog (@ "-- generate a random number --- % @", [self
GCD for iOS multi-thread Development (Part II) and ios multi-thread gcd
This article explains what GCD is and how to use GCD. If you are interested, you can review "iOS multithreading development GCD (previous article)" and "iOS multithreading
Use iconfont in iOS and iconfont in iosHow to use custom FontsBefore talking about the icon font, Let's first look at how common custom fonts are used in ios. The two principles are the same. The following uses KaushanScript-Regular as an
IOS local video and network video stream playback, ios video network video stream
Requirement: Recently, the company needs to implement a building intercom function: The Door Machine (connected to WIFI) dialing calls the indoor device (corresponding
KVO and ioskvo1. KVO Concept
KVO is the key-value observation. It provides a mechanism for the observed object to receive notifications when its attributes change, so as to make corresponding changes.2. KVO implementation principle
Here is an isa
[Code Note] iOS-navigation bar title (label), ios-label
I ,.
Ii. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self. view addSubview: [self getTileLabel: @ "Hello! "];}
Scan function Summary (scan qr code, barcode), scan function summary Barcode
The scanning function is based on the native AVFoundation framework of iOS.
Let's just talk about the code.
#import @interface ScanViewController :
Time-consuming operations for creating a UI in iOS development and time-consuming ios development ui
When there are a series of time-consuming operations such as network requests and read/write operations in the project, in order to avoid blocking
[Code Note] iOS-archive saves the image to a local device,
1. Engineering Drawing:
Ii. Code:
RootViewController. h
#import @interface RootViewController : UIViewController{ UIImageView *imageView;}@end
RootViewController. m
# Import
Upgrade openssl and macopenssl for MAC
The openssl version of mac is as follows:
$ openssl versionOpenSSL 0.9.8zh 14 Jan 2016
Check the latest version on github.
Use homebrew to install openssl
brew install openssl
If the openssl version is
Basic syntax in Swift (II): basic syntax in swift
1. Functions in Swift
/// Function Definition //-Parameters: //-x: Shape Parameter //-y: Shape Parameter //-Returns: return Value func sum (x: Int, y: Int)-> Int {return x + y}
Print (sum (x: 10, y: 2
Learn iOS and ios
After doing this demo, I feel that OC and swift are quite different. I still want to read more about swift syntax, but I am not very skilled.
1. I used the original project for the resource files of this demo.
2. The "SnapKit"
IOS (linker command failed with exit code 1) Error summary, ioslinker
From: http://blog.csdn.NET/hengshujiyi/article/details/21182813
Note: This error occurs when two files with the same name exist in the project. You only need to delete one file.
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