Coder Social home page Coder Social logo

shgalleryview's Introduction

SHGalleryView

This is a Page View Controller based Gallery for Images and Videos which you can use to showcase your media items. Images support zoom/pinch and you can play videos in the same window with custom theme for video controls.

Build Status Pod Version License

##Changelog

###0.0.9 (March 17, 2015)

Changes:

  • done some refactoring and moved all the view code inside SHGalleryView from SHGalleryViewController. Now you can just use the SHGalleryView class to show gallery view.
  • SHGalleryViewController is still there for backward compatibility and to show the Gallery modally.

###0.0.8 (Feb 28, 2015)

Features:

  • Added support for portrait orientations. now the gallery will work with any device orientation.
  • Added background color property in SHGalleryViewTheme
  • Updated the example to show how to added SHGalleryViewController as embedded view.
  • Added UIPageControl support (now you can either show item captions or page control)
  • Added support for disabling pinch/zoom on Images in gallery.

Changes:

  • Fixed implict warnings for NSInteger.
  • renamed SHMediaControlTheme to SHGalleryViewTheme (code breaking change, please update your code)
  • caption title and time label theme properties are now deprecated. new properties have been added for NSAttributedString support.
  • the library is properly documented now for public interfaces. plesae check the docs at : http://cocoadocs.org/docsets/SHGalleryView/
  • Example code has been updated.

////////////////////////////////

##SHGalleryView

  • Video in Gallery image-1

  • Video Paused in Gallery image-2

  • Image in Gallery image-3

##Contact Me

Shan Ul Haq (http://grevolution.me)

##License

SHGalleryView is available under the MIT license. See the LICENSE file for more info.

shgalleryview's People

Contributors

grevolution avatar sonng avatar ts-son 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

Watchers

 avatar  avatar  avatar  avatar  avatar

shgalleryview's Issues

Not supported frameworks

I tried to use with swift as framework

platform :ios, '8.0'
use_frameworks!

pod 'SHGalleryView'

Crash here
SHGalleryView.m
_mediaControlView = (SHMediaControlView *)[SHUtil viewFromNib:@"SHMediaControlView" bundle:nil];

  • (UIView *)viewFromNib:(NSString *)nibName bundle:(NSBundle *)bundle {
    if (!nibName || [nibName length] == 0) {
    return nil;
    }

    UIView *view = nil;

    if (!bundle) {
    bundle = [NSBundle mainBundle];//!!!!! nib placed in SHGalleryView.framework
    }

    // I assume, that there is only one root view in interface file
    NSArray *loadedObjects = [bundle loadNibNamed:nibName owner:nil options:nil];
    view = [loadedObjects lastObject];

    return view;
    }

Loading ActivitySpinner

@grevolution , So far after lots of trying, no loading activity spinner is showing at all even for remote resource url. Would it be possible to give any example?

I also tried turning off all instances of [self toggleLoading:NO]; in SHVideoMediaItemViewController.m just to see whether it shows itself at all, but no luck. After spending a good amount of time in debugging it really seems an SDK issue. Please comment.

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.