Posts

Post not yet marked as solved
1 Replies
1k Views
After iOS 15 Beta 5(19A5318f) distribute,we find a new Crash (only based on Beta 5(19A5318f)) disappear. 0 libobjc.A.dylib objc_release + 16 1 Foundation -[_NSThreadPerformInfo dealloc] + 48 2 Foundation __NSThreadPerform + 160 3 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 4 CoreFoundation __CFRunLoopDoSource0 + 208 5 CoreFoundation __CFRunLoopDoSources0 + 268 6 CoreFoundation __CFRunLoopRun + 820 7 CoreFoundation CFRunLoopRunSpecific + 600 8 Foundation -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 9 Foundation -[NSRunLoop(NSRunLoop) run] + 92 10 ********* +[*****Socket startRunloop] (*****Socket.m:411) 11 Foundation __NSThread__start__ + 764 12 libsystem_pthread.dylib _pthread_start + 148 The (*****Socket.m:411) code is: [[NSRunLoop currentRunLoop] addPort:[NSPort port] forMode:NSDefaultRunLoopMode]; [[NSRunLoop currentRunLoop] run]; //411 } We have no idea how to fix it.
Posted
by JasonXu.
Last updated
.
Post not yet marked as solved
6 Replies
2.1k Views
Hi all,When I use '[collectionView dequeueReusableCellWithReuseIdentifier:@"UICollectionViewCell" forIndexPath:indexPath]' in fuction:'- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath',I find item with the same indexPath by 'dequeueReusableCellWithReuseIdentifier' is not the same item from last reloadData.For example, when UICollectionView reloadData,the item for indexPath 0-0 by 'dequeueReusableCellWithReuseIdentifier' will return the item which is the indexPath 0-4 at last reloadData.I test many times and find that if UICollectionView have many items with same reuseIdentifier, the function 'dequeueReusableCellWithReuseIdentifier:forIndexPath:' will return the item after UICollectionView reloadData in these items with same reuseIdentifier randomly.It seems different between UICollectionView and UITableView.UITableView will return the same indexPath cell after reloadData when dequeue cell.Can you tell me how to reload the same item for UICollectionView?Thanks,Jason Xu
Posted
by JasonXu.
Last updated
.