0

I have a ButtonCell, which i want to hide using bindings, when the NSString value at keyPath

key1.key2

is larger than 3 character, but the binding offers me only

NSIsNotNil, NSIsNil,...

which doesnt apply in this case

Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179

2 Answers2

0

Well In your XIB select you button then as attached in the screens shot follow the steps:-

  1. List item
  2. Now in your header and implementation file create property and synthesize variable of BOOL isEnable;
  3. And on the basis of your string count set it NO and YES.
Mike Lischke
  • 48,925
  • 16
  • 119
  • 181
Hussain Shabbir
  • 14,801
  • 5
  • 40
  • 56
-1

you can use this method:

-(void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context

in this one you can enable and disable cell according the value in key path

PR Singh
  • 653
  • 5
  • 15