How to use IKFilterUIViews to manipulate the filters array when applied to CALayer?

  • Greetings, Code masters.
    I have set an array of core image to a CALayer for generating some
    effects. In order to adjust the properties of these filters, I uses
    the IKFilterUIViews responding to every filter.

    However, I found when I adjusted the properties of the
    IKFilterUIViews' control value, the CALayer effects don't change. I
    found an example named "IUUIApplicationDemo". Its solution is to add a
    controller to be the observer of the filters. Code like these:
    [Filter addObserver:self
                     forKeyPath:@"outputImage"
                         options:NSKeyValueObservingOptionNew
                         context:nil];
    It didn't work for my application. For I applied the filters to a
    CALayer. So in the corresponding observe method:
    - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object
    change:(NSDictionary *)change context:(void *)context;
    {
    NSLog(@"Value changed");

    //[renderView setImage:[self filteredImage]];
    }

    Instead of getting the message "Value changed", I got the following
    message:
    CIBloom: bloom: nil value for argument #0 (src)

    I don't know how to solve this problem. Can anyone help me?
    Thank you very much for any answers.
previous month february 2008 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29    
Go to today