UIDatePickerDemo

effect

usage

1. Import files (CustomDatePickerView.h/.m and UIView+SetRect.h/.m)

2. Import the header file where you want to use it  #import "CustomDatePickerView.h" , There's another agent that needs to comply with  <CustomDatePickerViewDelegate>

3. See the source code for detailed usage

Source code

github:https://github.com/makingitbest/PickerViewDemo

details

1. Details of specific usage

2. The details of the internal package

When the control is initialized , What we want to get is window Of frame, This is more convenient than later processing

3.datePickerEvent Proxy delivery

4.datePickerView To hide and show

UIDatePicker More articles about

  1. UI--UIPickerView and UIDatePicker Summary of

    Back to the top UIPickerView The main method and the correction of city selector UIPickerView There are only two data source methods . To fully display PickerView, You need to use proxy methods in combination Data source method : // How many groups are there ...

  2. iOs The basic chapter ( Twenty-two )—— UIPickerView、UIDatePicker Use of control

    One .UIPickerView UIPickerView Is a selector control , You can generate a single column selector , You can also generate multiple column selectors , And developers can completely customize the appearance of options , So the usage is very flexible . 1. Common properties (1)num ...

  3. UIDatePicker and UIToolbar Use

    function , use UIDatePicker and UIToolbar Click the text box to pop up the date selection space . Click the OK button to get the time and display it to the corresponding Text Field Inside , Click the Cancel button to hide the keyboard . 1. establish textField control ...

  4. Customize a display that only displays the month and year DatePicker(UIDatePicker Can't realize month and year display )

    HooDatePicker Introduce (introduction) ================================================== The project needs a DatePicker, Show only ...

  5. iOS Development --UIDatePicker

    UIDatePicker It's a controller class , Encapsulates the UIPickerView, But he was UIControl Subclasses of , Specifically for acceptance dates . Input of time and duration . The columns of the date picker are automatically configured according to the specified style , such ...

  6. IOS The first 11 God (4:UIDatePicker Time choice , And keyboard processing , load xib file , The proxy pattern )

    *** Control layer #import "ViewController.h" #import "CZKeyboardToolbar.h" @interface ViewC ...

  7. UIDatePicker date / Time picker ( Roller )—IOS Development

    UIDatePicker It's a controller class , Encapsulates the UIPickerView, But he was UIControl Subclasses of , Specifically for acceptance dates . Input of time and duration . The columns of the date picker are automatically configured according to the specified style , such ...

  8. UIDatePicker Usage of

    Catalog [-] 1.Locale 2.Calendar 3.timeZone 4.date 5.minimumDate 6.maximumDate 7.countDownDuration 8.minute ...

  9. UIkit Framework UIDatePicker

    1. Inheritance chain :UIcontrol:UIview:UIResponder:NSOobject 2. and uidatepicker The associated trigger event is  UIControlEventValueChanged, When using ...

  10. Objective-c——UI The first day of advanced development (UIPickerView and UIDatePicker)

    One . Knowledge point 1. Introduce the data selection control UIPickerView And date selection controls UIDatePicker Control * UIPickerView The case of * Ordering system * City selection * Flag selection * UIDatePic ...

Random recommendation

  1. haha3

    YOU - fhasd - fdks jf > jd sfkjd sf </div><div><span >print "helloworld&qu ...

  2. nohup and &amp; The difference between

    nohup and & The difference between http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=4241330&fromuid=21288388 ...

  3. JVM Performance tuning summary

    From other blogs : https://www.cnblogs.com/donaldlee2008/p/5469685.html notes : The same applies to Tomcat tuning Tuning configuration instructions Heap size settings JVM The most ...

  4. ubuntu18.04.2LTS How to use the five pen input method --Linux

    ubuntu18.04.2LTS The next comes with five stroke input method , You don't have to download it alone 1. Find the region and language in the settings 2. Click the plus sign to add the input source 3. choice , choice 「 chinese 」 4. choice 「 Five strokes at the top 」 Start your five stroke input method journey …… link ...

  5. Python in map function

    1. brief introduction python Provide built-in functions map(), Receive two parameters , One is a function , One is the sequence ,map Apply the incoming function to each element of the sequence in turn , And take the result as a new list return . for example : (1) about list [1, 2 ...

  6. Luogu2792 JSOI2008 Shop shopping Minimum tree

    Portal Killed by the title I thought that a kind of goods must be bought together After reading the solution, I know that I can buy one of all the items I want to buy first , For the rest of the items you want to buy, you can get the maximum discount this kind of items can get -- So now you just need to know : The first time I bought everything ...

  7. ZOJ - 3471

    Strong pressure water a water , At the beginning, I had to drive two dimensions dp... #include<cstdio> #include<cstring> #include<algorithm> #def ...

  8. 【 Reprint 】Ubuntu Install it , Hard disk partition

    About zoning If you simply want to use Ubuntu, You can do this :1) If you are using the entire hard disk directly to install Ubuntu, There is no data to be saved on the machine , Or if you've done a backup , Can be directly in Ubuntu Select... When partitioning “ The wizard ─ ...

  9. HTML CSS Implementation of border shadow

    One for CSS Control background image tiling , So as to achieve the effect of regional border shadow , Although we use pictures , But the value of this code is that no matter how large the area you need to shadow , It adapts automatically , Because some are worth collecting , Compatible with all IE browser . <!DO ...

  10. mysql Create unique index

    Look at the index  show index from Database table name alter table database add index The index name ( Database field name ) PRIMARY KEY( primary key ) ALTER TABLE `ta ...