圖中藍色部分爲scrollView的Frame
圖片初始化
tempImageV.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, CELL_WIDTH, CELL_WIDTH )];
[tempImageV addSubview:tempImageV.imageView];
按代碼,圖片出來應該剛好覆蓋整個scrollview,事實並沒有。--------------解決辦法
在你的控制器中 set一句話
[self setAutomaticallyAdjustsScrollViewInsets:NO];
便可完美解決。