Skip to content

Instantly share code, notes, and snippets.

@czarneckid
Created December 5, 2013 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save czarneckid/7814740 to your computer and use it in GitHub Desktop.
Save czarneckid/7814740 to your computer and use it in GitHub Desktop.
UITextView and horizontal scrolling?
class SampleController < UIViewController
def viewDidLoad
super
self.view.backgroundColor = UIColor.whiteColor
@text_view = UITextView.alloc.initWithFrame(UIScreen.mainScreen.applicationFrame)
@text_view.text = sample_text
@text_view.editable = false
@text_view.showsHorizontalScrollIndicator = true
@text_view.showsVerticalScrollIndicator = true
@text_view.scrollEnabled = true
self.view.addSubview(@text_view)
end
def sample_text
<<EOS
RubyMotion offers developers the expressiveness of Ruby with no compromises. It's hard to imagine a more appealing way to build native iOS applications.
This is AWESOME! With just minimal iOS experience, I was able to get a working app up and running on my phone. Oh, the feeling of power!
RubyMotion is a dream come true for Rubyists who want to create fast, native iOS apps!
Now you can develop in your favorite language on your favorite mobile platform. Done right. For real. What are you waiting for?
With RubyMotion, we can now leverage our Ruby expertise to solve problems in the mobile space. Developing for iOS will never be the same again.
After years of iOS work, RubyMotion seems like a thousand kittens playing the piano while sliding down a double-rainbow.
RubyMotion offers developers the expressiveness of Ruby with no compromises. It's hard to imagine a more appealing way to build native iOS applications.
This is AWESOME! With just minimal iOS experience, I was able to get a working app up and running on my phone. Oh, the feeling of power!
RubyMotion is a dream come true for Rubyists who want to create fast, native iOS apps!
Now you can develop in your favorite language on your favorite mobile platform. Done right. For real. What are you waiting for?
With RubyMotion, we can now leverage our Ruby expertise to solve problems in the mobile space. Developing for iOS will never be the same again.
After years of iOS work, RubyMotion seems like a thousand kittens playing the piano while sliding down a double-rainbow.
RubyMotion offers developers the expressiveness of Ruby with no compromises. It's hard to imagine a more appealing way to build native iOS applications.
This is AWESOME! With just minimal iOS experience, I was able to get a working app up and running on my phone. Oh, the feeling of power!
RubyMotion is a dream come true for Rubyists who want to create fast, native iOS apps!
Now you can develop in your favorite language on your favorite mobile platform. Done right. For real. What are you waiting for?
With RubyMotion, we can now leverage our Ruby expertise to solve problems in the mobile space. Developing for iOS will never be the same again.
After years of iOS work, RubyMotion seems like a thousand kittens playing the piano while sliding down a double-rainbow.
RubyMotion offers developers the expressiveness of Ruby with no compromises. It's hard to imagine a more appealing way to build native iOS applications.
This is AWESOME! With just minimal iOS experience, I was able to get a working app up and running on my phone. Oh, the feeling of power!
RubyMotion is a dream come true for Rubyists who want to create fast, native iOS apps!
Now you can develop in your favorite language on your favorite mobile platform. Done right. For real. What are you waiting for?
With RubyMotion, we can now leverage our Ruby expertise to solve problems in the mobile space. Developing for iOS will never be the same again.
After years of iOS work, RubyMotion seems like a thousand kittens playing the piano while sliding down a double-rainbow.
RubyMotion offers developers the expressiveness of Ruby with no compromises. It's hard to imagine a more appealing way to build native iOS applications.
This is AWESOME! With just minimal iOS experience, I was able to get a working app up and running on my phone. Oh, the feeling of power!
RubyMotion is a dream come true for Rubyists who want to create fast, native iOS apps!
Now you can develop in your favorite language on your favorite mobile platform. Done right. For real. What are you waiting for?
With RubyMotion, we can now leverage our Ruby expertise to solve problems in the mobile space. Developing for iOS will never be the same again.
After years of iOS work, RubyMotion seems like a thousand kittens playing the piano while sliding down a double-rainbow.
RubyMotion offers developers the expressiveness of Ruby with no compromises. It's hard to imagine a more appealing way to build native iOS applications.
This is AWESOME! With just minimal iOS experience, I was able to get a working app up and running on my phone. Oh, the feeling of power!
RubyMotion is a dream come true for Rubyists who want to create fast, native iOS apps!
Now you can develop in your favorite language on your favorite mobile platform. Done right. For real. What are you waiting for?
With RubyMotion, we can now leverage our Ruby expertise to solve problems in the mobile space. Developing for iOS will never be the same again.
After years of iOS work, RubyMotion seems like a thousand kittens playing the piano while sliding down a double-rainbow.
This is the end!
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment