English 中文(简体)
5. 生产 View zoom ToRect: to only show a part
原标题:Cause UIScrollView zoomToRect: to only display a portion

我有一门UIScroll级书,其中载有一门UIImage语。 当该区使用双管线时,我想向CGRect(从CCGPoint)和“hide”传递“UIImage语”的其余部分。 最终结果在Mavel.app和《步行之死》中类似。

至今:

-(void)presentRect:(CGRect)rect {
  self.bounds = originalFrame;    //1
  [UIView beginAnimations:@"navigateToPos" context:nil];    
  [self zoomToRect:rect animated:NO];
  self.bounds = rect;   
  [UIView commitAnimations];
}

这一工作,但“动物群”需要全方位的电荷,而当我重新启用(第1条)时,就会产生不可思议的效果。

我对此感到困惑。 我不知道我是否需要一种新的做法,还是需要使用《美国国际法年鉴》的另一种财产。

感谢任何帮助。 感谢。

最佳回答

我通过模拟预期效果的UIScroll意见的其他适当方法解决。

问题回答

I downloaded this apps to see it. I m almost sure they didn t even use uiscrollview. The way the pages moves make me think about that. And uiscrollview should be used only when you really need it, because it have a lot issues when you re customizing. (tiled content, zooming and others problems).

下面只有50px aprox页的幻灯片,该页接着到下页,因为该页面的操作是散射的。

正如我以前说过的那样,它很可能使用4条条条条条条条条条条条条条(正如你对我说的),或者可以这样做,以总结ui的面貌和工作。 你们只需要计算浮游动物面积,将其迁到中心,并重新确定符合这一新规模的包装。 单单单单是图像,可以替代网页的目录,但是,在什么地方,你将这种“眼光”。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签