ユーザーが編集モードでアイコンをダブルタップするたびにアラートをポップする調整を行っています。引っ掛けてみた
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
のSBIcon
_
{
%orig;
UITouch *touch = [touches anyObject];
if (touch.tapCount == 2 && [[objc_getClass("SBIconController") sharedInstance] isEditing])
{
//pop an alert and do stuff
}
}
しかし、これはまったく機能していないようです。上記の何が問題なのか、これを達成するための代替方法を提案してくれる人はいますか?
編集:問題があれば、私はtheosを使用しています。