Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. NSArray *tagsArray = [NSJSONSerialization JSONObjectWithData:someData options:kNilOptions error:&error];
  2. if ([tagsArray count]>0) {
  3. for (int i=0; i<[tagsArray count]; i++) {
  4. CGRect ansCountValueRectangle13 = CGRectMake(80*i+10,110,80,30);
  5. UILabel *_tagsValue = [[UILabel alloc] initWithFrame:ansCountValueRectangle13];
  6. _tagsValue.clipsToBounds=YES;
  7. _tagsValue.tag=250;
  8. _tagsValue.text = [tagsArray objectAtIndex:i];
  9. _tagsValue.layer.cornerRadius=15.0;
  10. _tagsValue.backgroundColor = [UIColor orangeColor];
  11. _tagsValue.textAlignment = NSTextAlignmentCenter;
  12. _tagsValue.textColor=[UIColor whiteColor];
  13. _tagsValue.font = [UIFont boldSystemFontOfSize:16];
  14. [testing addSubview: _tagsValue];
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement