Skip to content

Instantly share code, notes, and snippets.

View sergey-makkena's full-sized avatar
🏠
Working from home

Sergey Makkena sergey-makkena

🏠
Working from home
View GitHub Profile
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath
{
return [self heightForBasicCellAtIndexPath:indexPath];
}
- (CGFloat)heightForBasicCellAtIndexPath:(NSIndexPath *)indexPath {
Post *post = self.fetchedResultsController.fetchedObjects[indexPath.section];
if(post.text && post.text.length <= 0){
- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller
{
self.shouldReloadCollectionView = NO;
self.blockOperation = [[NSBlockOperation alloc] init];
}
- (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id<NSFetchedResultsSectionInfo>)sectionInfo
atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type
{
__weak UICollectionView *collectionView = self.collectionView;

2.0.14

Важное:
  • Горизонтальный режим просмотра постов, когда заходишь из плитки (из публичной ленты и из своей)
  • У видео-постов появилась иконка видео в лентах
  • В публичном посте появилась кнопка создать пост вверху справа
  • Экраны Еще-нет-постов добавлены, но еще не переведены и не до конца работают кнопки
  • В промо-постах появились кнопки, они не до конца оформлены: должны исчезать, когда тянешь пост; в ссылку не кодируется информация о пользователе; можно добавить анимацию
Мелкое:
@sergey-makkena
sergey-makkena / Useful tips
Last active August 29, 2015 14:21
Полезные функции iOS/XCode/Objective-C
Задача: Вывод в отладчике расширенных данных по вью
Решение: expr @import UIKit;
---