`

ios log, bind event

 
阅读更多
//
//  ViewController.m
//  201401
//
//  Created by zhang guoqi on 14-4-5.
//  Copyright (c) 2014年 zhang guoqi. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UIButton *bbb;
@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    [_bbb addTarget:self action:@selector(onButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void)onButtonClicked:(id)sender {
    NSLog(@"%s", __PRETTY_FUNCTION__);
}
- (IBAction)llll:(id)sender {
    NSLog(@"%s", __PRETTY_FUNCTION__);
}
- (IBAction)aaa:(id)sender {
    NSLog(@"%s", __PRETTY_FUNCTION__);
}

@end


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics