UA-17470720-3

Jump to content


Photo
- - - - -

Tab Bar Controller


  • Please log in to reply
24 replies to this topic

#21 Raj Devershetty

Raj Devershetty

    Sr. Member

  • STV 3.0 Pro
  • PipPipPip
  • 48 posts
Reputation: 2
Good

Posted 06 April 2011 - 10:05 PM

I have tried below code, It did'nt work.But it works for tableModel.detailViewHidesBottomBar=FALSE;
I'm using the SCArrayOfObjectsModel for tableModel. I'm stuck with the assigning detailsViewTitle.

if(tableViewModel.tag == 0){
cell.detailViewHidesBottomBar = FALSE;
cell.detailViewTitle=@"My Detials View Title";
}

#22 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 10 April 2011 - 07:39 AM

Hi Raj,

Are you able to post more code? I need to see your relevant viewDidLoad code and all the relevant delegate methods. Thanks!

#23 Raj Devershetty

Raj Devershetty

    Sr. Member

  • STV 3.0 Pro
  • PipPipPip
  • 48 posts
Reputation: 2
Good

Posted 10 April 2011 - 09:05 AM

- (void)viewDidLoad {
[super viewDidLoad];

// Create vachana class definition
SCClassDefinition *vachanasClassDef = [SCClassDefinition definitionWithClass:[Vachana class]
withPropertyNames:[NSArray arrayWithObjects:@"name", @"kanDescription",@"engDescription", nil]];
vachanasClassDef.uiElementDelegate = self;

SCPropertyDefinition *namePropertyDef = [vachanasClassDef propertyDefinitionWithName:@"name"];
namePropertyDef.title = @"Name:";
namePropertyDef.type = SCPropertyTypeTextView;
namePropertyDef.attributes = [SCTextViewAttributes attributesWithMinimumHeight:45 maximumHeight:45
autoResize:TRUE editable:FALSE];

SCPropertyDefinition *kanDescriptionPropertyDef = [vachanasClassDef propertyDefinitionWithName:@"kanDescription"];
kanDescriptionPropertyDef.title = @"Kannada:";
kanDescriptionPropertyDef.type = SCPropertyTypeTextView;
kanDescriptionPropertyDef.attributes = [SCTextViewAttributes attributesWithMinimumHeight:100 maximumHeight:800
autoResize:TRUE editable:FALSE];

SCPropertyDefinition *engDescriptionPropertyDef = [vachanasClassDef propertyDefinitionWithName:@"engDescription"];
engDescriptionPropertyDef.title = @"English:";
engDescriptionPropertyDef.type = SCPropertyTypeTextView;
engDescriptionPropertyDef.attributes = [SCTextViewAttributes attributesWithMinimumHeight:100 maximumHeight:800
autoResize:TRUE editable:FALSE];

// Initialize tasksArray ,read vachana XML file
ApplicationState *appState = [ApplicationState getInstance];
Vachanas *vsnaVachanas = appState.deserializedVachanas;
NSArray* vsnaVachanasArray=[vsnaVachanas vachanas];
vachanasArray = [[NSMutableArray alloc] init];
for (Vachana *vachana in vsnaVachanasArray)
{
[vachanasArray addObject:vachana];
}

// Initialize tableModel
tableModel = [[SCArrayOfObjectsModel alloc] initWithTableView:self.tableView withViewController:self withItems:vachanasArray withClassDefinition:vachanasClassDef];
tableModel.searchBar = self.searchBar;
tableModel.searchPropertyName = @"name";
tableModel.autoSortSections = TRUE;
tableModel.autoGenerateSectionIndexTitles=TRUE;
tableModel.detailViewHidesBottomBar=FALSE;
self.tableView.opaque = NO;
self.tableView.backgroundColor=textBackGrndColor;
self.tableView.separatorStyle=1;
}

#24 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 12 April 2011 - 10:20 AM

Hi Raj,

I tried replicating that and it seems to work correctly for me. I think you might be implementing some other delegates? Would you please send me your latest project? Thanks!

#25 Adam Chin

Adam Chin

    Sr. Member

  • STV 2.0
  • PipPipPip
  • 42 posts
Reputation: 5
Good

Posted 03 May 2011 - 08:12 PM

Hi Tarek,

Just wanted to let you and everyone else know this is something that works great for me now.. Don't remember if this was 2.0.3, or 2.0.4, but nonetheless, it's great!

Thanks,
Adam




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users