Class: IconView

Inherits:
UILabel
  • Object
show all
Defined in:
lib/project/views/icon_view.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/project/views/icon_view.rb', line 2

def name
  @name
end

Instance Method Details

#initObject



4
5
6
7
8
9
10
11
# File 'lib/project/views/icon_view.rb', line 4

def init
  super.tap do |view|
    view.font            = MotionForm.icon_font
    view.backgroundColor = UIColor.clearColor
    view.textColor       = UIColor.grayColor
    view.textAlignment   = NSTextAlignmentCenter
  end
end