phonegap/phonegap-iphone — Issue #323: observeValueForKeyPath not calling : phonegap iOS plugin
Author: amitbattan
Created: 2011-10-24 10:29:25+00:00
State: open

I am using observer following code with phonegap iOS plugin

myView = [[UIView alloc] initWithFrame:CGRectZero];
[myView addObserver:self forKeyPath:@"frame" options:NSKeyValueObservingOptionNew context:nil];

Another Code

- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
NSLog(@"observeValueForKeyPath");
if([keyPath isEqualToString:@"frame"])
{
[self layoutViews];
}
}

but I it never trigger the ````observeValueForKeyPath````

Related Post : https://github.com/gdavis/FGallery-iPhone/issues/6#issuecomment-2456774