2016-04-02 4 views

答えて

3

これを試してください。

//check if the device supports 3DTouch 
if(self.traitCollection.forceTouchCapability == UIForceTouchCapabilityAvailable){ 
    [self registerForPreviewingWithDelegate:self sourceView:self.view]; 
}else{ 
    [[[UIAlertView alloc] initWithTitle:@"Error" message:@"3DTouch not available" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil] show]; 
} 
関連する問題