iOS在图上添加文字:DIImageView
jopen
10年前
DIImageView可以在图上添加文字。只需要一行代码初始化,就可以使用。
Usage // Example DIImageView *imageView = [[DIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 320)]; [imageView setImage: [UIImage imageNamed:@"alley.jpg"]]; [self.view addSubview:imageView]; // After initialization tap imageView to dynamically create caption.