Set view controller to iPhone or iPad mode,
When writing iOS programs, adjusting the display size and control size of the view controller is a laborious task. Especially for kids shoes with mac, it is more difficult to control, in this case, you
Custom NSLog for release and debugging, custom nslog debuggingProblem
A large numberNSLogBut you want to cancel theseNSLog
Is it often used during development?NSLog(@"%s", __FUNCTION__);
Solve the problem
NewExtendNSLogClass, inherited
[Code notes] the background color is displayed randomly, and the code notes are displayed randomly.
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. h
RootViewController. m
-(Void) viewDidLoad {[super viewDidLoad]; // Do any
IOS-sqlite3 & FMDB use code demonstration, iossqlite3 use
Database operations are a frequently used operation. We have to consider how to use the database and what database to use in iOS.
Small data can be stored in plist or NSUserDefaults. When the
Objective-C learning 04-polymorphism, objective-c04 Polymorphism
Polymorphism
Concept of Polymorphism
Here is an example. in the morning, I spoke to my colleagues about thirst. result: My colleague A took my cup and gave me A cup of water. colleague
Get the iPhone device + how to get the boot page image,
I. Preface
To create a function today, You need to dynamically obtain the boot page and then use the Unused boot page Image Based on different devices.
Ii. Text
In general, we can directly
Differences between nib, xib, and storyboard in iOS and the loading process of storyboard, nibxib
First, let's talk about nib. nib is a product earlier than version 3.0. On the terminal, we can see that NIB is actually a folder with executable
Detailed Exploration of Xcode menu options (dry goods), xcode menu exploration dry goods
In this article, the Xcode version is 7.1, basically exploring every button in the menu. Although xcode7 has been used since xcode4, it generally only uses some
IOS basic UI (10) UIPickerView and UIDatePicker
UIPickerView and UIDatePicker are relatively simple to use. The following is a simple example to learn more about them.
UIPickerView1.UIPickerView attributes
// Data source (used to tell
Protocol for Ios development: protocol for ios development
Protocol is a difficult and important point in ios development. To use it well or understand it well, it may take time to accumulate. Today, let's take a simple look at how to use protocol
Xcode updates, various plug-in adaptation issues, and xcode update plug-in adaptation
Every time you update Xcode, you need to add UUID to each plug-in. This is too troublesome. You just need to run a small program.This programRestart Xcode, and the
IOS UILabel text is automatically aligned in the upper left corner
In iOS, the default UILabel is vertically centered and aligned. If the height set by UILabel is large, the UILabel is automatically centered vertically when the content is
IOS basic UI (8) UIScrollViewWhat is UIScrollView?
The screen size of a mobile device is extremely limited. When the displayed content is too large, it cannot be displayed when the screen is exceeded. Therefore, with UIScrollView, you can use the
UITableView for iOS
UITableViewDelegate protocol Method
Returns the height of each row of cells.
-(CGFloat) tableView :( UITableView *) tableView heightForRowAtIndexPath :( NSIndexPath *) indexPath
Returns the height of the partition
IOS development diary 22-CocoaPods, ios22-cocoapods
Today, the blogger has a CocoaPods demand and encountered some difficulties. I would like to share with you the hope that we can make common progress.
CocoaPods is a management tool for a
Five minutes, I used the cocoaui library to build my interface in mainstream iOS apps, cocoauiios
This project is based on the daily group purchase project, which was mentioned in the previous article!
First, we will introduce some cocoaui, which is
[Reading Notes] iOS-category, Reading Notes ios-
1. Category is a way to add new methods to existing classes.
Ii. Category limitations.
1. You cannot add new instance variables to the class. The category does not have a location to accommodate
IOS UI advanced 06, iosui advanced 06
CALayer
In iOS, what you can see is basically a UIView, such as a button, a text tag, a text input box, and an icon. These are all uiviews, in fact, the reason why UIView can be displayed on the screen
[Reading Notes] iOS-Xcode knowledge-multithreading, Reading Notes ios-xcode
1. the debugger used by Xcode is GDB. GDB is part of the GNU project and can be used on many different platforms. If you want to, you can run it through the command line.
[Learning notes] [OC language] self keyword, learning notes ocself
1. member variables and local variables have the same nameWhen the member variables and local variables have the same name, the proximity principle is adopted to access local
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