IOS variable definition and usage
Let's take an example. Create a new ViewController class. Xcode automatically generates two files for us: ViewController. h and ViewController. m.
1. member variables
@ Interface ViewController: UIViewController {/
Obtain the first and last days of the current year, month, and week.
Let's talk about the code.
//// EBDate. h // ChargeMoney /// Created by eagle on 15-3-24. // Copyright (c) 2015 EagleB. all rights reserved. // # import @ interface EBDate:
Direction of the Controller in iOS
# Import "LKNavigationController. h"
@ Interface LKNavigationController ()
@ End
@ Implementation LKNavigationController
# Pragma mark-implement this method to control the screen direction
/**
*
IOS AV Foundation QR code scanning zoom camera
In the last section, we add the zoom control function for the camera through gestures for the program.
Add instance variables and initialize them at the end of the viewDidLoad method:
CGFloat
IOS Study Notes 2015-03-20 O nil, Nil, NULL, NSNull, 2015-03-20nsnull
1. It is best to use nil [nil arbitrary method] for oc without crashingNil is an object value.NULL is a generic pointer ).2. NSNULL, NULL and nil should be essentially the same.
IOS mode view, switching between views, and ios Mode
1. Simple switching between views.
Switching between views is actually switching between view controllers. Because the controllers attempt to have views on them, and the controllers attempt to
IOS UINavigationBar-navigation bar, UINavigationItem-Navigation item, iosuinavigationitem
1. What is the navigation bar (UINavigationBar ).
UINavigationBar is an attribute of UINavigationController. Is an integral part of the navigation bar
IOS Study Notes 2015-03-20 OC-array, 2015-03-20oc-
[NSArray] the element of an array in Definition 1 immutable array 2 oc can be an element of any object 3. The address of the element contained in the number 2. initialize NSArray * variable =
Regular Expression practices in iOS development (1)Requirement Abstraction:
Now there is a string
{"State": 200, "error": "Logon successful! "," Json ": {" auid ":" 402888f54c12441e014c1246bdf90003 "}} Now we need to extract the content string after
View iOS Crash logs and ioscrashlogs
When an application crashes on the device, iOS records these error logs and creates a Crash Report ). The crash report contains the iOS version, date, exception type, stack trace, and other information.① View
Use protobuf from scratch in iOS There is protobuf-objc on github, and readme can teach us to install proto into our computer. Then, the protoc, that is, the protobuf compiler can compile the. proto file to generate some. h and. m files. In mobile
XCode Compilation speed is slow
There are three ways to increase the speed of compiling links:
1. Increase the number of threads used for XCode Compilation
Defaults write com. apple. Xcode PBXNumberOfParallelBuildSubtasks 4
XCode uses the same
[0, 2I. Memory Management Overview
Garbage collection mechanism (GC): memory is managed by the system, which is not required by programmers.
Garbage collection in OC: add garbage collection in OC2.0.
OC and iOS: OC have a garbage collection
Remove blue circles (precision circles) after iOS Baidu map Positioning
When we call the Baidu map api for positioning, a circle in the blue area appears around the positioning dot, called a longitude circle.
If you do not understand the keywords,
Animation when loading iOS TableViewCell
// Set the cell display Animation
Func tableView (tableView: UITableView !, WillDisplayCell cell: UITableViewCell !, ForRowAtIndexPath indexPath: NSIndexPath !) {
// Set the display animation of the cell
Swift uses FMDB to operate SQLite and swiftfmdbsqlite
SQLite is widely understood. Local databases are widely used on mobile devices. It is also indispensable for IOS platforms. Recently, when I had a small App, I needed to use the sqlite local
Fade in and fade in
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // UIView * view = [[UIView alloc] initWithFrame: CGRectMake (10,100,100,200)]; view. backgroundColor = [UIColor
Returns the width and height of a string.
Code:
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // obtain the string width NSLog (@ "get string width: % f", [self widthForString: @
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.