UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom];
[but setTitle:@"测试一下" forState:UIControlStateNormal];
NSLog(@"****%@",[button currentTitle]);//button.currentTitle
[but setTitle:@"测试一下" forState:UIControlStateNormal];
NSLog(@"****%@",[button currentTitle]);//button.currentTitle
NSLog(@"******%@",button.titleLabel.text);
两者输出的结果是一样的,currentTitle是快速的访问方法,[button curenttitle]和button.curremtTitle是一样的,一个是调用currentTitle方法,一个是点方法
同理,currentImage,currentBackgroundImage等都是一个快速访问的方法