Commit efffd68d authored by 管鹏飞's avatar 管鹏飞

真的改了『填写行情反馈』图片预览界面的第一张图位置错误的bug Sandy

parent 8fe71f9e
......@@ -277,10 +277,13 @@
NSDictionary *dictionaryTemp = [self.arrayPositions objectAtIndex:i];
CGFloat originx = [[dictionaryTemp objectForKey:kImagePositionx] floatValue];
CGFloat originy = [[dictionaryTemp objectForKey:kImagePositiony] floatValue];
//修正第一个图片位置错误
if (i == 0) {
originy -= 5;
if (i == 0 && count > 1) {
NSDictionary *dictionaryTemp = [self.arrayPositions objectAtIndex:1];
originy = [[dictionaryTemp objectForKey:kImagePositiony] floatValue];
}
HGPhoto *photoTemp = [self.arrayPhotos objectAtIndex:i];
[photoTemp moveToPosition:CGPointMake(originx, originy)];
NSLog(@"x=%f,y=%f",originx, originy);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment