Comments (11)
You can access any datePicker property like so:
DTDatePickerPresenter * presenter = [DTDatePickerPresenter presenterWithChangeBlock:^(NSDate * selectedDate)
{
// Update your model with NSDate
}];
presenter.datePicker.datePickerMode = UIDatePickerModeDate;
from dtinlinedatepicker.
Thanks man, it is the same that i can change cell format date ?
from dtinlinedatepicker.
You can use NSDateFormatter for formatting NSDate.
from dtinlinedatepicker.
Yes but i do not understand where i can affect table view cell label…
from dtinlinedatepicker.
DTTableViewManager is used to manage relationship between data model and the cell.
Cell receives it's value in it's updateWithModel method: https://github.com/DenHeadless/DTInlineDatePicker/blob/master/Example/Cells/ExampleCell.m#L15
If it's the first time you are using DTTableViewManager, i recommend reading the readme.
from dtinlinedatepicker.
Thak you man i have understand, nevertheless i can't find a way to use another table view cell height.
from dtinlinedatepicker.
Standard UITableViewDelegate methods are supported, simply override tableView:heightForRowAtIndexPath: method.
from dtinlinedatepicker.
That simple, thank you very much DenHeadless, your DTInlinePicker is magic.
from dtinlinedatepicker.
Arf when i change table view height the picker come over the next cell…
Any idea ?
from dtinlinedatepicker.
Oh, sorry, i forgot to mention the height for date picker cells is overridden. Basically you can do two things:
- If you need the same cell height on all cells, except UIDatePicker cell, you can just set UITableView rowHeight property.
- If you need custom height for your cells, override tableView:heightForRowAtIndexPath: method, but check for DTDatePickerPresenter. Basically like here https://github.com/DenHeadless/DTInlineDatePicker/blob/master/DTInlineDatePicker/DTInlinePickerTableController.m#L71-L80
from dtinlinedatepicker.
i need option 1 but adding :
- (CGFloat)tableView:(DTTableViewCell *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
make the picker come over the other cell...
from dtinlinedatepicker.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dtinlinedatepicker.