Last active
December 11, 2015 22:18
-
-
Save jamonholmgren/4668372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def banner_view | |
@banner_view ||= begin | |
width = self.view.bounds.size.width | |
image = User.current_user.profile_image_view(67, 35) | |
image.frame = CGRectMake((width/2) - (67/2), 12, 67, 67) | |
BannerView.alloc.init(frame: self.view.frame, title: User.current_user.fullName, remote_image: image) | |
end | |
end |
Author
jamonholmgren
commented
Jan 29, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment