Long text cell bugfix

This commit is contained in:
Roman Efimov
2013-04-11 23:19:29 -05:00
parent dd2278bb60
commit f4e159ec3f
6 changed files with 891 additions and 974 deletions

View File

@@ -39,7 +39,7 @@
_textView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_textView.backgroundColor = [UIColor clearColor];
_textView.delegate = self;
[self.contentView addSubview:_textView];
[self addSubview:_textView];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
@@ -54,7 +54,6 @@
{
[super cellWillAppear];
_textView.frame = CGRectMake(self.contentView.frame.origin.x + 2, self.contentView.frame.origin.y + 2, self.contentView.frame.size.width - 4, self.contentView.frame.size.height - 4);
_textView.text = self.item.value;
_textView.placeholder = self.item.placeholder;
_textView.placeholderColor = self.item.placeholderColor;
@@ -77,8 +76,15 @@
- (void)layoutSubviews
{
[super layoutSubviews];
CGFloat cellOffset = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ? 20 : 60;
CGRect frame = CGRectMake(0, self.tableViewManager.style.textFieldPositionOffset.height, 0, self.frame.size.height - self.tableViewManager.style.textFieldPositionOffset.height);
frame.origin.x = cellOffset + self.tableViewManager.style.textFieldPositionOffset.width - 8;
frame.size.width = self.frame.size.width - frame.origin.x - cellOffset + 8;
_textView.frame = frame;
}
#pragma mark -
#pragma mark UITextView delegate

View File

@@ -1,15 +1,17 @@
PODS:
- REFormattedNumberField (1.0.3)
- SDWebImage (3.2):
- SDWebImage/MapKit
- SDWebImage/MapKit (3.2)
- REFormattedNumberField (1.0.3)
- SDWebImage (3.2):
- SDWebImage/MapKit (= 3.2)
- SDWebImage/MapKit (3.2)
DEPENDENCIES:
- REFormattedNumberField (~> 1.0.3)
- SDWebImage
- REFormattedNumberField (~> 1.0.3)
- SDWebImage (~> 3.2)
SPEC CHECKSUMS:
REFormattedNumberField: 8aabb3be9ce2dd53aafd8f4783cf43413ad288ef
SDWebImage: 8082fe8d658ccafaaecd9e5ecda12ed01f09ba9c
SDWebImage/MapKit: 8082fe8d658ccafaaecd9e5ecda12ed01f09ba9c
COCOAPODS: 0.17.2
COCOAPODS: 0.16.4

View File

@@ -1,7 +1,3 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "Pods-header.h"

View File

@@ -4,12 +4,12 @@ install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
;;
*.xib)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
;;
*.framework)
echo "rsync -rp ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"

File diff suppressed because it is too large Load Diff

View File

@@ -46,6 +46,7 @@
[weakSelf.tableView deselectRowAtIndexPath:item.indexPath animated:YES];
[weakSelf.navigationController pushViewController:[[ListViewController alloc] initWithStyle:UITableViewStylePlain] animated:YES];
}]];
}
@end