Guest User

Untitled

a guest
Aug 15th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. Application is crashing with different type of Exception
  2. - (void)loadLyricsForSong {
  3. NSMutableArray *arrayOfLyrics = [[NSMutableArray alloc] initWithArray:[song.songLyrics allObjects]];
  4. NSSortDescriptor *nameDescriptor = [[NSSortDescriptor alloc]initWithKey:@"startTime" ascending:YES];//name wise sorting in asecending order
  5.  
  6. NSArray *sortDescriptors = [[NSArray alloc]initWithObjects:nameDescriptor,nil];
  7. [arrayOfLyrics sortUsingDescriptors:sortDescriptors];
  8.  
  9.  
  10. [self setLyricsArray:arrayOfLyrics];//setting mutable array with places
  11. [nameDescriptor release];
  12. [sortDescriptors release]; //releasing objects
  13. [arrayOfLyrics release];
  14. [self.tableView reloadData];
  15.  
  16. }
  17.  
  18. > *** -[UITouchData retain]: message sent to deallocated instance 0x5da0860
  19. > *** -[NSConcreteNotification retain]: message sent to deallocated instance 0x5d919b0
  20. > *** -[CFArray retain]: message sent to deallocated instance 0x5b47d30
Add Comment
Please, Sign In to add comment