Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

Commit

Permalink
功能新增 >> 完善收藏流程,添加搜索,修复部分bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kayanouriko committed Jan 4, 2018
1 parent 43e4f31 commit 37e2cda
Show file tree
Hide file tree
Showing 72 changed files with 1,611 additions and 709 deletions.
145 changes: 128 additions & 17 deletions EHenTaiViewer.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion EHenTaiViewer/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@

@property (strong, nonatomic) UIWindow *window;


@end

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions EHenTaiViewer/Assets.xcassets/Bookmarks.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Bookmarks.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "Bookmarks@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "Bookmarks@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
23 changes: 23 additions & 0 deletions EHenTaiViewer/Assets.xcassets/mutSelect.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "mutSelect.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "mutSelect@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "mutSelect@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions EHenTaiViewer/Assets.xcassets/toplist.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "toplist.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "toplist@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "toplist@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions EHenTaiViewer/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="rsu-H3-Gff">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="rsu-H3-Gff">
<device id="retina5_5" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13527"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
Expand Down
8 changes: 6 additions & 2 deletions EHenTaiViewer/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.1.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>29</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSPhotoLibraryUsageDescription</key>
<string>此 App 需要您的同意才能读取媒体资料库</string>
<key>UIAppFonts</key>
<array>
<string>iconfont.ttf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
Expand Down
2 changes: 2 additions & 0 deletions EHenTaiViewer/QJAllCommentController.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ - (UITableView *)tableView {
_tableView = [UITableView new];
_tableView.delegate = self;
_tableView.dataSource = self;
_tableView.rowHeight = UITableViewAutomaticDimension;
_tableView.estimatedRowHeight = 60;
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
_tableView.contentInset = UIEdgeInsetsMake(0, 0, 15, 0);
_tableView.translatesAutoresizingMaskIntoConstraints = NO;
Expand Down
9 changes: 4 additions & 5 deletions EHenTaiViewer/QJCollectionViewFlowLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,17 @@ - (CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentO
CGFloat minDetal = 0;
for (UICollectionViewLayoutAttributes *attrs in array) {
if (centerX == attrs.center.x) {
//这种可能是起始位置本身就是中心,这时候不需要调整
//这种可能是最终位置本身就是中心,这时候不需要调整
minDetal = 0;
break;
}
if (isUp && centerX < attrs.center.x) {
CGFloat temp = attrs.center.x - centerX;
CGFloat temp = attrs.center.x - centerX;
if (isUp && temp > 0) {
if (minDetal == 0 || minDetal > temp) {
minDetal = temp;
}
}
else if (!isUp && centerX > attrs.center.x){
CGFloat temp = attrs.center.x - centerX;
else if (!isUp && temp < 0){
if (minDetal == 0 || minDetal < temp) {
minDetal = temp;
}
Expand Down
2 changes: 1 addition & 1 deletion EHenTaiViewer/QJFavoritesSelectController.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(didSelectFavFolderNameWithArr:index:)]) {
[self.delegate didSelectFavFolderNameWithArr:self.datas[indexPath.row] index:indexPath.row == self.datas.count - 1 ? -1 : indexPath.row];
[self.delegate didSelectFavFolderNameWithArr:self.datas[indexPath.row] index:self.isLikeVCJump && indexPath.row == self.datas.count - 1 ? -1 : indexPath.row];
[self.navigationController popViewControllerAnimated:YES];
}
}
Expand Down
3 changes: 3 additions & 0 deletions EHenTaiViewer/QJHenTaiParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ typedef void (^SettingHandler)(QJHenTaiParserStatus status ,NSDictionary<NSStrin
- (void)updateHotListInfoComplete:(ListHandler)completion;
- (void)updateLikeListInfoWithUrl:(NSString *)url complete:(ListHandler)completion;
- (void)updateOtherListInfoWithUrl:(NSString *)url complete:(ListHandler)completion;
//获取单个链接的画廊信息
- (void)updateOneUrlInfoWithUrl:(NSString *)url complete:(ListHandler)completion;
//详情
- (void)updateGalleryInfoWithUrl:(NSString *)url complete:(GalleryHandler)completion;
//大图
Expand All @@ -62,6 +64,7 @@ typedef void (^SettingHandler)(QJHenTaiParserStatus status ,NSDictionary<NSStrin
//操作相关
//收藏
- (void)updateFavoriteStatus:(BOOL)isFavorite model:(QJListItem *)item index:(NSInteger)index content:(NSString *)content complete:(LoginHandler)completion;
- (void)updateMutlitFavoriteWithUrl:(NSString *)url status:(NSString *)ddact modifygids:(NSArray *)modifygids complete:(LoginHandler)completion;
//评论
- (void)updateCommentWithContent:(NSString *)content url:(NSString *)url complete:(LoginHandler)completion;
//评星
Expand Down
Loading

0 comments on commit 37e2cda

Please sign in to comment.