如何将滚动添加到图像视图

时间:2011-05-16 06:51:39

标签: iphone objective-c ipad

请建议如何添加滚动到图像视图我用鼠标写一些消息并保存为图像我需要滚动来在图像视图中写入框文本..

2 个答案:

答案 0 :(得分:1)

请从here

下载示例代码

这肯定对你有帮助。

答案 1 :(得分:0)

参见这个例子....并实现这个..

UIImageView *imgViewCell = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 46.0f, 320.0f, 116.0f)];
NSString *path = [[NSBundle mainBundle] pathForResource:@"detail_bg" ofType:@"png"];
UIImage *img = [[UIImage alloc] initWithContentsOfFile:path];
[imgViewCell setImage:img];
[ScroollView addSubview:imgViewCell];
[img release];