This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// image | |
UIImageView *iconView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 30, 50)]; | |
iconView.image = [UIImage imageNamed:@"my-icon-image"]; | |
// text | |
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 35, 50)]; | |
label.text = @"test"; | |
[iconView addSubview:label]; | |
// grab it |