UA-17470720-3

Jump to content


Photo
- - - - -

Automatically Dismiss SCPropertyTypeSelection Tabl


  • Please log in to reply
9 replies to this topic

#1 Bryan Saltzman

Bryan Saltzman

    Experienced Member

  • STV 2.0
  • PipPipPipPip
  • 70 posts
Reputation: 0
Neutral

Posted 01 September 2010 - 01:31 PM

Do you think you could add the option to automatically dismiss a SCPropertyTypeSelection Table when the user selects an item, if single selection, instead of having to hit the NavBar's back button?

Thanks,

Bryan

#2 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 01 September 2010 - 01:46 PM

Nice idea Bryan, will be added!

#3 Oguz Kocer

Oguz Kocer

    Jr. Member

  • STV 2.0
  • PipPip
  • 22 posts
Reputation: 0
Neutral

Posted 27 September 2010 - 11:24 AM

Did you add this functionality? I couldn't find it in the documentation.

If not, is there a way to override any method to get the desired result?

Thanks..

#4 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 27 September 2010 - 12:01 PM

Yes it has been implemented and is currently being tested. We can give you a BETA later on today if you want.

#5 Oguz Kocer

Oguz Kocer

    Jr. Member

  • STV 2.0
  • PipPip
  • 22 posts
Reputation: 0
Neutral

Posted 27 September 2010 - 12:07 PM

I'd love it =)

I just bought the product and I'm really amazed by it. I just need a little bit more control over the views generated automatically. For example, what I was looking for right now is how to make the selection view (the view comes after you tap the SCSelectionCell) as grouped table view. I know that it's not a killer feature, maybe even unnecessary, but I now need for a specific reason =S.

Another thing is I couldn't find a way to change the name of navigation button "Back" once you are in the selection view.

Sorry about so much questions, I'm new to Sensible Cocoa. However, even tough so much questions in my head. I already love it. Good job =)

#6 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 27 September 2010 - 12:46 PM

You're welcome Oguz. Thank you very much for all the complements, we are really glad you find STV useful :)

For info on how to customize the detail view, please check out this post: http://www.sensiblec...leview.html#345

As for changing the back button, here is some code sample (please make sure you conform to the SCTableViewModelDelegate in your view controller's header file for this to work):

- (void)tableViewModel:(SCTableViewModel *)tableViewModel
 detailViewWillAppearForRowAtIndexPath:(NSIndexPath *)indexPath 
 withDetailTableViewModel:(SCTableViewModel *)detailTableViewModel
{
   UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:nil action:nil];
   detailTableViewModel.viewController.navigationItem.backBarButtonItem = backButton;
   [backButton release];
}

Hope this helps :)

#7 Bryan Saltzman

Bryan Saltzman

    Experienced Member

  • STV 2.0
  • PipPipPipPip
  • 70 posts
Reputation: 0
Neutral

Posted 27 September 2010 - 12:59 PM

I have been waiting for this BETA :) Can you send it to me as well?

#8 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 27 September 2010 - 01:06 PM

Sure Bryan, we'll be sending it to everyone who've requested it :)

#9 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 27 September 2010 - 06:05 PM

I will send you guys now the BETA version. All you need to do is use the new SCSelectionAttributes constructor method called attributesWithItems:allowMultipleSelection:allowNoSelection:autoDismissDetailView:hideDetailViewNavigationBar:

Please tell me if you're having any issues with this. Thanks!

#10 Bryan Saltzman

Bryan Saltzman

    Experienced Member

  • STV 2.0
  • PipPipPipPip
  • 70 posts
Reputation: 0
Neutral

Posted 28 September 2010 - 08:12 AM

Thanks! Worked like a charm :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users