Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
blommegard committed Oct 7, 2015
1 parent a910421 commit d92c10b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Beautiful flag icons for usage in apps and on the web.

## iOS

### Without dependency management
1. Add ```FlagKit.xcassets``` to your target.
2. Get an icon for your locale:
```swift
Expand All @@ -12,6 +12,18 @@ UIImage(named: NSLocale.autoupdatingCurrentLocale().objectForKey(NSLocaleCountry
```objc
[UIImage imageNamed:[[NSLocale autoupdatingCurrentLocale] objectForKey:NSLocaleCountryCode]];
```
### [Carthage](https://github.com/Carthage/Carthage)
1. Add FlagKit to your `Cartfile`:
```
github "madebybowtie/FlagKit"
```
2.
```swift
UIImage(flagImageWithCountryCode: NSLocale.autoupdatingCurrentLocale().objectForKey(NSLocaleCountryCode) as! String)
```
```objc
[UIImage flagImageWithCountryCode:[[NSLocale autoupdatingCurrentLocale] objectForKey:NSLocaleCountryCode]];
```
## Sketch
Expand Down

0 comments on commit d92c10b

Please sign in to comment.