Mykola Vyshynskyi
Mykola Vyshynskyi
may be this will be better solution ``` objc CGRect intersectionFrame = CGRectIntersection(self.currentView.frame, theFrame); if (intersectionFrame.size.height > theFrame.size.height/2 && intersectionFrame.size.width > theFrame.size.width/2) { [self dropCurrentItemOnIndexPath:newIndePath]; } else { [self moveCurrentItemToIndexPath:newIndePath];...
add optional method to LXReorderableCollectionViewDataSource ``` objc - (void)collectionView:(UICollectionView *)collectionView moveItemAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath; ``` check if animation finished, perform moving in performBatchUpdates ``` objc if ([self.dataSource respondsToSelector:@selector(collectionView:itemAtIndexPath:willMoveToIndexPath:)]) { [self.dataSource...
viewWillAppear: viewDidAppear: viewWillDisappear: viewDidDisappear: not called for popupViewController
I'm using old way for tracking changes (addTarget:action:forControlEvents:) ``` objc - (void)setSelectedSegmentIndex:(NSUInteger)index animated:(BOOL)animated { _selectedSegmentIndex = index; if(self.superview) { [self sendActionsForControlEvents:UIControlEventValueChanged]; ``` sendActionsForControlEvents called even if selected segment not changed
should be fixed with ``` objc for (id object in self) { id newObject = block(object); if (newObject) [array addObject:newObject]; } ```
does it support UIViewController property hidesBottomBarWhenPushed?