2017-03-16 45 views

回答

0

隐藏默认的导航栏,并通过使用DWlist得到这样的标题做准备自定义视图。

自定义视图:

// Initalise and set the frame of the tag list 
tagList = [[DWTagList alloc] initWithFrame:CGRectMake(20.0f, 70.0f, 280.0f, 300.0f)]; 

// Add the items to the array 
NSArray *array = [[NSArray alloc] initWithObjects:@"Foo", @"Tag Label 1", @"Tag Label 2", @"Tag Label 3", @"Tag Label 4", @"Tag Label 5", nil]; 

[tagList setTags:array]; 

// Add the taglist to your UIView 

[self.view addSubview:tagList]; 

https://github.com/domness/DWTagList

相关问题