Interesting UI of iOS development-UIScrollerView controls and cases, iosuiscrollerview
This is a technical point for interesting UI modules in iOS development. If you are an iOS enthusiast who already has C basics, but you are not familiar with Objectiov C, you need to learn the Objective C series of the core iOS development language I shared earlier.If you have
upper-left corner, so bounds X, Y is typically 0)@property (nonatomic) Cgpoint Center;The position of the midpoint of the control, in the upper-left corner of the parent control, as the coordinate origin.Common methods of TransformCalling the control's Transform propertySelf. The name of the control. TransformSet the position of the control to panCgaffinetransformtranslate (controls that need to be moved, x-axis, y-axis);Set the position angle of the
iOS Development UI Chapter-datepicker and Uitoolbar controls Brief introductionA. Date Picker control1. Brief Introduction: Date picker display time of the control has the default width high, do not set the data source and agent how to change to Chinese? (1) Check whether the current system is in Chinese, change the simulator to be Chinese (2) attribute, locale Select Region if the default display does not
Basic ios ui controlsBasic ios ui controls
Directory (?) [+]
31 Button control 32 switch control 33 slider control 34 segment control 34 toolbar 35 WebView
3.1 Button control
3.2 Switch Control
3.3 slider Control
3.4 Toolbar
3.5 WebView
3.1 Button control
The Button control of the iPhone can be very beautiful, and the Button can be in multiple
For the completion of the boss gave me the integration of the OSG development environment in QT, to make the QT interface, has been done with the UI interface files. As shown in the following figure. On the left is the widget box, the right is 2 Scrollarea, before the interface default size is small, after running click to zoom in or zoom out, these controls can not adapt to the size of the window, cannot c
State (default 6DP)
App:pressedtranslationz Setting the shadow depth of the click State (Default 12DP)
Usage:The implementation results are as follows:4 Bottom SnackbarSnackbar provides a friendly feedback to the user by presenting a concise message at the bottom of the screen, using a toast, except that the first parameter does not require a context but is attached to the parent view, and only one snackbar can be displayed at the same time. At the same time can provide the user with a
controls, like views, interact with the user and what is a control? The sliders, switches, and so on that we use are all controls. The base class for the control is Uicontrol. The contents of the control are as follows:It is mainly selected, can be used and highlighted. We use a button to show:Unchecked state:Blue Word on the white background, now we tick selected:When selected, it turns into a blue-bottome
iOS Development UI Chapter-uiscrollview Controls IntroductionFirst, the knowledge point simple introductionWhat is a 1.UIScrollView control?(1) The screen of the mobile device? Small is extremely limited, so direct exhibition, the content of the user's eyes is also very limited(2) When the exhibition shows more content than a screen, the user can scroll through gestures to see what's outside of the screen(3
For programmers accustomed to OC code, Swift's syntax is simply unbearable, and today some of the most common UI controls are simply collated.Import Uikitclass Viewcontroller:uiviewcontroller, Uipickerviewdatasource, uipickerviewdelegate {override Func ViewD Idload () {super.viewdidload () Self.view.backgroundColor = Uicolor.whitecolor () if Self.title = = "UILabel" {//Label let label = UILabel (frame:self
The cocos2d-x-2.0 has added several new UI controls. Here I will introduce how to use these commonly used UI controls (CCControlSlider, CCControlSwitch, CCControlColourPicker, ListView.
1. CCControlSlider[Cpp]// SliderCCControlSlider * slider = CCControlSlider: sliderWithFiles ("sliderTrack2.png", "sliderProgress2.png"
(context). Inflate (R.layout.title, this); Back_button = (Button) Findviewbyid (R.id.title_back); Edit_button = (Button) Findviewbyid (R.id.title_edit); Title_text = (TextView) Findviewbyid (R.id.title_text); Back_button.setonclicklistener (New Myonclicklistener ()); Edit_button.setonclicklistener (New Myonclicklistener ()); }}Titlelayout Implementation constructs the inheritance LinearLayout, and implements the function of Back,edit and so on in the constructor f
)); } Else { } } Public voiddosome ()//the method that actually operates the UI, executed by the delegate {button1. Text="Hellow C #"; }3, consider the method with the parameter conditionPrivate voidButton1_Click (Objectsender, EventArgs e) {Thread Mythread=NewThread (NewParameterizedthreadstart (dosomething));//creates a new thread that associates the method that the thread will e
, return the desired result (the operation is completed on another thread)}
Void bw_runworkercompleted (Object sender, runworkercompletedeventargs E){// The background thread is completed and the main thread is returned, so you can directly use the UI control.This. textbox1.text = E. Result. tostring ();// MessageBox. Show (thread. currentthread. managedthreadid. tostring ());}}}5. Dispatcher. begininvoke -- the exclusive secret of Silverlight
CodeUsi
first call to the Setframe method passed to left, top, right, bottom these values will be in the future layout analysis is explained in detail,These values are the display position and size (obtained by right-left and Top-bottom) that the parent view sets for his current view. The width of the GetWidth method gets the size that the current view can actually occupy on the screen.In summary, Getmeasuredwidth is the width specified by the view onmeasure (which can be broadly understood as the size
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.