Permalink
Browse files

Remove jump to twitter function #29

  • Loading branch information...
satococoa committed Feb 9, 2013
1 parent d6fb07c commit 0fd0508f09514dcd4d03d409dc817a53ae38cb3a
View
@@ -8,14 +8,13 @@ def viewDidLoad
navigationItem.title = 'RubyFriends'
camera_button = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemCamera, target:self, action:'camera_tapped')
navigationItem.rightBarButtonItem = camera_button
- open_twitter_button = UIBarButtonItem.alloc.initWithImage(UIImage.imageNamed('icon-twitter.png'), style:UIBarButtonItemStyleBordered, target:self, action:'open_twitter')
open_rubyfriends_button = UIBarButtonItem.alloc.initWithImage(UIImage.imageNamed('icon-ruby.png'), style:UIBarButtonItemStyleBordered, target:self, action:'open_rubyfriends')
spacer = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemFlexibleSpace, target:nil, action:nil)
info = UIButton.buttonWithType(UIButtonTypeInfoLight).tap do |b|
b.addTarget(self, action:'open_info', forControlEvents:UIControlEventTouchUpInside)
end
info_button = UIBarButtonItem.alloc.initWithCustomView(info)
- self.toolbarItems = [open_twitter_button, open_rubyfriends_button, spacer, info_button]
+ self.toolbarItems = [open_rubyfriends_button, spacer, info_button]
collectionView.styleId = 'photos'
collectionView.registerClass(FriendCell, forCellWithReuseIdentifier:'friend_cell')
@friends = Friend.find({}, {:sort => {:created_at => :desc}})
@@ -89,10 +88,6 @@ def reload
collectionView.reloadData
end
- def open_twitter
- open_browser('https://mobile.twitter.com/search?q=%23RubyFriends')
- end
-
def open_rubyfriends
open_browser('http://rubyfriends.com')
end
View
Binary file not shown.
Binary file not shown.

0 comments on commit 0fd0508

Please sign in to comment.