[SOLVED] Not able to make a successful POST request

Issue I am trying to make a post request, but overtime I am getting error (coded in HTML). Here’s my code: if([mode isEqualToString:@"online"]) { NSString *URL = [NSString stringWithFormat:@"http://130.1.5.183:9999/visit-reporting/content/visitreportservice/getCoverInfo"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:URL]]; request.HTTPMethod = @"POST"; [request setValue:@"application/json"

Continue reading

[SOLVED] Allow A Header View for Only Certain Sections Using an iOS UICollectionView

Issue The code below displays my header view correctly, but for each of the sections in the UICollectionView: -(UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath { UICollectionReusableView * headerView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@”SectionHeaderCollectionReusableView” forIndexPath:indexPath]; switch (indexPath.section) { case Section_One: return

Continue reading

[SOLVED] Check play state of AVPlayer

Issue Is there a way to know whether an AVPlayer playback has stalled or reached the end? Solution To get notification for reaching the end of an item (via Apple): [[NSNotificationCenter defaultCenter] addObserver:<self> selector:@selector(<#The selector name#>) name:AVPlayerItemDidPlayToEndTimeNotification object:<#A player item#>];

Continue reading