giridharvc7 / VCFloatingActionButton

A Floating Action Button just like Google inbox for iOS
MIT License
296 stars 75 forks source link

Swift doesn't show nothing after tap the floating Action button #21

Closed anibalrodriguez closed 7 years ago

anibalrodriguez commented 8 years ago

this is my code

let floatFrame = CGRectMake(UIScreen.mainScreen().bounds.size.width - 44 - 20, UIScreen.mainScreen().bounds.size.height - 44 - 20, 44, 44);

let buttonFV: VCFloatingActionButton = VCFloatingActionButton(frame: floatFrame, normalImage: UIImage(named: "plus.png"), andPressedImage: UIImage(named: "cross.png"), withScrollview: self.socialTable)

buttonFV.imageArray = ["fb-icon.png","fb-icon.png","fb-icon.png"]

buttonFV.delegate = self
buttonFV.hideWhileScrolling = true

self.view.addSubview(buttonFV)
anibalrodriguez commented 8 years ago

the problem was apparently that I was missing the NavigationController.

giridharvc7 commented 8 years ago

Is it fixed now?

anibalrodriguez commented 8 years ago

Yes. the problem was the the navigation bar.

Thank you.

PD: I got another issue, the second view moves up when I tapped the float button. was ignoring the status bar and navbar heigh , I solved but that was another issue though. (I'm working with Swift)