Code Monkey home page Code Monkey logo

jgmediapicker's Introduction

A demo of how to use this library can be found at https://github.com/jaminguy/JGMediaPickerDemo

License Copyright (c) 2011 Jamin Guy

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

jgmediapicker's People

Contributors

ihowson avatar jaminguy avatar ka2n avatar mabundo avatar sidneys avatar simontoens 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jgmediapicker's Issues

Some tracks with no meta data for track number come up as 0

If the track number is 0, I use the row index. I thing Apple does it too.

  • (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
    static NSString *CellIdentifier = @"AlbumTrackCell";
    JGAlbumTrackTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
    [[NSBundle mainBundle] loadNibNamed:@"JGAlbumTrackTableViewCell" owner:self options:nil];
    cell = self.albumTrackTableViewCell;
    self.albumTrackTableViewCell = nil;
    }

    MPMediaItem *mediaItem = [[[self albumCollection] items] objectAtIndex:indexPath.row];
    NSNumber * trackNumber = [mediaItem trackNumber];
    if(!trackNumber || ![trackNumber intValue])
    trackNumber = [NSNumber numberWithInt:indexPath.row+1];
    cell.trackNumberLabel.text = [NSString stringWithFormat:@"%d",[trackNumber intValue]];
    cell.trackNameLabel.text = [mediaItem title];
    cell.trackLengthLabel.text = [mediaItem trackLengthString];

    //make odd rows gray
    cell.backgroundView.backgroundColor = indexPath.row % 2 != 0 ? kGrayBackgroundColor : [UIColor whiteColor];

    return cell;
    }

Incompatible with standard MPMediaPickerController?

It's weird, but if you include this library into a project, then in a viewcontroller, call the Apple MPMediaPickerController, pressing the albums tab in the standard MPMediaPickerController will cause a crash.

This happens even if in the viewcontroller code, no JGMediaPicker controller header or code is included. It seems that just including the source and resources will cause a problem with Apple's MPMediaPickerController.

tab icons messed up in iOS7

Hi,

I tried to run the JGMediaPicker demo on iOS7 and it seems that the tab icons are somehow messed up when the tab bar is shown for the first time.

img_0044

When clicking a tab bar item, said icon will "jump" into the right position and after successive clicking of all icons the tab bar will look fine:

img_0046

Any idea what is causing this?
I tried fixing this but miserably failed so far. The most promising explanation I found on the web is http://stackoverflow.com/questions/19819587/misaligned-bottom-tab-icons-ios7 but also this didn't fix the issue.

Any help would be much appreciated.

Best regards,
Marcel

Show only songs on device

Is there a way to only show songs that are one the device? Right now it shows everything in the iCloud library I believe.

Add More tab

A 5th tab displaying More should be added similar to the Music app.

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.