why isn't a swipe handled by the notificationcenter?

Discussion in 'iOS Programming' started by grandM, Oct 31, 2016.

  1. grandM macrumors 65816

    grandM

    Joined:
    Oct 14, 2013
  2. PhoneyDeveloper macrumors 68040

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    Notifications aren't UI events. Notifications are meant to report that something changed but they aren't usually related to UI changes. Usually swipes are detected by gesture recognizers, which have a direct connection to the view that's been swiped.
     
  3. grandM thread starter macrumors 65816

    grandM

    Joined:
    Oct 14, 2013
    #3
    Thanks again for your insights! I knew that UIGestureRecognizer was used but I wondered why.
     

Share This Page