Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows you to set a UIView's userInteractionEnabled property. #222

Merged
merged 1 commit into from Mar 21, 2015

Conversation

@markrickert
Copy link
Member

@markrickert markrickert commented Mar 19, 2015

No description provided.

@GantMan

This comment has been minimized.

couple notes on this: There's a method way, too:

def enable_interaction
selected.each { |view| view.userInteractionEnabled = true }
self
end

AND, if you do a on() user interaction is automatically enabled. Though I agree, it's good to be able to disable/enable form the stylesheet.

@markrickert
Copy link
Member Author

@markrickert markrickert commented Mar 19, 2015

Yeah, i wanted to put a UIImage over top of a MKMapView and not let the user interact with the image so that when they pan around the map, the image stays put and doesn't interfere with the touches on the map, so

def my_image(st)
  st.user_interaction_enabled = false
end

made sense to me.

@GantMan
Copy link
Member

@GantMan GantMan commented Mar 19, 2015

👍 good call

@squidpunch
Copy link
Contributor

@squidpunch squidpunch commented Mar 19, 2015

👍

GantMan added a commit that referenced this pull request Mar 21, 2015
Allows you to set a UIView's userInteractionEnabled property.
@GantMan GantMan merged commit 82e9cd8 into master Mar 21, 2015
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@GantMan GantMan deleted the user_interaction_enabled branch Mar 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.