Skip to content

Commit

Permalink
Merge pull request #15 from michael-erasmus/uiactivityindicator-facto…
Browse files Browse the repository at this point in the history
…ries

factories for uiactivityindicatorview
  • Loading branch information
colinta committed Oct 19, 2012
2 parents 4c51385 + 4892e25 commit 926a6e8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -447,6 +447,16 @@ control.segmentedControlStyle = :bar.uisegmentedstyle
# =>

UISegmentedControl.bar(["one", "ah-two-whoo", "thr-r-r-ree"])
```

###### UIActivityViewIndicator

```ruby
UIActivityIndicatorView.alloc.initWithActivityIndicatorStyle(:white.uiactivityindicatorstyle)

# =>

UIActivityIndicatorView.white
```

UIControl
Expand Down
16 changes: 16 additions & 0 deletions lib/sugarcube/uiactivityindicator.rb
@@ -0,0 +1,16 @@
class UIActivityIndicatorView
class << self

def large
UIActivityIndicatorView.alloc.initWithActivityIndicatorStyle(:large.uiactivityindicatorstyle)
end

def white
UIActivityIndicatorView.alloc.initWithActivityIndicatorStyle(:white.uiactivityindicatorstyle)
end

def gray
UIActivityIndicatorView.alloc.initWithActivityIndicatorStyle(:gray.uiactivityindicatorstyle)
end
end
end

0 comments on commit 926a6e8

Please sign in to comment.