//ボタンの長押し設定部分
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPressedButton:)];
[button addGestureRecognizer:longPress];
上記の用に、長押しを「button」に設定する。-(void) longPressedButton:(UILongPressGestureRecognizer *)gestureRecognizer
{
switch (gestureRecognizer.state) {
case UIGestureRecognizerStateBegan:
//長押しを検知開始
break;
case UIGestureRecognizerStateEnded:
//長押し終了時
break;
default:
break;
}
}
上記のように長押しの開始終了を分ける事が可能。ld: warning: ld: warning: ld: warning: ignoring file /ファイルのパス/libAdapterNend.a, missing required architecture x86_64 in file /Uファイルのパス/libAdapterNend.a (3 slices)ignoring file /ファイルのパス/libGoogleAdMobAds.a, missing required architecture x86_64 in file /ファイルのパス/libGoogleAdMobAds.a (3 slices)ignoring file /ファイルのパス/libAdapterIAd.a, missing required architecture x86_64 in file /ファイルのパス/libAdapterIAd.a (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in ChartImageViewController.o
objc-class-ref in EntryViewController.o
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in ChartImageViewController.o
objc-class-ref in EntryViewController.o
"_kGADAdSizeBanner", referenced from:
-[ChartImageViewController viewDidLoad] in ChartImageViewController.o
-[EntryViewController viewDidLoad] in EntryViewController.o
"_kGADAdSizeLeaderboard", referenced from:
-[ChartImageViewController viewDidLoad] in ChartImageViewController.o
-[EntryViewController viewDidLoad] in EntryViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (us