0
我想獲得一個手勢來重新加載我編碼的應用程序的網頁。截至目前,手勢正在使用UIGestureRecognizer
。我已經成功地能夠編碼,當我刷卡時,我有一個UILabel
變化。我想用這個手勢來重新加載網頁。目前,我在我的m文件中有這樣的事情導致這種情況發生。鏈接手勢重新加載UIWebView
- (void)ScreenWasSwiped
{
[swipe setText:@"This is working"];
}
下viewdidload
UISwipeGestureRecognizer *swipedown = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector (ScreenWasSwiped)];
swipedown.numberOfTouchesRequired = 1;
swipedown.direction=UISwipeGestureRecognizerDirectionDown;
[self.view addGestureRecognizer:swipedown];
我怎樣才能改變這種做法,我可以用相同的姿態重新加載瀏覽器?
在此先感謝。
這樣做的竅門!謝謝! – Ash 2012-04-03 14:22:40
太棒了!我很高興它的工作 - 你能標記答案爲「接受」? – 2012-04-03 14:46:08