• Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    Objective-C
  • Created over 13 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A UIWindow that can be used to zoom in a specific UIView and displays it fullscreen

Read Me

This class provides a simple way to zoom a specific UIView and display it fullscreen, upon a defined action of the user (uses UIGestureRecognizer to detect actions). If the user performs the action on the specified UIView the view gets zoomed in animated and is displayed fullscreen, with a black background. If the user performs the same gesture again, the UIView gets zoomed back out and everything is like it was before.

This is a simple way that feels lighter to the user then pushing an own UIViewController just for displaying something in fullscreen.

Usage

You can use MTZoomWindow like this:

// specify size of the UIView when it is zoomed in
viewToZoom.zoomedSize = CGSizeMake(300,460);
viewToZoom.zoomedAutoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
viewToZoom.wrapInScrollviewWhenZoomed = YES;

// find this awesome shortcut for UITapGestureRecognizer in @zwaldowski's BlocksKit
[viewToZoom whenTapped:^{
    [viewToZoom zoomIn];
}];

Adding MTZoomWindow to your project

  1. Just copy over the files MTZoomWindow.h, MTZoomWindow.m, UIView+MTZoom.h, UIView+MTZoom.m and MTZoomWindowDelegate.h to your project.
  2. import "MTZoomWindow.h" everywhere where you want to use it
  3. There is no step 3 :)

Known Issues

When your App supports landscape orientation you have to create MTZoomWindow in your AppDelegate:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // ...
    // create ZoomWindow to listen for orientation changes
    [MTZoomWindow sharedWindow];

    return YES;
}

Screenshots

MTZoomWindow used on a MKMapView

MTZoomWindow

More Repositories

1

MTStatusBarOverlay

A custom iOS status bar overlay seen in Apps like Reeder, Evernote and Google Mobile App
Objective-C
1,922
star
2

MTDActionSheet

A customizable popover-based UIActionSheet replacement for the iPhone & iPad
Objective-C
489
star
3

MTLocation

A Framework to add convenience-stuff for easier coping with CoreLocation/MapKit on iOS. It includes a custom UIBarButtonItem mimicing the Locate-Me-Button of the built-in Google Maps App
Objective-C
340
star
4

MTDirectionsKit

Show directions directly on top of MKMapView
Objective-C
199
star
5

MTDURLPreview

Delight your users with simple URL previews for your iOS app
Objective-C
122
star
6

MTDirectionsKitDemo

Demo App demonstrating the use of MTDirectionsKit (mtdirectionsk.it)
Objective-C
98
star
7

MTSlideViewController

Just another take on Facebook's and Path's sliding navigation concept for iPhone
Objective-C
55
star
8

PageScrollView

A generic View that mimics Apple's homescreen-paging that supports both iPhone & iPad and rotation
Objective-C
41
star
9

MTInfoPanel

A clone of TweetBot's Notifications
Objective-C
27
star
10

AppleScripts

Some useful standalone Applescripts
AppleScript
24
star
11

Less-2-Do

ASE 06 Projekt - iPhone Todo App
Objective-C
20
star
12

LaunchBar-Actions

Some useful Applescripts for use as a LaunchBar (Quicksilver with slightly modifications) - Action
16
star
13

MTDLazyProperty

ObjC runtime playground: implementing memoized lazy evaluating properties with blocks
Objective-C
16
star
14

iOSAppTemplate

App Template for iOS using iOSKit and FoundationKit
Objective-C
12
star
15

MTHTTPFetcher

A Git-Clone of Matt Gallaghers' HTTP, XML and JSON Fetcher using JSONKit
Objective-C
10
star
16

TBXML-Encoded

A Fork of the lightweight TBXML Parser that directly parses encoded XML
Objective-C
9
star
17

Ghost-Runner

Prototype of an GPS Tracking System for Android
Java
6
star
18

AQGridViewAnimationSample

There's an animation-error, when rotating. Logic error or Bug in AQGridView?
Objective-C
5
star
19

TU-SS11-PROGSPR-UE2-HASKELL

Haskell Project for Vienna University of Technology
Haskell
3
star
20

XML-Parser

A sample XML Parser written in PostScript for University
Python
3
star
21

TU-SS11-HCI-LASTFM-SAMPLE

Objective-C
1
star
22

TU-WS12-MSWP

Vienna University of Technology - Management of Software Projects Group 12
1
star
23

MNCLogging

Simple Objective-C logging
Objective-C
1
star
24

Commander

A simple example of using Event Sourcing (https://martinfowler.com/eaaDev/EventSourcing.html)
Swift
1
star