Motion-JPEG-Image-View-for-iOS icon indicating copy to clipboard operation
Motion-JPEG-Image-View-for-iOS copied to clipboard

Loading even after closed the UITableViewController

Open Thamizhan opened this issue 11 years ago • 1 comments

Hi, I have used the MotionJPEGImageView inside the UITableViewCell to use in UITableView,

After I close the UITableViewController, the images are still loading. how to overcome this Issues

Here is the Code I used for cellForItemAtIndexPath

UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
ZmCamera *curCam = [self.server.cameras objectAtIndex:indexPath.row];
MotionJpegImageView *mjpegView = (MotionJpegImageView *)[cell viewWithTag:44];
mjpegView.contentMode = UIViewContentModeScaleToFill;
UILabel *label = (UILabel *)[cell viewWithTag:88];
[mjpegView stop];
mjpegView.url = [self buildLiveViewURLwithCameraId:curCam.Id];
[mjpegView play];
label.text = [NSString stringWithFormat:@"%@", curCam.name];
mjpegView.layer.borderColor = [UIColor blueColor].CGColor;
mjpegView.layer.borderWidth = (indexPath.row == self.position) ? 2.0 : 0;

return cell;

Thamizhan avatar Dec 26 '14 07:12 Thamizhan

I have same problem problem

syky27 avatar May 20 '15 16:05 syky27