, pan, and other properties) A -+@property (nonatomic) cgrect frame; - //The position and dimensions of the control rectangle in the parent control (the origin of the coordinates in the upper-left corner of the parent control) the -+@property (nonatomic) cgrect bounds; - //the position and dimensions of the control rectangle (the origin of the coordinates in its upper-left corner, so bounds X, Y is generally 0) - ++@property (nonatomic) cgpoint Center; - //The position of the midpoint of the
IOS UI basics 01 and iosui01
Controller
1. What is a controller? Any class inherited from UIViewController is called a controller.
2. Role of the Controller: Manage the UI interface (responsible for managing the creation of the UI interface and handling of some events)
IBAction
Connection Mode
input box to modify the value of the input box, also support the keyboard up and DOWN ARROW keys to change the input value, the call format is as follows:$ (selector). Spinner ({options});The selector parameter is a text input box element, optionally the options parameter is a configuration object for the spinner () method, where you can set the maximum and minimum values for the input, get the change values, and set the corresponding events.9.9. tooltip plugin--tooltip tooltip plug-in can cust
"Related Concepts"View viewsViewGroup View ContainerLayout layoutsActivity activitiesFragment FragmentWidget widgetsDialog dialog boxMaterial Design Materials/Material Design (Chinese version)
Reference: http://hukai.me/android-training-course-in-chinese/basics/firstapp/building-ui.htmlAndroid's graphical user interface is built from multiple views (view) and view groups (ViewGroup).View is a common UI
1 Introduction to mobile Application interface design
Explain current pop knowledge, including what elements, software used, what the future trends need to have the quality
3 Design Tools
3.1 Photoshop Setup Details
How 3.2 Photoshop work with illustrator
3.3 Other design tools
4 preparatory work before the design
4.1 Understanding requirements and users
4.2 Design Sketches
The role of 4.2.1 sketch
4.2.2 How to sketch is efficient and reasonable
4.3 Prototype design
4.3.1 Product pro
1. Terminology and concepts
Android Phone UI Design resolution Basics
Screen size (on-screen dimensions)
Refers to the actual physical size of the phone, such as 2.8-inch, 3.2-inch, 3.5-inch, 3.7-inch
Motorola Milestone mobile phone is 3.7 inches
Aspect Ratio (Wide-high ratio)
Refers to the actual physical dimensions of the wide-high ratio, divided into long and nolong
Milestone is 16:9 a
, use UIButton--Review the use of arrays, indexes, dictionariesNSBundle used to get the full path of the fileWhen you get an array, you can use the full path of file7, UiiamgeviewI've already mentioned an animationUIView beginanimations。。。。UIView commitanimatiuonsSequence Frame Animations8. Animation memoryUIImage imagenamed:@ ""Generally loading small images or system images using9. Complementary Knowledge points1) UIView is a container in which you can place other UIView2) When positioning the
iOS Development UI Basics-Data RefreshThe data refresh of the cell contains the following aspects
Add data
Delete data
Change data
Global Refresh method (most commonly used)[self.tableView reloadData];// 屏幕上的所有可视的cell都会刷新一遍Local Refresh Method
Add data
NSArray *indexPaths = @[ [NSIndexPath indexPathForRow:0 inSection:0], [NSIn
efficiency2. Frame Address:Https://github.com/SnapKit/Masonry3.mas_equalto and EqualtoBy defaultMas_equalto has automatic packaging function, such as automatic packaging of 20 for the @20Equalto No automatic packaging functionIf you add the following macro, then Mas_equalto and Equalto are no different#define Mas_shorthand_globalsNote: This macro must be added to the front of #import "Masonry.h"4.mas_width and WidthBy defaultWidth is a property of the Make object that is used to add a width con
iOS Development UI Basics-Adding buttons to ImageView and parameter descriptions for tagsFirst, the tag parameterA view typically has only one parent view and multiple child views, which can be removed by using the child view's tag in development. The method is Viewwithtag:Cue point : In Xib, if you want to get the corresponding control (property) through the tag parameter, do not set the tag parameter to 0
properties of the objectThe member methods for modifying struct properties are as follows:(1) Using temporary variables to record the structure properties of an object(2) Modifying the properties of temporary variables(3) To reset temporary variables to the structure properties of an object3. Need to avoid magic numbers in program development (magic number)Use enum types to avoid magic numbers in your program(1) An enumeration type is essentially an integer that is used to replace the magic num
way, may be related to Chinese)
"$ (srcroot)/corresponding folder name/ Prefixheader.pch "
A lot of log information is required when testing the application, but it is forbidden to print the information if we publish the program.
Customize your own log mode.
Custom log complete form
#ifdef debug #define HQLOG (...) NSLog (__va_args__) #else #define HQLOG (...)
#endif
Points to note when using PCH files:
Towering high-rise, the most intuitive person in the development of Android also believes that the most task is the development of the UI.So what do users see at the front desk?Yes, it's activity!.Activity is just a form, and what is actually shown to the user is view.If a person familiar with web development understands the concept of MVC. This view is the V-level, which shows the user what to see.Also used to interactively produce model data for the controller to handle.View in Android is the
Android UI development Topic (ii) Basics of plotting
In the interface design of the Android UI development topic (I), we introduced operations related to resource usage and Bitmap on the Android platform, in the following example, we will show you the usage and attention of each type. Today, we continue to learn about the most important plotting classes in the an
properties of the objectThe member methods for modifying struct properties are as follows:(1) Using temporary variables to record the structure properties of an object(2) Modifying the properties of temporary variables(3) To reset temporary variables to the structure properties of an object3. Need to avoid magic numbers in program development (magic number)Use enum types to avoid magic numbers in your program(1) An enumeration type is essentially an integer that is used to replace the magic num
iOS Development UI Basics-Install official Apple docs and Xcode simulatorTip: Prepare your data(1) Com.apple.adc.documentation.appleios7.1.ioslibrary.docset.zip(2) Iphonesimulator6.1.sdk.zipFirst, install Apple official documents1. Installation pathThe document has two installation paths:(1) ~/Resource Library/developer/xcode/userdata/(2)/applications/xcode.app/contents/developer/documentation/docsetstip: B
variable can be guaranteed to allocate only one storage space once (initialize only once) StaticNSString *id =@"Mjcell"; //2. Remove the cell from the cache poolUITableViewCell *cell =[TableView Dequeuereusablecellwithidentifier:id]; //3. If there is no cell in the cache pool if(Cell = =Nil) {Cell=[[UITableViewCell alloc] Initwithstyle:uitableviewcellstylesubtitle Reuseidentifier:id]; } //4. Set the properties of the cell ... returncell;}Right Index barAlready have the cor
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.