开发者

iAd giving problems with Shaking Motion

I have an application that needs to detect a shaking motion to start/restart its activity. It is already on-Line, but开发者_如何学Python now I want to add the new feature of iAd. I've implemented all the needed methods, but I have a problem: when I enter the Ad and then exit, the device can't catch the shaking motion anymore.

Ideas? Hint.

Thank you.


In the below stackoverflow link:- How to use Shake API in iPhone SDK 3.0?

detailed info is provided. check this.

hope it helps


Solved, actually I get the problem reading diggin into answers linked by Srinivas.

The problem was that when the Ad is end and returns back the control to my UIViewController, this one is no more the First Responder setted on his view. The solution:

- (void)bannerViewActionDidFinish:(ADBannerView *)banner {
   [[self view] becomeFirstResponder];
}

Nothing more.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜