Git Product home page Git Product logo

ilyi1116 / zoompopup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tintenklecks/zoompopup

0.0 2.0 0.0 1.58 MB

An Objective C popup control, that zooms out of the underlaying view. The content can be any view, button, image, ... It zooms out in a smooth way and displays the popup above a darkened or blurred background. Even in OSes below iOS 7 ;-)

License: MIT License

Objective-C 100.00%

zoompopup's Introduction

zoomPopup

A popup That zooms out of the underlaying view. The content can be any view, button, image, ... It zooms out in a smooth way and displays the popup above a darkened or blurred background. Even in OSes below iOS 7 ;-)

In the modern iOS 7 interface the intention of animations is, to clarify the intention and the content. As much as I like the ripple effect ;-) it does´t help the user to understand why and how the content appears.

So one animation you know from the home screen of iOS is, that the app zooms out of the icon. And that´s exactly what the intention of the zoomPopup control is.

It was made in a few hours, so please don´t blame me for the coding. I´ll refactor it as soon as I have time ;-)

The test app is very simple. It creates a dummy tableview and shows it in a popup while the background is dimmed.

UITableView *table = [[UITableView alloc] initWithFrame:CGRectMake(50, 50, 300, 200) style:UITableViewStyleGrouped];
table.dataSource=self;

[zoomPopup initWithMainview:self.view andStartRect:_segmentedControl.frame];
[zoomPopup showPopup:table];

In this first example I used the singleton approach to call the zoomPopup, which is the easiest way.

The sec on example creates a zoomPopup instance and then loads an image and shows it with a blurred background

UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myAn"]];

zoomPopup *popup = [[zoomPopup alloc] initWithMainview:self.view andStartRect:_segmentedControl.frame];
[popup setBlurRadius:10];
[popup showPopup:image];

!(zoomPopupScreenCast.mp4)

Test App Version 1 Step 1 Version 1 Step 2 Version 1 Step 3 Version 2

Authors and Contributors

So, I (@Tintenklecks) had the need, the idea and realized it as it is now ;-)

Thanks to Thomas @tomsoft1, I included the blur effect as well (https://github.com/tomsoft1)

Support or Contact

Having trouble with Pages? Check out the documentation at http://help.github.com/pages or contact [email protected] and we’ll help you sort it out.

zoompopup's People

Contributors

hackmodford avatar tintenklecks avatar

Watchers

 avatar  avatar

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.