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

Projects
None yet
3 participants
@markrickert
Member

markrickert commented Mar 19, 2015

No description provided.

@GantMan

This comment has been minimized.

Show comment
Hide comment
@GantMan

GantMan Mar 19, 2015

Member

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.

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

This comment has been minimized.

Show comment
Hide comment
@markrickert

markrickert Mar 19, 2015

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@GantMan

GantMan Mar 19, 2015

Member

👍 good call

Member

GantMan commented Mar 19, 2015

👍 good call

@squidpunch

This comment has been minimized.

Show comment
Hide comment
@squidpunch

squidpunch Mar 19, 2015

Contributor

👍

Contributor

squidpunch commented Mar 19, 2015

👍

GantMan added a commit that referenced this pull request Mar 21, 2015

Merge pull request #222 from infinitered/user_interaction_enabled
Allows you to set a UIView's userInteractionEnabled property.

@GantMan GantMan merged commit 82e9cd8 into master Mar 21, 2015

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