Where are events in Cocoa Touch?
        Posted  
        
            by yesenin
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by yesenin
        
        
        
        Published on 2010-04-18T16:03:00Z
        Indexed on 
            2010/04/18
            17:13 UTC
        
        
        Read the original article
        Hit count: 370
        
Hi all!
I learn Cocoa Touch several days, and today have stuck while looking for way to implement a custom event. Event that I can see in Connection Inspector for my UIView subclass.
What I have:
There are a UILabel and MyView:UIView on MainVindow. MyView contains a UISlider. Interfaces for Controller and MyView
// Controller.h 
@interface Controller : NSObject {
   IBOutlet UILabel *label;
   IBOutlet MyView *myView;
}
// I suppose that there should be something like -(IBAction) changeLabelValue for myView event
@end
// MyView.h
@interface MyView : UIView {
    IBOutlet UISlider *slider;
    float value;
}
- (IBAction) changeValue; //for slider "Changed Value" event
What I want:
Add something in MyView that allows it to rise a event after change value.
Can anybody help me? My main area in programming is .NET and I begin think that its terminology is not appropriate for this case.
Thanks.
© Stack Overflow or respective owner