添加高度可定制標簽列表的一個UIScrollView子類:AMTagListView

mip33 9年前發布 | 18K 次閱讀 Objective-C開發 AMTagListView

UIScrollView是UIScrollView的一個子類,能夠添加高度可定制標簽列表。 您可以自定義顏色,邊框半徑和標簽的尾巴。標簽可以批量添加或動態添加。新插入的標簽將自動排列在滾動視圖本身內。

// Init 
AMTagListView *tagListView = [[AMTagListView alloc] initWithFrame:frame];
[self.view addSubview:tagListView];

// Add one tag [self.tagListView addTag:@"my tag"];

// Add multiple tags [self.tagListView addTags:@[@"my tag", @"some tag"]];</pre>

項目主頁:http://www.baiduhome.net/lib/view/home/1429510638760

 本文由用戶 mip33 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!