Skip to content
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

Closed
LiveRock opened this issue Jul 4, 2016 · 9 comments
Closed

Invisible #7

LiveRock opened this issue Jul 4, 2016 · 9 comments

Comments

@LiveRock
Copy link

LiveRock commented Jul 4, 2016

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!

@beryu
Copy link
Owner

beryu commented Jul 4, 2016

I made example project by tabbed application.
Here is Xcode project file (CocoaPods required).

If you can't debug after watching this project file, Please show me your project file?

@LiveRock
Copy link
Author

LiveRock commented Jul 5, 2016

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
Reply-To: beryu/CustomizableActionSheet reply@reply.github.com
Date: Monday, 4 July 2016 at 6:43 PM
To: beryu/CustomizableActionSheet CustomizableActionSheet@noreply.github.com
Cc: Peter Lum peter@hotsource.net, Author author@noreply.github.com
Subject: Re: [beryu/CustomizableActionSheet] Invisible (#7)

I made example project by tabbed application.
Here is Xcode project file (CocoaPods required).

If you can't debug after watching this project file, Please show me your project file?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@LiveRock
Copy link
Author

LiveRock commented Jul 5, 2016

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
Reply-To: beryu/CustomizableActionSheet reply@reply.github.com
Date: Monday, 4 July 2016 at 6:43 PM
To: beryu/CustomizableActionSheet CustomizableActionSheet@noreply.github.com
Cc: Peter Lum peter@hotsource.net, Author author@noreply.github.com
Subject: Re: [beryu/CustomizableActionSheet] Invisible (#7)

I made example project by tabbed application.
Here is Xcode project file (CocoaPods required).

If you can't debug after watching this project file, Please show me your project file?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@beryu
Copy link
Owner

beryu commented Jul 5, 2016

Did you fill this field (below's screenshot) on your ProfilePicView.xib ?
I tried to be empty this field on my xcode project, and I get action sheet with cancel button only(maybe same result with yours).
screenshot

@LiveRock
Copy link
Author

LiveRock commented Jul 5, 2016

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
Reply-To: beryu/CustomizableActionSheet reply@reply.github.com
Date: Tuesday, 5 July 2016 at 1:08 PM
To: beryu/CustomizableActionSheet CustomizableActionSheet@noreply.github.com
Cc: Peter Lum peter@hotsource.net, Author author@noreply.github.com
Subject: Re: [beryu/CustomizableActionSheet] Invisible (#7)

Did you fill this field (below's screenshot) on your ProfilePicView.xib ?
I tried to be empty this field on my xcode project, and I get action sheet with cancel button only(maybe same result with yours).


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@LiveRock
Copy link
Author

LiveRock commented Jul 5, 2016

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
Reply-To: beryu/CustomizableActionSheet reply@reply.github.com
Date: Tuesday, 5 July 2016 at 1:08 PM
To: beryu/CustomizableActionSheet CustomizableActionSheet@noreply.github.com
Cc: Peter Lum peter@hotsource.net, Author author@noreply.github.com
Subject: Re: [beryu/CustomizableActionSheet] Invisible (#7)

Did you fill this field (below's screenshot) on your ProfilePicView.xib ?
I tried to be empty this field on my xcode project, and I get action sheet with cancel button only(maybe same result with yours).


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@Amalous
Copy link

Amalous commented Mar 15, 2017

I am also getting this issue. It happens only on modal view controllers. Any idea how to fix this? Thanks in advance!

@beryu
Copy link
Owner

beryu commented Mar 16, 2017

Hi Sulama

It maybe solve with specifying modal view controller's view to CustomizableActionSheet#showInView() .

If you can't solve this issue, Could you show me your Xcode project?
(I hope you to upload simple Xcode project with zip format)

@beryu
Copy link
Owner

beryu commented Jul 6, 2017

Many time passed from the last comment.
So, I just close this.

@beryu beryu closed this as completed Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants