File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2- <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 6751" systemVersion =" 14C109 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" >
2+ <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 6751" systemVersion =" 14C1514 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" >
33 <dependencies >
44 <deployment identifier =" iOS" />
55 <plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 6736" />
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ - (void)viewDidLoad {
4141 self.descTextView .placeholder = @" 填写项目描述..." ;
4242
4343 //
44- self.projectImageView .layer .cornerRadius = 5 ;
44+ self.projectImageView .layer .cornerRadius = 2 ;
4545 self.projectImageView .image = [UIImage imageNamed: @" AppIcon120x120" ];
4646 UITapGestureRecognizer *tapProjectImageViewGR = [[UITapGestureRecognizer alloc ] initWithTarget: self action: @selector (selectProjectImage )];
4747 [self .projectImageView addGestureRecognizer: tapProjectImageViewGR];
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ - (void)viewDidLoad {
4949 self.descTextView .delegate = self;
5050
5151 //
52- self.projectImageView .layer .cornerRadius = 5 ;
52+ self.projectImageView .layer .cornerRadius = 2 ;
5353 [self .projectImageView sd_setImageWithURL: [self .project.icon urlImageWithCodePathResizeToView: self .projectImageView]];
5454 UITapGestureRecognizer *tapProjectImageViewGR = [[UITapGestureRecognizer alloc ] initWithTarget: self action: @selector (selectProjectImage )];
5555 [self .projectImageView addGestureRecognizer: tapProjectImageViewGR];
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ + (CGFloat)imageCollectionViewHeightWithCount:(NSInteger)countNum{
107107 if (countNum <= 0 ) {
108108 return 0 ;
109109 }
110- NSInteger numInOneLine = floorf ((kTaskCommentCell_ContentWidth +10 )/ 43 );
110+ NSInteger numInOneLine = floorf ((kTaskCommentCell_ContentWidth +5 )/( 33 + 5 ) );
111111 NSInteger numOfline = ceilf (countNum/(float )numInOneLine);
112112 return (43 *numOfline);
113113}
@@ -134,7 +134,7 @@ - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectio
134134 return 10 ;
135135}
136136- (CGFloat)collectionView : (UICollectionView *)collectionView layout : (UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex : (NSInteger )section {
137- return 10 / 2 ;
137+ return 5 ;
138138}
139139
140140- (void )collectionView : (UICollectionView *)collectionView didSelectItemAtIndexPath : (NSIndexPath *)indexPath {
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ - (void)setToComment:(ProjectTopic *)toComment{
7878 [_contentLabel setLongString: _toComment.content withFitWidth: curWidth];
7979 curBottomY += [_toComment.content getHeightWithFont: kTopicCommentCell_FontContent constrainedToSize: CGSizeMake (curWidth, CGFLOAT_MAX )] + 5 ;
8080
81-
8281 NSInteger imagesCount = _toComment.htmlMedia .imageItems .count ;
8382 if (imagesCount > 0 ) {
8483 self.imageCollectionView .hidden = NO ;
@@ -110,7 +109,7 @@ + (CGFloat)imageCollectionViewHeightWithCount:(NSInteger)countNum{
110109 return 0 ;
111110 }
112111 CGFloat curWidth = kScreen_Width - 40 - 2 *kPaddingLeftWidth ;
113- NSInteger numInOneLine = floorf ((curWidth +10 )/ 43 );
112+ NSInteger numInOneLine = floorf ((curWidth +5 )/( 33 + 5 ) );
114113 NSInteger numOfline = ceilf (countNum/(float )numInOneLine);
115114 return (43 *numOfline);
116115}
@@ -136,7 +135,7 @@ - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectio
136135 return 10 ;
137136}
138137- (CGFloat)collectionView : (UICollectionView *)collectionView layout : (UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex : (NSInteger )section {
139- return 10 / 2 ;
138+ return 5 ;
140139}
141140
142141- (void )collectionView : (UICollectionView *)collectionView didSelectItemAtIndexPath : (NSIndexPath *)indexPath {
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectio
568568 return kMessageInputView_MediaPadding ;
569569}
570570- (CGFloat)collectionView : (UICollectionView *)collectionView layout : (UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex : (NSInteger )section {
571- return kMessageInputView_MediaPadding / 2 ;
571+ return kMessageInputView_MediaPadding ;
572572}
573573
574574- (void )collectionView : (UICollectionView *)collectionView didSelectItemAtIndexPath : (NSIndexPath *)indexPath {
You can’t perform that action at this time.
0 commit comments