添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
慷慨的柑橘  ·  DependencyProperty.Reg ...·  5 月前    · 
踏实的汉堡包  ·  C# ...·  1 年前    · 
非常酷的斑马  ·  Why isn’t it possible ...·  1 年前    · 
附上源码:-(void)loadView{[superloadView];self.view.backgroundColor=[UIColorblackColor];UIImageView*imageView=[[UIImageViewalloc]initWithImage:self.image];//imageView.fra... 附上源码:
-(void)loadView

{

[super loadView];

self.view.backgroundColor = [UIColor blackColor];

UIImageView *imageView=[[UIImageView alloc] initWithImage:self.image];

// imageView.frame = CGRectMake(0, 0, 320, 480);

UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 44, 320, 480)];

scrollView.contentSize = CGSizeMake(320*9, 480);

scrollView.maximumZoomScale = 2;

scrollView.minimumZoomScale = 0.5;

scrollView.delegate = self;

[self.view addSubview:scrollView];

[scrollView addSubview:imageView];

}