В методе «shouldReceiveTouch» вы должны добавить условие, которое будет возвращать NO, если нажатие кнопки.
Это пример из примера SimpleGestureRecognizers .
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
// Disallow recognition of tap gestures in the segmented control.
if ((touch.view == yourButton)) {//change it to your condition
return NO;
}
return YES;
}
надеюсь, что это поможет
Редактировать
Как отметил Даниил, вы должны соответствовать UIGestureRecognizerDelegate
, чтобы он работал.
] Шани
На странице руководства:
-P prefix
--directory-prefix=prefix
Set directory prefix to prefix. The directory prefix is the
directory where all other files and sub-directories will be
saved to, i.e. the top of the retrieval tree. The default
is . (the current directory).
Итак, вам нужно добавить -P / tmp / cron_test /
(краткая форма) или - directory-prefix = / tmp / cron_test /
(полная форма) к вашей команде. Также обратите внимание, что если каталог не существует, он будет создан.
"-P" является правильной опцией, продолжайте читать для большей сопутствующей информации:
wget - без обозначения даты-np-P/dest/dir - рекурсивный http://url/dir1/dir2
Соответствующие отрывки из страниц справочника для удобства:
-P prefix
--directory-prefix=prefix
Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree. The default is . (the current directory).
-nd
--no-directories
Do not create a hierarchy of directories when retrieving recursively. With this option turned on, all files will get saved to the current directory, without clobbering (if a name shows up more than once, the
filenames will get extensions .n).
-np
--no-parent
Do not ever ascend to the parent directory when retrieving recursively. This is a useful option, since it guarantees that only the files below a certain hierarchy will be downloaded.