Class: Sharemotion::SHMTwitterComposerView
- Inherits:
-
TWTweetComposeViewController
- Object
- TWTweetComposeViewController
- Sharemotion::SHMTwitterComposerView
- Defined in:
- lib/sharemotion/sharers/twitter/shmtwitter_composer_view.rb
Instance Method Summary collapse
Instance Method Details
#display ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/sharemotion/sharers/twitter/shmtwitter_composer_view.rb', line 10 def display self.init self.setInitialText("#{@item[:text]}") self.addURL(NSURL.alloc.initWithString("#{@item[:url]}")) unless @item[:url].nil? self.completionHandler = lambda{|result| handle_tweet_completion(result)} @controller.presentModalViewController(self, animated:true) end |
#initWithItem(item, controller: controller) ⇒ Object
5 6 7 8 |
# File 'lib/sharemotion/sharers/twitter/shmtwitter_composer_view.rb', line 5 def initWithItem(item, controller:controller) @item, @controller = item, controller self end |