Правильный ответ зависит от Ваших приоритетов и размера набора данных, который будет разбит на страницы.
Серверное разбиение на страницы является лучшим для:
, является лучшей для:
Поэтому, если Вы разбиваете на страницы по, прежде всего, косметическим причинам, имеет больше смысла обрабатывать его сторона клиента. И если Вы разбиваете на страницы для сокращения начального времени загрузки, сторона сервера является очевидным выбором.
, Конечно, преимущество стороны клиента на последующем времени загрузки страницы уменьшается при использовании Ajax для загрузки последующих страниц.
As I suspected, I assumed wrong about UIViewController
/firstResponder
usage. This thread in the apple dev forums talks specifically about getting shaking to work.
Call becomeFirstResponder
on the UI element that you want to respond. The events will automatically get forwarded to the UIViewController
as long as no other objects in the chain implement the touches methods (or at least keep forwarding them up the chain).
Side note: To build on the comments of others, it really doesn't make sense for a UIViewController
to be the "first" responder. The first responder should be an object with an on screen representation (a UIView
or one of its subclasses).
Although this may be a completely incorrect statement, there may be undocumented behavior in UIViewController
that prevents it from becoming the firstResponder because of these issues (Someone smarter than me may be able to verify the validity of this).
Убедитесь, что вы установили UIViewController в качестве первого респондента после того, как вы назначили некоторое представление вашему экземпляру окна.