Application crashed while importing songs from Ipod library in iPhone for iOs 5.0

后端 未结 2 1261
粉色の甜心
粉色の甜心 2020-11-28 10:34

Hello i am using below framworks,

#import 
#import 
#import 

        
相关标签:
2条回答
  • 2020-11-28 10:42

    I have solved this issues,

    just comment out this line

     fileName = [[fileName stringByAppendingString:@"-"] stringByAppendingString:[item valueForProperty:MPMediaItemPropertyArtist]];
    

    because for some songs there is null artist so it's crash...................

    0 讨论(0)
  • 2020-11-28 10:50

    This is because you are using some songs has artist name while some with blank artist name, so you are trying to append blank name in string that's why app going to crash.

    Hope you unserstand what i say...

    0 讨论(0)
提交回复
热议问题