UA-17470720-3

Jump to content


Photo
- - - - -

new cell method


  • Please log in to reply
3 replies to this topic

#1 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 18 April 2013 - 07:41 PM

can we get willTransitionToState added ?

its ok.. i just added it to a category instead:)

Edited by ozie, 20 April 2013 - 02:46 AM.

  • Smatombub likes this

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#2 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 24 April 2013 - 11:05 PM

Can you please explain more?

#3 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 24 April 2013 - 11:08 PM

its ok.. its called when the delete button etc is to be displayed..
I just added it to a category and check the tableview tag

its from
- (void)willTransitionToState:(UITableViewCellStateMask)state
and
- (void)didTransitionToState:(UITableViewCellStateMask)state

for doing things like
- (void)willTransitionToState:(UITableViewCellStateMask)state {
    [super willTransitionToState:state];
    if ((state & UITableViewCellStateShowingDeleteConfirmationMask) == UITableViewCellStateShowingDeleteConfirmationMask) {
	    for (UIView *subview in self.subviews) {
		    if ([NSStringFromClass([subview class]) isEqualToString:@"UITableViewCellDeleteConfirmationControl"]) {			
			    subview.hidden = YES;
			    subview.alpha = 0.0;
		    }
	    }
    }
}

  • Tarek likes this

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#4 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 24 April 2013 - 11:12 PM

Thanks for sharing!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users