Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
红
红星美凯龙管理在线APP IOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
红星美凯龙管理在线APP IOS
Commits
fff7b6b9
Commit
fff7b6b9
authored
Dec 11, 2015
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图说口碑 列表、详情 逻辑
parent
f8c90bc0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1563 additions
and
231 deletions
+1563
-231
project.pbxproj
redstar.xcodeproj/project.pbxproj
+24
-0
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Contents.json
redstar/Assets.xcassets/AppIcon.appiconset/Contents.json
+61
-56
Url.h
redstar/Classes/Macro/Url.h
+26
-0
PictureCommentTableCell.h
...tion/Picture/PictureDetail/Cell/PictureCommentTableCell.h
+17
-0
PictureCommentTableCell.m
...tion/Picture/PictureDetail/Cell/PictureCommentTableCell.m
+102
-0
PictureDetailTableCell.h
...ction/Picture/PictureDetail/Cell/PictureDetailTableCell.h
+16
-0
PictureDetailTableCell.m
...ction/Picture/PictureDetail/Cell/PictureDetailTableCell.m
+106
-0
PictureTextTableCell.h
...unction/Picture/PictureDetail/Cell/PictureTextTableCell.h
+13
-0
PictureTextTableCell.m
...unction/Picture/PictureDetail/Cell/PictureTextTableCell.m
+23
-0
PictureStoryViewController.m
...PictureDetail/ViewController/PictureStoryViewController.m
+455
-13
PicScreenView.h
.../Module/Function/Picture/PictureList/View/PicScreenView.h
+29
-0
PicScreenView.m
.../Module/Function/Picture/PictureList/View/PicScreenView.m
+220
-0
PictureViewController.m
...icture/PictureList/ViewController/PictureViewController.m
+368
-135
QuestionViewController.m
...tion/QuestionList/ViewController/QuestionViewController.m
+1
-24
RankDetailViewController.m
...king/RankDetail/ViewController/RankDetailViewController.m
+1
-0
HttpClient.h
redstar/Classes/Tools/HttpClient/HttpClient.h
+26
-0
HttpClient.m
redstar/Classes/Tools/HttpClient/HttpClient.m
+74
-0
TaxisView.m
redstar/Classes/Tools/Menu/Taxis/View/TaxisView.m
+1
-3
No files found.
redstar.xcodeproj/project.pbxproj
View file @
fff7b6b9
...
...
@@ -87,6 +87,10 @@
84BB16A21C191A7F00383A64
/* OnLineResultFootView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84BB16A11C191A7F00383A64
/* OnLineResultFootView.m */
;
};
84C9574D1BDB344900083584
/* UIBarButtonItem+Create.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84C9574A1BDB344900083584
/* UIBarButtonItem+Create.m */
;
};
84C9574E1BDB344900083584
/* UIView+Frame.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84C9574C1BDB344900083584
/* UIView+Frame.m */
;
};
84C972961C1ABE08003A3276
/* PicScreenView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84C972951C1ABE08003A3276
/* PicScreenView.m */
;
};
84C972991C1ADB9C003A3276
/* PictureDetailTableCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84C972981C1ADB9C003A3276
/* PictureDetailTableCell.m */
;
};
84C9729C1C1ADC5B003A3276
/* PictureTextTableCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84C9729B1C1ADC5B003A3276
/* PictureTextTableCell.m */
;
};
84C9729F1C1ADD17003A3276
/* PictureCommentTableCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84C9729E1C1ADD17003A3276
/* PictureCommentTableCell.m */
;
};
84CC34CC1C093C2F002F10E2
/* OnLineTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84CC34C11C093C2F002F10E2
/* OnLineTableViewCell.m */
;
};
84CC34CD1C093C2F002F10E2
/* OnLineFooterView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84CC34C41C093C2F002F10E2
/* OnLineFooterView.m */
;
};
84CC34CE1C093C2F002F10E2
/* OnLineViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84CC34C71C093C2F002F10E2
/* OnLineViewController.m */
;
};
...
...
@@ -315,6 +319,14 @@
84C9574B1BDB344900083584
/* UIView+Frame.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"UIView+Frame.h"
;
sourceTree
=
"<group>"
;
};
84C9574C1BDB344900083584
/* UIView+Frame.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"UIView+Frame.m"
;
sourceTree
=
"<group>"
;
};
84C9574F1BDB38AA00083584
/* redstar.pch */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
redstar.pch
;
sourceTree
=
"<group>"
;
};
84C972941C1ABE08003A3276
/* PicScreenView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PicScreenView.h
;
sourceTree
=
"<group>"
;
};
84C972951C1ABE08003A3276
/* PicScreenView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PicScreenView.m
;
sourceTree
=
"<group>"
;
};
84C972971C1ADB9C003A3276
/* PictureDetailTableCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PictureDetailTableCell.h
;
sourceTree
=
"<group>"
;
};
84C972981C1ADB9C003A3276
/* PictureDetailTableCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PictureDetailTableCell.m
;
sourceTree
=
"<group>"
;
};
84C9729A1C1ADC5B003A3276
/* PictureTextTableCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PictureTextTableCell.h
;
sourceTree
=
"<group>"
;
};
84C9729B1C1ADC5B003A3276
/* PictureTextTableCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PictureTextTableCell.m
;
sourceTree
=
"<group>"
;
};
84C9729D1C1ADD17003A3276
/* PictureCommentTableCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PictureCommentTableCell.h
;
sourceTree
=
"<group>"
;
};
84C9729E1C1ADD17003A3276
/* PictureCommentTableCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PictureCommentTableCell.m
;
sourceTree
=
"<group>"
;
};
84CC34C01C093C2F002F10E2
/* OnLineTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
OnLineTableViewCell.h
;
sourceTree
=
"<group>"
;
};
84CC34C11C093C2F002F10E2
/* OnLineTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
OnLineTableViewCell.m
;
sourceTree
=
"<group>"
;
};
84CC34C31C093C2F002F10E2
/* OnLineFooterView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
OnLineFooterView.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -961,6 +973,12 @@
8490C4C81BF9DEF0006B6569
/* Cell */
=
{
isa
=
PBXGroup
;
children
=
(
84C972971C1ADB9C003A3276
/* PictureDetailTableCell.h */
,
84C972981C1ADB9C003A3276
/* PictureDetailTableCell.m */
,
84C9729A1C1ADC5B003A3276
/* PictureTextTableCell.h */
,
84C9729B1C1ADC5B003A3276
/* PictureTextTableCell.m */
,
84C9729D1C1ADD17003A3276
/* PictureCommentTableCell.h */
,
84C9729E1C1ADD17003A3276
/* PictureCommentTableCell.m */
,
);
path
=
Cell
;
sourceTree
=
"<group>"
;
...
...
@@ -1003,6 +1021,8 @@
8490C4CF1BF9DEF0006B6569
/* View */
=
{
isa
=
PBXGroup
;
children
=
(
84C972941C1ABE08003A3276
/* PicScreenView.h */
,
84C972951C1ABE08003A3276
/* PicScreenView.m */
,
);
path
=
View
;
sourceTree
=
"<group>"
;
...
...
@@ -2030,6 +2050,7 @@
84A6738E1C0BE2D0000F828E
/* OnLineCompleteCell.m in Sources */
,
84CC34D41C094476002F10E2
/* StandardViewController.m in Sources */
,
84FD8A0A1BDA01D1006E442A
/* MineViewController.m in Sources */
,
84C972991C1ADB9C003A3276
/* PictureDetailTableCell.m in Sources */
,
848A20271C183FCB00422FAB
/* OnLineResultViewController.m in Sources */
,
848699B21BDF810900859DFE
/* InspectListViewController.m in Sources */
,
84BB16A21C191A7F00383A64
/* OnLineResultFootView.m in Sources */
,
...
...
@@ -2084,11 +2105,13 @@
8480BEAC1C143A1600E2F18F
/* CategoryTableView.m in Sources */
,
84F57C9C1BECA73800DDEEB1
/* StarBar.m in Sources */
,
84F57C4C1BEC785E00DDEEB1
/* AddQuestionViewController.m in Sources */
,
84C9729F1C1ADD17003A3276
/* PictureCommentTableCell.m in Sources */
,
849A18461C152EBA00071600
/* AddPictureTableCell.m in Sources */
,
84D80EB51BF714BE00A10EA4
/* GroupItems.m in Sources */
,
84A673BE1C0C7AEB000F828E
/* AnnoTableViewCell.m in Sources */
,
84C9574D1BDB344900083584
/* UIBarButtonItem+Create.m in Sources */
,
84AD4F3D1BF4894D00BFB37C
/* RankDetailView.m in Sources */
,
84C972961C1ABE08003A3276
/* PicScreenView.m in Sources */
,
84ECCF1B1C0210F000EA4960
/* CommentModel.m in Sources */
,
84E0ABCD1BFB082E001C8F45
/* TaskDetailModel.m in Sources */
,
8490C4D31BF9DEF0006B6569
/* PictureTableCell.m in Sources */
,
...
...
@@ -2101,6 +2124,7 @@
84846E9A1BE07CDF0010550A
/* RankingListCell.m in Sources */
,
84A673911C0C2681000F828E
/* FunctionViewController.m in Sources */
,
848699B61BDF812F00859DFE
/* RankingListViewController.m in Sources */
,
84C9729C1C1ADC5B003A3276
/* PictureTextTableCell.m in Sources */
,
84D825821BDD35E000CC61F7
/* HomeHeaderView.m in Sources */
,
849A18431C152CEE00071600
/* AddPictureViewController.m in Sources */
,
8480BEA61C14378C00E2F18F
/* ScopeTableView.m in Sources */
,
...
...
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
fff7b6b9
No preview for this file type
redstar/Assets.xcassets/AppIcon.appiconset/Contents.json
View file @
fff7b6b9
{
"images"
:
[
{
"size"
:
"
40x40
"
,
"idiom"
:
"ip
ad
"
,
"filename"
:
"Icon-
40
.png"
,
"size"
:
"
29x29
"
,
"idiom"
:
"ip
hone
"
,
"filename"
:
"Icon-
Small
.png"
,
"scale"
:
"1x"
},
{
"size"
:
"29x29"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon-Small@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"29x29"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon-Small@3x.png"
,
"scale"
:
"3x"
},
{
"size"
:
"40x40"
,
"idiom"
:
"ip
ad
"
,
"idiom"
:
"ip
hone
"
,
"filename"
:
"Icon-40@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"40x40"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon-40@3x.png"
,
"scale"
:
"3x"
},
{
"size"
:
"57x57"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon.png"
,
"scale"
:
"1x"
},
{
"size"
:
"57x57"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"60x60"
,
"idiom"
:
"iphone"
,
...
...
@@ -19,27 +49,33 @@
"scale"
:
"2x"
},
{
"size"
:
"72x72"
,
"size"
:
"60x60"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon-60@3x.png"
,
"scale"
:
"3x"
},
{
"size"
:
"29x29"
,
"idiom"
:
"ipad"
,
"filename"
:
"Icon-
72
.png"
,
"filename"
:
"Icon-
Small
.png"
,
"scale"
:
"1x"
},
{
"size"
:
"
72x72
"
,
"size"
:
"
29x29
"
,
"idiom"
:
"ipad"
,
"filename"
:
"Icon-
72
@2x.png"
,
"filename"
:
"Icon-
Small
@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"
76x76
"
,
"size"
:
"
40x40
"
,
"idiom"
:
"ipad"
,
"filename"
:
"Icon-
76
.png"
,
"filename"
:
"Icon-
40
.png"
,
"scale"
:
"1x"
},
{
"size"
:
"
76x76
"
,
"size"
:
"
40x40
"
,
"idiom"
:
"ipad"
,
"filename"
:
"Icon-
76
@2x.png"
,
"filename"
:
"Icon-
40
@2x.png"
,
"scale"
:
"2x"
},
{
...
...
@@ -55,63 +91,32 @@
"scale"
:
"2x"
},
{
"size"
:
"
29x29
"
,
"idiom"
:
"ip
hone
"
,
"filename"
:
"Icon-
Small
.png"
,
"size"
:
"
72x72
"
,
"idiom"
:
"ip
ad
"
,
"filename"
:
"Icon-
72
.png"
,
"scale"
:
"1x"
},
{
"size"
:
"
29x29
"
,
"idiom"
:
"ip
hone
"
,
"filename"
:
"Icon-
Small
@2x.png"
,
"size"
:
"
72x72
"
,
"idiom"
:
"ip
ad
"
,
"filename"
:
"Icon-
72
@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"
57x57
"
,
"idiom"
:
"ip
hone
"
,
"filename"
:
"Icon.png"
,
"size"
:
"
76x76
"
,
"idiom"
:
"ip
ad
"
,
"filename"
:
"Icon
-76
.png"
,
"scale"
:
"1x"
},
{
"size"
:
"57x57"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"29x29"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon-Small@3x.png"
,
"scale"
:
"3x"
},
{
"size"
:
"40x40"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon-40@3x.png"
,
"scale"
:
"3x"
},
{
"size"
:
"60x60"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon-60@3x.png"
,
"scale"
:
"3x"
},
{
"size"
:
"40x40"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon-40@2x.png"
,
"scale"
:
"2x"
},
{
"size"
:
"29x29"
,
"size"
:
"76x76"
,
"idiom"
:
"ipad"
,
"filename"
:
"Icon-
Small
.png"
,
"scale"
:
"
1
x"
"filename"
:
"Icon-
76@2x
.png"
,
"scale"
:
"
2
x"
},
{
"size"
:
"29x29"
,
"idiom"
:
"ipad"
,
"
filename"
:
"Icon-Small@2x.png
"
,
"
size"
:
"83.5x83.5
"
,
"scale"
:
"2x"
}
],
...
...
redstar/Classes/Macro/Url.h
View file @
fff7b6b9
...
...
@@ -79,4 +79,30 @@
// 获取问题分类
#define kQuestionCategoryURL @"redstar-server/rest/question/queryCategory?groupUuid="
/**
* 图说口碑相关URL
*/
// 保存图说口碑
#define kSavePicturePraiseURL @"redstar-server/rest/legendpraise/save?time="
// 上传口碑图片
#define kUpLoadPictureURL @"redstar-server/rest/legendpraise/"
// 提交图说口碑
#define kSubmitPicturePraiseURL @"redstar-server/rest/legendpraise/"
// 查询图说口碑
#define kQueryPicturePraiseURL @"redstar-server/rest/legendpraise/query"
// 图说口碑明细
#define kPicturePraiseDetailURL @"redstar-server/rest/legendpraise/get/"
// 口碑点赞
#define kPicturePraiseLikeURL @"redstar-server/rest/legendpraise/like/"
// 口碑取消点赞
#define kPicturePraiseCancelLikeURL @"redstar-server/rest/legendpraise/cancel_like/"
#endif
/* Url_h */
redstar/Classes/Module/Function/Picture/PictureDetail/Cell/PictureCommentTableCell.h
0 → 100644
View file @
fff7b6b9
//
// PictureCommentTableCell.h
// redstar
//
// Created by admin on 15/12/11.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface
PictureCommentTableCell
:
UITableViewCell
@property
(
nonatomic
,
strong
)
UILabel
*
suggestLabel
;
// 评论
@property
(
nonatomic
,
strong
)
UILabel
*
peopleLabel
;
// 评论人
@property
(
nonatomic
,
strong
)
UILabel
*
positionLabel
;
// 职位
@property
(
nonatomic
,
strong
)
UILabel
*
dateLabel
;
// 时间
@end
redstar/Classes/Module/Function/Picture/PictureDetail/Cell/PictureCommentTableCell.m
0 → 100644
View file @
fff7b6b9
//
// PictureCommentTableCell.m
// redstar
//
// Created by admin on 15/12/11.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "PictureCommentTableCell.h"
@implementation
PictureCommentTableCell
#pragma mark - lazy loading
-
(
UILabel
*
)
suggestLabel
{
if
(
!
_suggestLabel
)
{
_suggestLabel
=
[[
UILabel
alloc
]
init
];
_suggestLabel
.
font
=
[
UIFont
systemFontOfSize
:
15
.
0
];
_suggestLabel
.
textColor
=
kLightBlack
;
_suggestLabel
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
_suggestLabel
.
numberOfLines
=
0
;
[
self
.
contentView
addSubview
:
_suggestLabel
];
// 顶端
NSLayoutConstraint
*
titleTop
=
[
NSLayoutConstraint
constraintWithItem
:
_suggestLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeTop
multiplier
:
1
.
0
constant
:
12
];
[
self
.
contentView
addConstraint
:
titleTop
];
// 左边
NSLayoutConstraint
*
titleLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_suggestLabel
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
20
];
[
self
.
contentView
addConstraint
:
titleLeft
];
// 右边
NSLayoutConstraint
*
titleRight
=
[
NSLayoutConstraint
constraintWithItem
:
_suggestLabel
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeRight
multiplier
:
1
.
0
constant
:-
20
];
[
self
.
contentView
addConstraint
:
titleRight
];
}
return
_suggestLabel
;
}
-
(
UILabel
*
)
peopleLabel
{
if
(
!
_peopleLabel
)
{
_peopleLabel
=
[[
UILabel
alloc
]
init
];
_peopleLabel
.
font
=
[
UIFont
systemFontOfSize
:
15
.
0
];
_peopleLabel
.
textColor
=
kLightGray
;
_peopleLabel
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
self
.
contentView
addSubview
:
_peopleLabel
];
// 顶端
NSLayoutConstraint
*
titleTop
=
[
NSLayoutConstraint
constraintWithItem
:
_peopleLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
suggestLabel
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
7
];
[
self
.
contentView
addConstraint
:
titleTop
];
// 左边
NSLayoutConstraint
*
titleLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_peopleLabel
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
20
];
[
self
.
contentView
addConstraint
:
titleLeft
];
// 右边
NSLayoutConstraint
*
titleRight
=
[
NSLayoutConstraint
constraintWithItem
:
_peopleLabel
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
dateLabel
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:-
10
];
[
self
.
contentView
addConstraint
:
titleRight
];
// 高度
NSLayoutConstraint
*
titleBottom
=
[
NSLayoutConstraint
constraintWithItem
:
_peopleLabel
attribute
:
NSLayoutAttributeBottom
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:-
10
];
[
self
.
contentView
addConstraint
:
titleBottom
];
}
return
_peopleLabel
;
}
-
(
UILabel
*
)
dateLabel
{
if
(
!
_dateLabel
)
{
_dateLabel
=
[[
UILabel
alloc
]
init
];
_dateLabel
.
font
=
[
UIFont
systemFontOfSize
:
15
.
0
];
_dateLabel
.
textColor
=
kLightGray
;
_dateLabel
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
self
.
contentView
addSubview
:
_dateLabel
];
// 顶端
NSLayoutConstraint
*
titleTop
=
[
NSLayoutConstraint
constraintWithItem
:
_dateLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
suggestLabel
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
7
];
[
self
.
contentView
addConstraint
:
titleTop
];
// 右边
NSLayoutConstraint
*
titleWidth
=
[
NSLayoutConstraint
constraintWithItem
:
_dateLabel
attribute
:
NSLayoutAttributeWidth
relatedBy
:
NSLayoutRelationEqual
toItem
:
nil
attribute
:
NSLayoutAttributeNotAnAttribute
multiplier
:
1
.
0
constant
:
150
];
[
self
.
contentView
addConstraint
:
titleWidth
];
// 高度
NSLayoutConstraint
*
titleBottom
=
[
NSLayoutConstraint
constraintWithItem
:
_dateLabel
attribute
:
NSLayoutAttributeBottom
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:-
10
];
[
self
.
contentView
addConstraint
:
titleBottom
];
}
return
_dateLabel
;
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
}
@end
redstar/Classes/Module/Function/Picture/PictureDetail/Cell/PictureDetailTableCell.h
0 → 100644
View file @
fff7b6b9
//
// PictureDetailTableCell.h
// redstar
//
// Created by admin on 15/12/11.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ZanButton.h"
@interface
PictureDetailTableCell
:
UITableViewCell
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
contentLabel
;
@property
(
nonatomic
,
strong
)
ZanButton
*
thumbBtn
;
@end
redstar/Classes/Module/Function/Picture/PictureDetail/Cell/PictureDetailTableCell.m
0 → 100644
View file @
fff7b6b9
//
// PictureDetailTableCell.m
// redstar
//
// Created by admin on 15/12/11.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "PictureDetailTableCell.h"
@implementation
PictureDetailTableCell
#pragma mark - lazy loading
-
(
UILabel
*
)
titleLabel
{
if
(
!
_titleLabel
)
{
_titleLabel
=
[[
UILabel
alloc
]
init
];
_titleLabel
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
self
.
contentView
addSubview
:
_titleLabel
];
// 顶端
NSLayoutConstraint
*
stateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_titleLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeTop
multiplier
:
1
.
0
constant
:
10
];
[
self
.
contentView
addConstraint
:
stateTop
];
// 左边
NSLayoutConstraint
*
stateLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_titleLabel
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
20
];
[
self
.
contentView
addConstraint
:
stateLeft
];
// 右边
NSLayoutConstraint
*
stateRight
=
[
NSLayoutConstraint
constraintWithItem
:
_titleLabel
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
thumbBtn
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:-
5
];
[
self
.
contentView
addConstraint
:
stateRight
];
// 高度
NSLayoutConstraint
*
stateHeight
=
[
NSLayoutConstraint
constraintWithItem
:
_titleLabel
attribute
:
NSLayoutAttributeHeight
relatedBy
:
NSLayoutRelationEqual
toItem
:
nil
attribute
:
NSLayoutAttributeNotAnAttribute
multiplier
:
1
.
0
constant
:
25
];
[
self
.
contentView
addConstraint
:
stateHeight
];
}
return
_titleLabel
;
}
-
(
UILabel
*
)
contentLabel
{
if
(
!
_contentLabel
)
{
_contentLabel
=
[[
UILabel
alloc
]
init
];
_contentLabel
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
_contentLabel
.
numberOfLines
=
0
;
[
self
.
contentView
addSubview
:
_contentLabel
];
// 顶端
NSLayoutConstraint
*
stateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_contentLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
titleLabel
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
3
];
[
self
.
contentView
addConstraint
:
stateTop
];
// 左边
NSLayoutConstraint
*
stateLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_contentLabel
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
20
];
[
self
.
contentView
addConstraint
:
stateLeft
];
// 右边
NSLayoutConstraint
*
stateRight
=
[
NSLayoutConstraint
constraintWithItem
:
_contentLabel
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeRight
multiplier
:
1
.
0
constant
:-
20
];
[
self
.
contentView
addConstraint
:
stateRight
];
// 高度
NSLayoutConstraint
*
stateBotom
=
[
NSLayoutConstraint
constraintWithItem
:
_contentLabel
attribute
:
NSLayoutAttributeBottom
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:-
10
];
[
self
.
contentView
addConstraint
:
stateBotom
];
}
return
_contentLabel
;
}
-
(
ZanButton
*
)
thumbBtn
{
if
(
!
_thumbBtn
)
{
_thumbBtn
=
[[
ZanButton
alloc
]
init
];
[
_thumbBtn
setImage
:[
UIImage
imageNamed
:
@"commend"
]
forState
:
UIControlStateNormal
];
[
_thumbBtn
setImage
:[
UIImage
imageNamed
:
@"commend_after"
]
forState
:
UIControlStateSelected
];
_thumbBtn
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
_thumbBtn
setTitle
:
@"200"
forState
:
UIControlStateNormal
];
_thumbBtn
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
.
0
];
[
_thumbBtn
setTitleColor
:
kNavigationBarColor
forState
:
UIControlStateNormal
];
[
self
.
contentView
addSubview
:
_thumbBtn
];
// 顶端
NSLayoutConstraint
*
thumbTop
=
[
NSLayoutConstraint
constraintWithItem
:
_thumbBtn
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeTop
multiplier
:
1
.
0
constant
:
12
];
[
self
.
contentView
addConstraint
:
thumbTop
];
// // 左边
NSLayoutConstraint
*
thumbWidth
=
[
NSLayoutConstraint
constraintWithItem
:
_thumbBtn
attribute
:
NSLayoutAttributeWidth
relatedBy
:
NSLayoutRelationEqual
toItem
:
nil
attribute
:
NSLayoutAttributeNotAnAttribute
multiplier
:
1
.
0
constant
:
75
];
[
self
.
contentView
addConstraint
:
thumbWidth
];
// 右边
NSLayoutConstraint
*
thumbRight
=
[
NSLayoutConstraint
constraintWithItem
:
_thumbBtn
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeRight
multiplier
:
1
.
0
constant
:-
10
];
[
self
.
contentView
addConstraint
:
thumbRight
];
// 高度
NSLayoutConstraint
*
thumbHeight
=
[
NSLayoutConstraint
constraintWithItem
:
_thumbBtn
attribute
:
NSLayoutAttributeHeight
relatedBy
:
NSLayoutRelationEqual
toItem
:
nil
attribute
:
NSLayoutAttributeNotAnAttribute
multiplier
:
1
.
0
constant
:
20
];
[
self
.
contentView
addConstraint
:
thumbHeight
];
}
return
_thumbBtn
;
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
}
@end
redstar/Classes/Module/Function/Picture/PictureDetail/Cell/PictureTextTableCell.h
0 → 100644
View file @
fff7b6b9
//
// PictureTextTableCell.h
// redstar
//
// Created by admin on 15/12/11.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface
PictureTextTableCell
:
UITableViewCell
@end
redstar/Classes/Module/Function/Picture/PictureDetail/Cell/PictureTextTableCell.m
0 → 100644
View file @
fff7b6b9
//
// PictureTextTableCell.m
// redstar
//
// Created by admin on 15/12/11.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "PictureTextTableCell.h"
@implementation
PictureTextTableCell
-
(
void
)
awakeFromNib
{
// Initialization code
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
}
@end
redstar/Classes/Module/Function/Picture/PictureDetail/ViewController/PictureStoryViewController.m
View file @
fff7b6b9
This diff is collapsed.
Click to expand it.
redstar/Classes/Module/Function/Picture/PictureList/View/PicScreenView.h
0 → 100644
View file @
fff7b6b9
//
// PicScreenView.h
// redstar
//
// Created by admin on 15/12/11.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GroupTabBar.h"
#import "ScopeTableView.h"
#import "StateTableView.h"
#import "TimeTableView.h"
@interface
PicScreenView
:
UIView
@property
(
nonatomic
,
strong
)
GroupTabBar
*
groupTabBar
;
// 重置
@property
(
nonatomic
,
strong
)
UIButton
*
resetBtn
;
// 重置
@property
(
nonatomic
,
strong
)
UIButton
*
submitBtn
;
// 提交
@property
(
nonatomic
,
strong
)
ScopeTableView
*
scopeTableView
;
@property
(
nonatomic
,
strong
)
UITextView
*
textView1
;
@property
(
nonatomic
,
strong
)
UITextView
*
textView2
;
@property
(
nonatomic
,
strong
)
StateTableView
*
stateTableView
;
@property
(
nonatomic
,
strong
)
TimeTableView
*
timeTableView
;
@end
redstar/Classes/Module/Function/Picture/PictureList/View/PicScreenView.m
0 → 100644
View file @
fff7b6b9
//
// PicScreenView.m
// redstar
//
// Created by admin on 15/12/11.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "PicScreenView.h"
#import "GroupItems.h"
#define SELECTED_VIEW_CONTROLLER_TAG 23656534
@interface
PicScreenView
()
<
GroupTabBarDelegate
,
UITextViewDelegate
>
@property
(
nonatomic
,
strong
)
UIView
*
backView
;
@property
(
nonatomic
,
strong
)
UILabel
*
placeholderLabel1
;
@property
(
nonatomic
,
strong
)
UILabel
*
placeholderLabel2
;
@end
@implementation
PicScreenView
-
(
instancetype
)
init
{
self
=
[
super
init
];
if
(
self
)
{
[
self
setup
];
}
return
self
;
}
-
(
instancetype
)
initWithFrame
:
(
CGRect
)
frame
{
self
=
[
super
initWithFrame
:
frame
];
if
(
self
)
{
[
self
setup
];
}
return
self
;
}
-
(
void
)
setup
{
self
.
groupTabBar
=
[[
GroupTabBar
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
100
,
250
)];
_groupTabBar
.
delegate
=
self
;
[
self
addSubview
:
_groupTabBar
];
self
.
scopeTableView
=
[[
ScopeTableView
alloc
]
init
];
GroupItems
*
scopeItem
=
[[
GroupItems
alloc
]
initWithTitle
:
@"问题范围"
view
:
_scopeTableView
];
self
.
textView1
=
[[
UITextView
alloc
]
init
];
_textView1
.
delegate
=
self
;
_textView1
.
tag
=
9991
;
self
.
placeholderLabel1
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
5
,
0
,
100
,
30
)];
self
.
placeholderLabel1
.
text
=
@"请输入标题..."
;
self
.
placeholderLabel1
.
font
=
[
UIFont
systemFontOfSize
:
15
.
0
];
self
.
placeholderLabel1
.
textColor
=
kOnLineCellDetailColor
;
[
self
.
textView1
addSubview
:
self
.
placeholderLabel1
];
GroupItems
*
textViewItem1
=
[[
GroupItems
alloc
]
initWithTitle
:
@"标题类似于"
view
:
_textView1
];
self
.
textView2
=
[[
UITextView
alloc
]
init
];
_textView2
.
delegate
=
self
;
_textView2
.
tag
=
9992
;
self
.
placeholderLabel2
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
5
,
0
,
100
,
30
)];
self
.
placeholderLabel2
.
text
=
@"请输入关键字..."
;
self
.
placeholderLabel2
.
font
=
[
UIFont
systemFontOfSize
:
15
.
0
];
self
.
placeholderLabel2
.
textColor
=
kOnLineCellDetailColor
;
[
self
.
textView2
addSubview
:
self
.
placeholderLabel2
];
GroupItems
*
textViewItem2
=
[[
GroupItems
alloc
]
initWithTitle
:
@"关键字类似于"
view
:
_textView2
];
self
.
stateTableView
=
[[
StateTableView
alloc
]
init
];
GroupItems
*
stateItem
=
[[
GroupItems
alloc
]
initWithTitle
:
@"问题状态"
view
:
_stateTableView
];
self
.
timeTableView
=
[[
TimeTableView
alloc
]
init
];
GroupItems
*
timeItem
=
[[
GroupItems
alloc
]
initWithTitle
:
@"时间段"
view
:
_timeTableView
];
[
self
insertSubview
:
_scopeTableView
belowSubview
:
_groupTabBar
];
[
self
insertSubview
:
_textView1
belowSubview
:
_groupTabBar
];
[
self
insertSubview
:
_textView2
belowSubview
:
_groupTabBar
];
[
self
insertSubview
:
_stateTableView
belowSubview
:
_groupTabBar
];
[
self
insertSubview
:
_timeTableView
belowSubview
:
_groupTabBar
];
_groupTabBar
.
items
=
@[
scopeItem
,
textViewItem1
,
textViewItem2
,
stateItem
,
timeItem
];
[
_groupTabBar
showIndex
:
0
];
self
.
backView
.
backgroundColor
=
[
UIColor
whiteColor
];
[
self
.
resetBtn
setTitle
:
@"重置"
forState
:
UIControlStateNormal
];
[
self
.
submitBtn
setTitle
:
@"提交"
forState
:
UIControlStateNormal
];
}
-
(
void
)
switchView
:
(
UIView
*
)
view
{
UIView
*
currentView
=
[
self
viewWithTag
:
SELECTED_VIEW_CONTROLLER_TAG
];
[
currentView
removeFromSuperview
];
currentView
=
nil
;
view
.
frame
=
CGRectMake
(
self
.
groupTabBar
.
frame
.
size
.
width
,
0
,
kScreenWidth
-
self
.
groupTabBar
.
frame
.
size
.
width
,
self
.
groupTabBar
.
size
.
height
);
view
.
tag
=
SELECTED_VIEW_CONTROLLER_TAG
;
[
self
insertSubview
:
view
belowSubview
:
_groupTabBar
];
}
-
(
UIView
*
)
backView
{
if
(
!
_backView
)
{
_backView
=
[[
UIView
alloc
]
init
];
_backView
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
self
addSubview
:
_backView
];
NSLayoutConstraint
*
lineViewTop
=
[
NSLayoutConstraint
constraintWithItem
:
_backView
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
groupTabBar
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
[
self
addConstraint
:
lineViewTop
];
NSLayoutConstraint
*
lineViewRight
=
[
NSLayoutConstraint
constraintWithItem
:
_backView
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
attribute
:
NSLayoutAttributeRight
multiplier
:
1
.
0
constant
:
0
];
[
self
addConstraint
:
lineViewRight
];
NSLayoutConstraint
*
lineViewBottom
=
[
NSLayoutConstraint
constraintWithItem
:
_backView
attribute
:
NSLayoutAttributeBottom
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
[
self
addConstraint
:
lineViewBottom
];
NSLayoutConstraint
*
lineViewLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_backView
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
0
];
[
self
addConstraint
:
lineViewLeft
];
}
return
_backView
;
}
-
(
UIButton
*
)
resetBtn
{
if
(
!
_resetBtn
)
{
_resetBtn
=
[[
UIButton
alloc
]
init
];
_resetBtn
.
backgroundColor
=
[
UIColor
grayColor
];
_resetBtn
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
_resetBtn
.
layer
.
cornerRadius
=
4
.
0
;
[
self
.
backView
addSubview
:
_resetBtn
];
NSLayoutConstraint
*
lineViewTop
=
[
NSLayoutConstraint
constraintWithItem
:
_resetBtn
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
backView
attribute
:
NSLayoutAttributeTop
multiplier
:
1
.
0
constant
:
7
.
5
];
[
self
.
backView
addConstraint
:
lineViewTop
];
NSLayoutConstraint
*
lineViewRight
=
[
NSLayoutConstraint
constraintWithItem
:
_resetBtn
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
backView
attribute
:
NSLayoutAttributeCenterX
multiplier
:
1
.
0
constant
:-
20
];
[
self
.
backView
addConstraint
:
lineViewRight
];
NSLayoutConstraint
*
lineViewBottom
=
[
NSLayoutConstraint
constraintWithItem
:
_resetBtn
attribute
:
NSLayoutAttributeBottom
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
backView
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:-
7
.
5
];
[
self
.
backView
addConstraint
:
lineViewBottom
];
NSLayoutConstraint
*
lineViewLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_resetBtn
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
backView
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
20
];
[
self
.
backView
addConstraint
:
lineViewLeft
];
}
return
_resetBtn
;
}
-
(
UIButton
*
)
submitBtn
{
if
(
!
_submitBtn
)
{
_submitBtn
=
[[
UIButton
alloc
]
init
];
_submitBtn
.
backgroundColor
=
kNavigationBarColor
;
_submitBtn
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
_submitBtn
.
layer
.
cornerRadius
=
4
.
0
;
[
self
.
backView
addSubview
:
_submitBtn
];
NSLayoutConstraint
*
lineViewTop
=
[
NSLayoutConstraint
constraintWithItem
:
_submitBtn
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
backView
attribute
:
NSLayoutAttributeTop
multiplier
:
1
.
0
constant
:
7
.
5
];
[
self
.
backView
addConstraint
:
lineViewTop
];
NSLayoutConstraint
*
lineViewRight
=
[
NSLayoutConstraint
constraintWithItem
:
_submitBtn
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
backView
attribute
:
NSLayoutAttributeRight
multiplier
:
1
.
0
constant
:-
20
];
[
self
.
backView
addConstraint
:
lineViewRight
];
NSLayoutConstraint
*
lineViewBottom
=
[
NSLayoutConstraint
constraintWithItem
:
_submitBtn
attribute
:
NSLayoutAttributeBottom
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
backView
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:-
7
.
5
];
[
self
.
backView
addConstraint
:
lineViewBottom
];
NSLayoutConstraint
*
lineViewLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_submitBtn
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
backView
attribute
:
NSLayoutAttributeCenterX
multiplier
:
1
.
0
constant
:
20
];
[
self
.
backView
addConstraint
:
lineViewLeft
];
}
return
_submitBtn
;
}
#pragma mark - UITextView Delegate
-
(
BOOL
)
textView
:
(
UITextView
*
)
textView
shouldChangeTextInRange
:
(
NSRange
)
range
replacementText
:
(
NSString
*
)
text
{
if
(
!
[
text
isEqualToString
:
@""
])
{
if
(
textView
.
tag
==
9991
)
{
self
.
placeholderLabel1
.
hidden
=
YES
;
}
else
{
self
.
placeholderLabel2
.
hidden
=
YES
;
}
}
if
([
text
isEqualToString
:
@""
]
&&
range
.
location
==
0
&&
range
.
length
==
1
)
{
if
(
textView
.
tag
==
9991
)
{
self
.
placeholderLabel1
.
hidden
=
NO
;
}
else
{
self
.
placeholderLabel2
.
hidden
=
NO
;
}
}
if
([
text
isEqualToString
:
@"
\n
"
])
{
[
self
.
textView1
resignFirstResponder
];
[
self
.
textView2
resignFirstResponder
];
if
(
textView
.
tag
==
9991
)
{
if
(
textView
.
text
.
length
!=
0
)
{
self
.
placeholderLabel1
.
hidden
=
YES
;
}
else
{
self
.
placeholderLabel1
.
hidden
=
NO
;
}
}
else
{
if
(
textView
.
text
.
length
!=
0
)
{
self
.
placeholderLabel2
.
hidden
=
YES
;
}
else
{
self
.
placeholderLabel2
.
hidden
=
NO
;
}
}
return
NO
;
}
return
YES
;
}
@end
redstar/Classes/Module/Function/Picture/PictureList/ViewController/PictureViewController.m
View file @
fff7b6b9
This diff is collapsed.
Click to expand it.
redstar/Classes/Module/Function/Question/QuestionList/ViewController/QuestionViewController.m
View file @
fff7b6b9
...
...
@@ -102,29 +102,6 @@
#pragma mark - Private Methods
//- (void)requestGroupTitle
//{
// NSString *url = [NSString stringWithFormat:@"%@%@", kRedStarURL, kQuestionGroupURL];
// HttpClient *httpClient = [[HttpClient alloc] initWithUrl:url];
// // 请求问题列表
// [httpClient getQuestionGroupWithCompletion:^(id response, NSError *error) {
// NSLog(@"请求问题专业分组 res = %@", response);
// NSLog(@"请求问题专业分组 error = %@", error);
// if (response[@"success"]) {
// NSDictionary *dataDict = response[@"data"];
// NSArray *array = dataDict[@"records"];
// NSMutableArray *titleArray = [NSMutableArray array];
// for (NSDictionary *dict in array) {
// NSString *name = dict[@"name"];
// [titleArray addObject:name];
// }
// NSLog(@"titleArray 2222= %@", titleArray);
// [[NSUserDefaults standardUserDefaults] setObject:titleArray forKey:@"groupTitle"];
// }
//
// }];
//}
-
(
void
)
requestQuestionList
{
// 请求地址
...
...
@@ -202,7 +179,7 @@
}
[
_allQuestionArray
addObjectsFromArray
:
tempArray
];
if
(
tempArray
.
count
<
5
)
{
if
(
tempArray
.
count
<
10
)
{
[
self
.
tableView
.
footer
noticeNoMoreData
];
}
else
{
[
self
.
tableView
.
footer
endRefreshing
];
...
...
redstar/Classes/Module/Function/WordOfMouth/Ranking/RankDetail/ViewController/RankDetailViewController.m
View file @
fff7b6b9
...
...
@@ -124,6 +124,7 @@
}];
}
-
(
void
)
addComment
:
(
UIButton
*
)
sender
{
NSArray
*
permissions
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"permissions"
];
...
...
redstar/Classes/Tools/HttpClient/HttpClient.h
View file @
fff7b6b9
...
...
@@ -88,4 +88,30 @@ typedef void (^completionBlock) (id response, NSError *error);
// 获取问题专业组
-
(
void
)
getQuestionCategoryWithCompletion
:(
completionBlock
)
completion
;
/**
* 图说口碑相关URL
*/
// 保存图说口碑
-
(
void
)
savePicturePraiseWithParameters
:(
id
)
parameters
completion
:(
completionBlock
)
completion
;
// 上传口碑图片
-
(
void
)
upLoadPraisePictureWithParameters
:(
id
)
parameters
completion
:(
completionBlock
)
completion
;
// 提交图说口碑
-
(
void
)
submitPicturePraiseWithCompletion
:(
completionBlock
)
completion
;
// 查询图说口碑
-
(
void
)
queryPicturePraiseWithParameters
:(
id
)
parameters
completion
:(
completionBlock
)
completion
;
// 图说口碑明细
-
(
void
)
getPicturePraiseDetailWithCompletion
:(
completionBlock
)
completion
;
// 口碑点赞
-
(
void
)
getLikePicturePraiseWithCompletion
:(
completionBlock
)
completion
;
// 口碑取消点赞
-
(
void
)
cancelLikePicturePraiseWithCompletion
:(
completionBlock
)
completion
;
@end
redstar/Classes/Tools/HttpClient/HttpClient.m
View file @
fff7b6b9
...
...
@@ -323,4 +323,78 @@
}];
}
/**
* 图说口碑相关URL
*/
// 保存图说口碑
-
(
void
)
savePicturePraiseWithParameters
:
(
id
)
parameters
completion
:
(
completionBlock
)
completion
{
[
self
postParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
if
(
completion
)
{
completion
(
response
,
error
);
}
}];
}
// 上传口碑图片
-
(
void
)
upLoadPraisePictureWithParameters
:
(
id
)
parameters
completion
:
(
completionBlock
)
completion
{
[
self
postParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
if
(
completion
)
{
completion
(
response
,
error
);
}
}];
}
// 提交图说口碑
-
(
void
)
submitPicturePraiseWithCompletion
:
(
completionBlock
)
completion
{
[
self
postParameters
:
nil
completion
:
^
(
id
response
,
NSError
*
error
)
{
if
(
completion
)
{
completion
(
response
,
error
);
}
}];
}
// 查询图说口碑
-
(
void
)
queryPicturePraiseWithParameters
:
(
id
)
parameters
completion
:
(
completionBlock
)
completion
{
[
self
postParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
if
(
completion
)
{
completion
(
response
,
error
);
}
}];
}
// 图说口碑明细
-
(
void
)
getPicturePraiseDetailWithCompletion
:
(
completionBlock
)
completion
{
[
self
getParameters
:
nil
completion
:
^
(
id
response
,
NSError
*
error
)
{
if
(
completion
)
{
completion
(
response
,
error
);
}
}];
}
// 口碑点赞
-
(
void
)
getLikePicturePraiseWithCompletion
:
(
completionBlock
)
completion
{
[
self
postParameters
:
nil
completion
:
^
(
id
response
,
NSError
*
error
)
{
if
(
completion
)
{
completion
(
response
,
error
);
}
}];
}
// 口碑取消点赞
-
(
void
)
cancelLikePicturePraiseWithCompletion
:
(
completionBlock
)
completion
{
[
self
postParameters
:
nil
completion
:
^
(
id
response
,
NSError
*
error
)
{
if
(
completion
)
{
completion
(
response
,
error
);
}
}];
}
@end
redstar/Classes/Tools/Menu/Taxis/View/TaxisView.m
View file @
fff7b6b9
...
...
@@ -91,9 +91,7 @@
if
(
_delegate
)
{
[
_delegate
timeChange
:
button
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment