bfeher / BFPaperButton

iOS Buttons inspired by Google's Paper Material Design.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use it with Storyboard?

terminatorlkf opened this issue · comments

commented

it really confused me that I don't know how to create a BFPaperButton using storyboard

Hi @terminatorlkf !

Thank you for using this control :]
Below is a quick guide to getting started using BFPaperButton with Storyboards:

1) Drag and drop a UIButton onto a the Storyboard and change it's class to BFPaperButton:
1

2) Change the button type to Custom (optional, but recommended):
2

3.a) Import
<UIColor+BFPaperColors/UIColor+BFPaperColors.h>
and "BFPaperButton.h" // or <BFPaperButton/BFPaperButton.h>.
3.b) Drag and drop an IBOutlet into your ViewController for the button.
3.c) In viewDidLoad (or viewWillAppear, etc.) customize your BFPaperButton!
3

Result:
4

Let me know if you have anymore questions. Thanks!

commented

thanks!I sincerely appreciate your help

发自我的 iPhone

在 2016年3月23日,上午8:54,Bence Feher notifications@github.com 写道:

Hi @terminatorlkf !

Thank you for using this control :]
Below is a quick guide to getting started using BFPaperButton with Storyboards:

  1. Drag and drop a UIButton onto a the Storyboard and change it's class to BFPaperButton:

  2. Change the button type to Custom (optional, but recommended):

3.a) Import
<UIColor+BFPaperColors/UIColor+BFPaperColors.h>
and "BFPaperButton.h" // or <BFPaperButton/BFPaperButton.h>.
3.b) Drag and drop an IBOutlet into your ViewController for the button.
3.c) In viewDidLoad (or viewWillAppear, etc.) customize your BFPaperButton!

Result:

Let me know if you have anymore questions. Thanks!


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub