开发者

How to add shaking effects in an app using UIResponder çlass

I have two question: 1)How can I add shaking effects in an iphone app using UIResponder Class.

2)I have two views Parent View & Child View where I am going to the child view from parent view, using present modal view controller and there is an image in the child view that should is showing but the problem is that I want that in the child view the image should cover onl开发者_如何学Goy half of the screen and user should be able to see the parent view in the back side of the image as well.

Please help me.

Thanks a lot in advance.


shaking effect can be added with the help of the following methods of the UIResponder class

- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event

- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event

if you want the user to see only half of the image then set the frame of the UIImageView or the view in which you are showing the image to half of the window. I didn't get the last part of your question can you elaborate that

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜