1.添加Objective-C File,(提示添加MySwift-Bridging-Header.h)
@interface CouponViewCell : UITableViewCell
@property (strong, nonatomic) UILabel *couponNameLabel;
-(NSInteger)tag_view:(NSInteger)count;
-(NSInteger)tag_view:(NSInteger)count count2:(NSInteger)count2;
@end
2.添加MySwift-Bridging-Header.h
3.在MySwift-Bridging-Header.h中
#import "CouponViewCell.h"
4.在swift文件里使用
let cell = CouponViewCell()
cell.couponNameLabel?.text = "123"
cell.tag_view(10)
cell.tag_view(10, count2: 120)