Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSArray *tagsArray = [NSJSONSerialization JSONObjectWithData:someData options:kNilOptions error:&error];
- if ([tagsArray count]>0) {
- for (int i=0; i<[tagsArray count]; i++) {
- CGRect ansCountValueRectangle13 = CGRectMake(80*i+10,110,80,30);
- UILabel *_tagsValue = [[UILabel alloc] initWithFrame:ansCountValueRectangle13];
- _tagsValue.clipsToBounds=YES;
- _tagsValue.tag=250;
- _tagsValue.text = [tagsArray objectAtIndex:i];
- _tagsValue.layer.cornerRadius=15.0;
- _tagsValue.backgroundColor = [UIColor orangeColor];
- _tagsValue.textAlignment = NSTextAlignmentCenter;
- _tagsValue.textColor=[UIColor whiteColor];
- _tagsValue.font = [UIFont boldSystemFontOfSize:16];
- [testing addSubview: _tagsValue];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement