Welcome, Guest
Username Password: Remember me

SCDateCell Modal
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: SCDateCell Modal

SCDateCell Modal 1 year, 3 months ago #1

I have enabled both portrait and landscape orientations in my app and have something weird going on with the SCDateCell's detail view.

If in portrait, the date picker only shows part way up the screen. But in landscape (and flat on its back), it shows full screen.

I have the property mycell.detailViewModal = YES; set. Is there something else I need to do?

Thanks
  • icyplains
  • OFFLINE
  • Expert Boarder
  • Posts: 133
  • Karma: 5

Re: SCDateCell Modal 1 year, 2 months ago #2

I'm not sure if this is related but with the 2.0 RC for my Date cell, the picker is displaying at the bottom of the screen instead of presenting a new view on the iPad. Portait and Landscape has the same issue. This was working ok in v1.6. See attached on the issue.

The code I use is :
 
SCPropertyDefinition *datePropertyDef = [inspectionDef propertyDefinitionWithName:@"inspectionDate"];
datePropertyDef.required = TRUE;
datePropertyDef.title = @"Date";
datePropertyDef.type = SCPropertyTypeDate;
 


Screen_shot_2011_03_11_at_1.png
  • monsta
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 2
Last Edit: 1 year, 2 months ago by monsta.

Re: SCDateCell Modal 1 year, 2 months ago #3

Hi Phil,

This is the default behavior of STV 2.0, where we try to flatten out the detail view hierarchy as much as possible, which results in the user making their selection with the fewest possible taps.

In the final release (due in less than a week from today), you'll be able revert back to the old behavior by adding the following line of code:

 
...
datePropertyDef.attributes =
[SCDateAttributes attributesWithDateFormatter:nil displayDatePickerInDetailView:YES];
...
 


Please tell me if you need anything else.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: SCDateCell Modal 1 year, 2 months ago #4

Ok thanks for the update Tarek. I'll keep an eye out for the new release since I'll need that.
  • monsta
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 2
  • Page:
  • 1
Time to create page: 1.61 seconds