Giter VIP home page Giter VIP logo

btsimplepopup's People

Contributors

balram3429 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

btsimplepopup's Issues

Not compatible with swift 2.0

I could not create the actions array with dispatch_block_t in swift 2.0
The below code works well in Swift1.2, but not in Swift 2.0

    var menuView: btSimplePopUP!
    let imgs = [UIImage(named: "pickImage.png")!,
            UIImage(named: "takePicture.png")!,
            UIImage(named: "pickVideo.png")!,
            UIImage(named: "shootVideo.png")!,
            UIImage(named: "recordAudio.png")!,
            UIImage(named: "quit.png")!] as NSArray

        let titles = ["Images",
            "Capture",
            "Videos",
            "Shoot",
            "Record",
            "Cancel"] as NSArray

        let actions: [dispatch_block_t] = [{self.pickImages()},
            {self.takePicture()},
            {self.pickVideos()},
            {self.shootVideo()},
            {self.recordAudio()},
            {self.closeView()}]

        menuView = btSimplePopUP(itemImage: imgs as [AnyObject],
            andTitles: titles as [AnyObject],
            andActionArray:  actions as NSArray as [AnyObject],
            addToViewController: self)

            self.view.addSubview(menuView)
            menuView.show(BTPopUpAnimation.UPAnimateWithFade)

Is there any way to use btSimplePopUp in Swift 2.0?

UIView blur

Hi and thanks for this cool control.
It seems that there must be a background UIImageView to blur when showing the popup.
I am using just a UIViewController without any UIImageView and i was wondering if there is any work around to blur just the view.
ios simulator screen shot jul 9 2014 17 49 16

Images not displaying in popup

Hello Balram,

I am trying to implement the btSimplePopUp and followed the instructions in the Readme, but the images are not displaying. What am I missing?

Thanks,
George

ios8 iphone6 screen oddity

ios8 on iphone6 seems to have a problem with creating screenshots - it causes a flicker type effect from a difference in resolution somewhere. This happens just before displaying the popup window.

UIImage *screenShot = [sender.view screenshot];

This method seems to work fine:

    CGSize size =  [[UIScreen mainScreen] bounds].size;
    UIGraphicsBeginImageContext(size);
    [[sender.view layer] renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();

This is right before:
UIImage *blurImage = [newImage blurredImageWithRadius:10.5 iterations:2 tintColor:nil];

Hope that helps.

Change animation?

Is there any possibility to change animation? For example: fade in instead of slide up/down

IOS 8 : xCode 6 : Unknown type BOOL Error

On line 14 of simplePopUp.m, I keep getting this error....

 typedef void (^completion)(BOOL success);

any idea what I can do to fix it? I've sourced out your h and m's into a test project. I changed the above line to:

typedef void (^completion)();

and the app compiles and runs without error. Question: Did I break something I don't know about by modifying the block?

Thanx in Advance

Landscape support

Is there a plan for supporting the landscape mode as well ? I can see two behaviors : rotating and scaling the contentView so that it fits the landscape mode, or somehow prevent the rotation of the view (allowing other views of the parent viewController to rotate).

Great stuff by the way !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.