class TitlePage
Attributes
titleLabel[RW]
Public Instance Methods
initWithFrame(frame)
click to toggle source
Calls superclass method
# File lib/swipe_title/title_page.rb, line 5 def initWithFrame frame super @titleLabel = UILabel.alloc.initWithFrame(CGRectZero).tap do |l| l.backgroundColor = UIColor.clearColor l.textAlignment = NSTextAlignmentCenter end contentView.addSubview @titleLabel self end
layoutSubviews()
click to toggle source
Calls superclass method
# File lib/swipe_title/title_page.rb, line 17 def layoutSubviews super @titleLabel.frame = [[0, 0], [frame.size.width, frame.size.height]] end