In my ios appliation there is a label which is hidden and is displayed when button is clicked and when user taps on label it should give a alertview. For the user to interact with label i enable userinteraction enabled and number of tap gestures to 1 its working in simulator but not on iphone simulator works on ios6 and iphone on ios7
Asked
Active
Viewed 269 times
1 Answers
1
Why use UILabel
?
Use UIButton
- with title as your text and
- set the button type to custom
- making the background color
clearcolor
. - Also set the action in
touchupinside

Lithu T.V
- 19,955
- 12
- 56
- 101
-
even the button intraction is not working i tried that way too – savana Aug 13 '13 at 09:10
-
when i checked in device running with ios6 its displaying alertview but not on ios7 i even checked whether user interaction is enabled in both cases and returned yes – savana Aug 13 '13 at 09:11
-
does the click event execute? Include the method call for alert – Lithu T.V Aug 13 '13 at 09:12
-
i kept a break point when tap function is called it doesn't call break point in iOS7 but calls breakpoint in iOS6 n simulator – savana Aug 13 '13 at 09:15
-
well how you set the action to the button? – Lithu T.V Aug 13 '13 at 09:16
-
inserted button using xib and click and drag for setting action to button – savana Aug 13 '13 at 09:17
-
Check weather the button goes behind any of any view added in ios7 – Lithu T.V Aug 13 '13 at 09:21
-
can you say how to check it – savana Aug 13 '13 at 09:59