From ab41e0a3dad97f7c0960446bb7a7150b4dec862a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 17 Dec 2013 11:12:14 +0400 Subject: fix layout and version bump --- Juick.xcodeproj/project.pbxproj | 4 ++-- Juick/Juick-Info.plist | 12 ++++++------ Juick/MessagesViewController.m | 6 ++++++ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Juick.xcodeproj/project.pbxproj b/Juick.xcodeproj/project.pbxproj index 58a5eaf..e1e4b3a 100644 --- a/Juick.xcodeproj/project.pbxproj +++ b/Juick.xcodeproj/project.pbxproj @@ -499,7 +499,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Juick/Juick-Prefix.pch"; INFOPLIST_FILE = "Juick/Juick-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = app; @@ -520,7 +520,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Juick/Juick-Prefix.pch"; INFOPLIST_FILE = "Juick/Juick-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = app; diff --git a/Juick/Juick-Info.plist b/Juick/Juick-Info.plist index e6c1615..3776ab8 100644 --- a/Juick/Juick-Info.plist +++ b/Juick/Juick-Info.plist @@ -2,14 +2,10 @@ - UIPrerenderedIcon - CFBundleDevelopmentRegion en CFBundleDisplayName ${PRODUCT_NAME} - LSApplicationCategoryType - public.app-category.social-networking CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier @@ -21,13 +17,17 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0 + 1.0.1 CFBundleSignature ???? CFBundleVersion - 1.0 + 1.0.1 + LSApplicationCategoryType + public.app-category.social-networking LSRequiresIPhoneOS + UIPrerenderedIcon + UIRequiredDeviceCapabilities armv7 diff --git a/Juick/MessagesViewController.m b/Juick/MessagesViewController.m index 92d4183..4361148 100644 --- a/Juick/MessagesViewController.m +++ b/Juick/MessagesViewController.m @@ -147,6 +147,12 @@ static NSString *CellIdentifier = @"MessageCell"; Message *msg = [_messages objectAtIndex:indexPath.row]; [cell bind:msg]; [cell setNeedsUpdateConstraints]; + [cell updateConstraintsIfNeeded]; + [cell.contentView setNeedsLayout]; + [cell.contentView layoutIfNeeded]; + + cell.bodyLabel.preferredMaxLayoutWidth = CGRectGetWidth(cell.bodyLabel.frame); + [cell.contentView layoutIfNeeded]; return cell; } -- cgit v1.2.3