Browse files

Modify tutorial main images position

  • Loading branch information...
1 parent 03a11ae commit 6951b29b63da797be72994c5e46a2d1bac6fb2a2 @satococoa committed Feb 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/tutorial_view.rb
View
2 app/tutorial_view.rb
@@ -4,7 +4,7 @@ def initWithFrame(rect)
self.backgroundColor = UIColor.clearColor
main_image = UIImage.imageNamed('tutorial-main.png')
main = UIImageView.alloc.initWithImage(main_image).tap do |iv|
- iv.frame = [[5, 50], [310, 254]]
+ iv.frame = [[5, (self.bounds.size.height - 254)/2], [310, 254]]
iv.contentMode = UIViewContentModeScaleAspectFit
iv.layer.shadowColor = UIColor.blackColor.CGColor
iv.layer.shadowRadius = 3

0 comments on commit 6951b29

Please sign in to comment.