subdigital / bsmodalpickerview Goto Github PK
View Code? Open in Web Editor NEWA custom view component that presents a UIPickerView with a simple list of options, along with a toolbar for Done/Cancel and a faded backdrop view.
License: MIT License
A custom view component that presents a UIPickerView with a simple list of options, along with a toolbar for Done/Cancel and a faded backdrop view.
License: MIT License
Per Apple's spec, the toolbar should be 44 points instead of 40 in order to make the Cancel and Done buttons as large as they are when the toolbar appears in Safari. As it stands now, they look just a bit too small.
After selecting a value in the picker and then pressing Cancel, the next time the picker is displayed, it is displaying the value last selected even though the user pressed Cancel and did not want that value saved.
In the NSScreencast #26 I added the following to the ViewController.m
I then run it, hit the button, then rotate the device. The view doesn't update and now is only half visible.
I'm not sure, but does the view need to respond to the layout subviews and take action on that? Haven't had time to look into the source yet.
would be awesome if there is a DatePicker equivalent. BSModalDatePickerView
It seems in iOS9 the picker is having some issue presenting the values. They show up blank.
You can reproduce this in the demo as well. Open demo, click Choose Color, select any color other than Green, hit Done, Select Choose Color, Values are then blank.
Any thoughts?
Say I have a view where i made a call to show the Picker
// View - PriceView
BSModalPickerView *bsPickerView = [[BSModalPickerView alloc] initWithValues:@[@"$", @"Rs", @"P"]];
[bsPickerView presentInView:self withBlock:^(BOOL madeChoice) {
if (madeChoice) {
NSLog(@"%@", bsPickerView.selectedValue);
}
}];
// ViewController
PriceView *view = [PriceView newPriceOptionView];
[self.view addSubview:view];
I want pickerView code on View,
But picker should be displayed at View Controller.
Eg - Now if I do so, the picker will shows at at the bottom of view which is of size x = 0, y = 10, h= 30, w=320.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.