Как указать местоположение с помощью wget?

В методе «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, чтобы он работал.

] Шани

610
задан Ionică Bizău 9 February 2014 в 14:47
поделиться

2 ответа

На странице руководства:

-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 / (полная форма) к вашей команде. Также обратите внимание, что если каталог не существует, он будет создан.

878
ответ дан 22 November 2019 в 21:51
поделиться

"-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.
1
ответ дан 22 November 2019 в 21:51
поделиться
Другие вопросы по тегам:

Похожие вопросы: