Coder Social home page Coder Social logo

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;
    }

Add More tab

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

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.

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.