有時候會有設定角標的需求,如果每次都是手動設定,非常麻煩。 使用**SuperCornerMark**可以方便快捷的設定角標。
使用方法:
Podfile
platform :ios,'8.0'
target "Demo" do
pod 'biu_SCMark','1.0.3'
end
複製程式碼
#import <biu_SCMark/SCMark.h>
...
SCMColorModel *cModel = [[SCMColorModel alloc]init];
cModel.display_name = @"左上角標";
cModel.background_color = [UIColor redColor];
cModel.text_color = [UIColor blueColor];
[self.mView show_up_left_markWithModel:cModel];
SCMColorModel *rcModel = [[SCMColorModel alloc]init];
rcModel.display_name = @"右上角標";
rcModel.background_color = [UIColor redColor];
rcModel.text_color = [UIColor blueColor];
[self.mView show_up_right_markWithModel:rcModel];
SCMColorModel *rdModel = [[SCMColorModel alloc]init];
rdModel.display_name = @"右下 21:10";
rdModel.background_color = [UIColor grayColor];
rdModel.text_color = [UIColor whiteColor];
[self.mView show_down_right_markWithModel:rdModel];
複製程式碼
效果圖如下: