Изучение основ UIScrollView

Для меня (Windows) они теперь хранятся в C:\Users\YOUR_USER\AppData\Roaming\Mozilla\Firefox\Profiles\YOUR_PROFILE.default\extensions\

И там вы копируете свою надстройку с идентификатором, найденным в install.rdf внутри вашего ZIP-файла .xpi в качестве имени. Например: jid0-UNAwlo81XedDjh0Suj64AGkhDaj@jetpack.xpi

Но при перезапуске Firefox вам будет предложено подтвердить установку . Не подходит для сценария разработки.

37
задан M. Ryan 20 October 2009 в 15:17
поделиться

1 ответ

Here is a scroll view guide from Apple

The basic steps are:

  1. Create a UIScrollView and a content view you want to put inside (in your case a UIImageView).
  2. Make the content view a subview of the scroll view.
  3. Set the content size of the scrollview to the frame size of the content view. This is a very important step that people often omit.
  4. Put the scroll view in a window somewhere.

As for the paging behavior, check out UIScrollView’s pagingEnabled property. If you need to scroll by less than a whole page you’ll need to play tricks with clipsToBounds, sort of the reverse of what is happening in this StackOverflow question.

46
ответ дан 27 November 2019 в 04:41
поделиться