일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Check
- push
- swift
- 아이폰7
- simulator
- Bitcode
- LG유플러스
- 포켓몬 GO
- 신도림
- 포켓볼
- 얻는법
- loop
- 해몽
- IOS
- swift3
- UIView
- setting
- Example
- error
- 샘플
- 페이백
- 신도림 테크노마트
- 앱스토어
- UITableView
- Xcode
- 보라카이
- afterdelay
- 공략
- 스마트폰
- GCD
- Today
- Total
도래울
ios swift notification banner BRYXBanner 본문
BRYXBanner is a great new library by Harlan Haskins for displaying "dropdown" notifications banners. It has a very straightforward API, while remaining extremely flexible. Let's take a look at some different ways to use it.
Momentarily show a banner. By default banners are dismissed on tap, swipe, or after the duration has elapsed.
let banner = Banner(
title: "New Mission Alert",
subtitle: "New mission added to the schedule.",
image: nil,
backgroundColor: UIColor.lightGrayColor()
)
banner.show(duration: 3.0)
Without a duration, the show function caused the banner to be shown until the user taps it. Here we're passing in a closure that will be executed when the user taps the banner.
let banner = Banner(
title: "Life Form Detected",
subtitle: "An unknown lifeform has been found.",
image: UIImage(named: "alien"),
backgroundColor: UIColor.redColor()
) {
print("banner tapped!")
}
banner.hasShadows = false
banner.show()
Disable image tinting to display all kinds of images.
banner.shouldTintImage = false
Use the provided .textColor
property to change all the colors at once, or use the exposed title and detail labels to completely customize the look of each banner, including font face, size, color, etc.
More info about BRYXBanner can be found at git.io/banner
'개발 > iOS' 카테고리의 다른 글
[iOS] 앱에서 앱 실행시키기 (0) | 2016.08.25 |
---|---|
Swift performSelector: withObject: afterDelay: [duplicate] (0) | 2016.08.22 |
UITableView - scroll to the top (0) | 2016.08.09 |
Comparing NSIndexPath Swift (0) | 2016.08.08 |
IOS customized activity indicator with Swift (0) | 2016.08.05 |