objective c - Xcode iOS UIView with tap gesture allowing input on subviews -


so have homepage view people see when first boot app, has several different options. yesterday added tutorial overlay, first time open app have view 0.5 alpha black , fullscreen on other view, view has white text , arrows pointing functions on page. attached tap gesture recognizer view , action call next tutorial screen ( 3 in total). afterwords hidden , app acts normal. works, except though view full screen, user interaction enabled checked , gesture tap recognizer, gestures / touches on sub view still work. if tap white space on app tutorial , tap gesture work expected, cycle me through pages etc , works. if accidentally press sub view button or gesture subview action (take new page or w/e)

so far can tell view despite being on top of other , having tap gesture recognizer attached view sub views still getting pressed, ideas?

check tap event view before doing operation..

- (ibaction)yourtapevent:(uitapgesturerecognizer *)gesturerecognizer     {         uiview *piece = [gesturerecognizer view];          if(piece  == (view on have added gesture))         {             //do necessary operation         }      } 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -