0
我在視圖中有幾個按鈕。這些在幾天前被測試並且工作正常。今天由於某種原因,他們停止工作。這些按鈕是自定義的,帶有圖像。他們被連接到一個動作,如:UIButton在開發過程中停止響應
- (IBAction)walkTurnByTurn:(id)sender {
NSLog(@"Clicked Turn By Turn Walk");
CLLocationCoordinate2D destination = self.loadOficina.coordinate;
MKPlacemark *endLocation = [[MKPlacemark alloc] initWithCoordinate:destination addressDictionary:nil];
MKMapItem *endingItem = [[MKMapItem alloc] initWithPlacemark:endLocation];
[endingItem setName:self.loadOficina.title];
NSMutableDictionary *launchOptions = [[NSMutableDictionary alloc] init];
[launchOptions setObject:MKLaunchOptionsDirectionsModeWalking forKey:MKLaunchOptionsDirectionsModeKey];
[endingItem openInMapsWithLaunchOptions:launchOptions];
}
我刪除了按鈕,並重新創建它,將其連接到動作。它被啓用,用戶交互也被啓用。它看起來只是沒有響應觸摸,因爲它在點擊時不會改變顏色。 任何想法可能發生了什麼?