New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invisible #7
Comments
I made example project by tabbed application. If you can't debug after watching this project file, Please show me your project file? |
Hi Ryuta I still cannot make it work When I commented out the below: profilePicViewItem.type = .View I get a white action sheet with a cancel button and the cancel button works. But my view does not appear. Your code works. It is something to do with my project but I can’t seem to find out what is wrong. Is there something special about the UIview? Thanks and hope to hear from you soon. Peter From: Ryuta Kibe notifications@github.com I made example project by tabbed application. If you can't debug after watching this project file, Please show me your project file? — |
Dear Ryuta Here is my code section: // Action sheet var items = CustomizableActionSheetItem // Setup custom view if let myProfilePicView = UINib(nibName: "ProfilePicView", bundle: nil).instantiateWithOwner(self, options: nil)[0] as? ProfilePicView {
let bundle = NSBundle.mainBundle() let nib = UINib(nibName: "ProfilePicView", bundle: bundle) //if let myProfilePicView = nib.instantiateWithOwner(self, options: nil)[0] as? ProfilePicView { //var myProfilePicView = ProfilePicViewClass.instanceFromNib() print("Inside nib") myProfilePicView.delegate = self let profilePicViewItem = CustomizableActionSheetItem()
profilePicViewItem.view = myProfilePicView profilePicViewItem.type = .View profilePicViewItem.height = 200 items.append(profilePicViewItem) }
// Setup button let closeItem = CustomizableActionSheetItem() closeItem.type = .Button closeItem.label = "Cancel" closeItem.selectAction = { (actionSheet: CustomizableActionSheet) -> Void in actionSheet.dismiss() } items.append(closeItem)
// Show
if let view = self.tabBarController?.view { let actionSheet = CustomizableActionSheet() actionSheet.showInView(view , items: items) } From: Ryuta Kibe notifications@github.com I made example project by tabbed application. If you can't debug after watching this project file, Please show me your project file? — |
Hi Yes, I did. Thans for getting back to me. I will try other wasy and get back to you. Regards, Peter From: Ryuta Kibe notifications@github.com Did you fill this field (below's screenshot) on your ProfilePicView.xib ? — |
Hi Ryuta I tried to delete my xib and rlated swift file and recreate a new one from scratch. Same results. I wonder what is going on on my side Peter From: Ryuta Kibe notifications@github.com Did you fill this field (below's screenshot) on your ProfilePicView.xib ? — |
I am also getting this issue. It happens only on modal view controllers. Any idea how to fix this? Thanks in advance! |
Hi Sulama It maybe solve with specifying modal view controller's view to If you can't solve this issue, Could you show me your Xcode project? |
Many time passed from the last comment. |
I studied the example and also use the code for tabbar controller but when the actionsheet, it is invisible.
when I comment out the items.append(sampleView), I can see a CANCEL button.
It seem that something is wrong with my sampleview xib but i can figure it out.
HELP!
The text was updated successfully, but these errors were encountered: