├── .DS_Store ├── GLikeZhiHuPageDemo ├── Assets.xcassets │ ├── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── ViewController.h ├── AppDelegate.h ├── main.m ├── ViewController.m ├── ZhiHuPage │ ├── View │ │ ├── GTodayHeadlineHeaderView.h │ │ ├── Page │ │ │ ├── GHeadlineMoreView.h │ │ │ ├── GHeadlinePageTopView.h │ │ │ ├── GHeadlinePageTopView.m │ │ │ └── GHeadlineMoreView.m │ │ ├── GHeadlineNavigationView.h │ │ ├── GTodayHeadlineHeaderView.m │ │ └── GHeadlineNavigationView.m │ ├── Controller │ │ ├── GTodayHeadlineViewController.h │ │ ├── GSubPageHeadlineViewController.h │ │ ├── GBaseHeadlineViewController.h │ │ ├── GSubPageHeadlineViewController.m │ │ ├── GTodayHeadlineViewController.m │ │ └── GBaseHeadlineViewController.m │ └── Presenter │ │ ├── GTodayHeadlinePresenter.h │ │ └── GTodayHeadlinePresenter.m ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard └── AppDelegate.m ├── README.md ├── GLikeZhiHuPageDemo.xcodeproj ├── xcuserdata │ └── caoguo.xcuserdatad │ │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcuserdata │ │ └── caoguo.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── project.pbxproj ├── GLikeZhiHuPageDemoTests ├── Info.plist └── GLikeZhiHuPageDemoTests.m └── GLikeZhiHuPageDemoUITests ├── Info.plist └── GLikeZhiHuPageDemoUITests.m /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoJacob/LikeZhiHuPage/HEAD/.DS_Store -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iOS 类似知乎分页(问答页)效果的实现 2 | 3 | 实现思路见链接: https://juejin.im/post/5d3b0cebe51d4556d86c7bb4 4 | 演示链接: https://m.weibo.cn/1990517135/4398431764047996 5 | 6 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo.xcodeproj/xcuserdata/caoguo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo.xcodeproj/project.xcworkspace/xcuserdata/caoguo.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoJacob/LikeZhiHuPage/HEAD/GLikeZhiHuPageDemo.xcodeproj/project.xcworkspace/xcuserdata/caoguo.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // GLikeZhiHuPageDemo 4 | // 5 | // Created by Caoguo on 2019/7/29. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // GLikeZhiHuPageDemo 4 | // 5 | // Created by Caoguo on 2019/7/29. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // GLikeZhiHuPageDemo 4 | // 5 | // Created by Caoguo on 2019/7/29. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // GLikeZhiHuPageDemo 4 | // 5 | // Created by Caoguo on 2019/7/29. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | } 21 | 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo.xcodeproj/xcuserdata/caoguo.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | GLikeZhiHuPageDemo.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/View/GTodayHeadlineHeaderView.h: -------------------------------------------------------------------------------- 1 | // 2 | // GTodayHeadlineHeaderView.h 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2018/10/16. 6 | // Copyright © 2018 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface GTodayHeadlineHeaderView : UIView 14 | 15 | @property (nonatomic, strong) NSDate *date; 16 | 17 | - (void)effectScrollWithOffsetY: (CGFloat )offsetY; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/Controller/GTodayHeadlineViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // GTodayHeadlineViewController.h 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2018/10/16. 6 | // Copyright © 2018 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GBaseHeadlineViewController.h" 10 | #import "GHeadlineNavigationView.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface GTodayHeadlineViewController : GBaseHeadlineViewController 15 | 16 | @property (nonatomic, strong) GHeadlineNavigationView *customNavigationView; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/Controller/GSubPageHeadlineViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // GSubPageHeadlineViewController.h 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GBaseHeadlineViewController.h" 10 | #import "GHeadlineNavigationView.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface GSubPageHeadlineViewController : GBaseHeadlineViewController 15 | 16 | @property (nonatomic, weak) UIView *customParentView; 17 | @property (nonatomic, weak) GHeadlineNavigationView *parentNavigationView; 18 | @property (nonatomic, copy) void(^newPageHandle)(BOOL isUp); 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/Presenter/GTodayHeadlinePresenter.h: -------------------------------------------------------------------------------- 1 | // 2 | // GTodayHeadlinePresenter.h 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2018/10/16. 6 | // Copyright © 2018 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface GTodayHeadlinePresenter : NSObject 14 | 15 | @property (nonatomic, strong) UITableView *tableView; 16 | 17 | @property (nonatomic, assign) BOOL isSubPage; 18 | 19 | @property (nonatomic, copy) void(^didScrollCallback)(UIScrollView *scrollView); 20 | @property (nonatomic, copy) void(^didEndDragingCallback)(UIScrollView *scrollView); 21 | 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/View/Page/GHeadlineMoreView.h: -------------------------------------------------------------------------------- 1 | // 2 | // GHeadlineMoreView.h 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface GHeadlineMoreView : UIView 14 | 15 | @property (nonatomic, assign) CGFloat space; 16 | @property (nonatomic, assign) CGFloat originFrameWidth; 17 | @property (nonatomic, assign) CGFloat triggerSpaceWidth; // default is 60.f 18 | 19 | @property (nonatomic, assign) BOOL noMoreNextPageData; 20 | 21 | - (void)effectOffsetY: (CGFloat )offsetY; 22 | 23 | - (void)fold; 24 | 25 | - (void)updateLastDataStatus; 26 | 27 | @end 28 | 29 | NS_ASSUME_NONNULL_END 30 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/View/Page/GHeadlinePageTopView.h: -------------------------------------------------------------------------------- 1 | // 2 | // GHeadlinePageTopView.h 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface GHeadlinePageTopView : UIView 14 | 15 | @property (nonatomic, assign) CGFloat space; 16 | @property (nonatomic, assign) CGFloat originFrameWidth; 17 | @property (nonatomic, assign) CGFloat triggerSpaceWidth; // default is 60.f 18 | 19 | @property (nonatomic, assign) BOOL noMoreTopPageData; 20 | 21 | - (void)effectOffsetY: (CGFloat )offsetY; 22 | 23 | - (void)fold; 24 | 25 | - (void)updateLastDataStatus; 26 | 27 | @end 28 | 29 | NS_ASSUME_NONNULL_END 30 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/View/GHeadlineNavigationView.h: -------------------------------------------------------------------------------- 1 | // 2 | // GHeadlineNavigationView.h 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface GHeadlineNavigationView : UIView 14 | 15 | //@property (nonatomic, strong) UIButton *customShareButton; 16 | //@property (nonatomic, strong) UIButton *closeButton; 17 | //@property (nonatomic, strong) UIButton *listButton; 18 | //@property (nonatomic, copy) void(^customShareButtonHandle)(void); 19 | //@property (nonatomic, copy) void(^closeButtonHandle)(void); 20 | // 21 | //- (void)updateSuperViewWhenTransformAnimationWithView: (UIView *)view 22 | // isLoadOtherPage: (BOOL)loadOtherPage; 23 | 24 | 25 | 26 | @end 27 | 28 | NS_ASSUME_NONNULL_END 29 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemoTests/GLikeZhiHuPageDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // GLikeZhiHuPageDemoTests.m 3 | // GLikeZhiHuPageDemoTests 4 | // 5 | // Created by Caoguo on 2019/7/29. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface GLikeZhiHuPageDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation GLikeZhiHuPageDemoTests 16 | 17 | - (void)setUp { 18 | // Put setup code here. This method is called before the invocation of each test method in the class. 19 | } 20 | 21 | - (void)tearDown { 22 | // Put teardown code here. This method is called after the invocation of each test method in the class. 23 | } 24 | 25 | - (void)testExample { 26 | // This is an example of a functional test case. 27 | // Use XCTAssert and related functions to verify your tests produce the correct results. 28 | } 29 | 30 | - (void)testPerformanceExample { 31 | // This is an example of a performance test case. 32 | [self measureBlock:^{ 33 | // Put the code you want to measure the time of here. 34 | }]; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/Controller/GBaseHeadlineViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // GBaseHeadlineViewController.h 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GHeadlinePageTopView.h" 10 | #import "GHeadlineMoreView.h" 11 | #import "GTodayHeadlineHeaderView.h" 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface GBaseHeadlineViewController : UIViewController 16 | 17 | @property (nonatomic, strong) UITableView *tableView; 18 | @property (nonatomic, strong) GTodayHeadlineHeaderView *headerView; 19 | @property (nonatomic, strong) GHeadlinePageTopView *topView; 20 | @property (nonatomic, strong) GHeadlineMoreView *moreView; 21 | @property (nonatomic, assign) BOOL isSubPage; 22 | @property (nonatomic, assign) BOOL isPageViewDisplay; 23 | @property (nonatomic, assign) NSInteger topPageTimestamp; 24 | @property (nonatomic, assign) NSInteger nextPageTimestamp; 25 | 26 | - (void)loadNewPageDataWithIsUp:(BOOL)isUp; 27 | 28 | 29 | - (void)requestNewPageData: (NSInteger )timestamp; 30 | 31 | - (void)resetTableViewContentOffset; 32 | 33 | - (void)didScrollToBottom; 34 | 35 | @end 36 | 37 | NS_ASSUME_NONNULL_END 38 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemoUITests/GLikeZhiHuPageDemoUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // GLikeZhiHuPageDemoUITests.m 3 | // GLikeZhiHuPageDemoUITests 4 | // 5 | // Created by Caoguo on 2019/7/29. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface GLikeZhiHuPageDemoUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation GLikeZhiHuPageDemoUITests 16 | 17 | - (void)setUp { 18 | // Put setup code here. This method is called before the invocation of each test method in the class. 19 | 20 | // In UI tests it is usually best to stop immediately when a failure occurs. 21 | self.continueAfterFailure = NO; 22 | 23 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 24 | [[[XCUIApplication alloc] init] launch]; 25 | 26 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 27 | } 28 | 29 | - (void)tearDown { 30 | // Put teardown code here. This method is called after the invocation of each test method in the class. 31 | } 32 | 33 | - (void)testExample { 34 | // Use recording to get started writing UI tests. 35 | // Use XCTAssert and related functions to verify your tests produce the correct results. 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // GLikeZhiHuPageDemo 4 | // 5 | // Created by Caoguo on 2019/7/29. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/Presenter/GTodayHeadlinePresenter.m: -------------------------------------------------------------------------------- 1 | // 2 | // GTodayHeadlinePresenter.m 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2018/10/16. 6 | // Copyright © 2018 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GTodayHeadlinePresenter.h" 10 | 11 | @interface GTodayHeadlinePresenter () 12 | 13 | @property (nonatomic, strong) NSMutableArray *dataSource; 14 | 15 | @end 16 | 17 | @implementation GTodayHeadlinePresenter 18 | 19 | - (void)setTableView:(UITableView *)tableView { 20 | _tableView = tableView; 21 | [self setupTableView]; 22 | } 23 | 24 | - (void)setupTableView { 25 | [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:NSStringFromClass([UITableViewCell class])]; 26 | [self _setUp]; 27 | } 28 | 29 | - (void) _setUp { 30 | self.tableView.delegate = self; 31 | self.tableView.dataSource = self; 32 | [self.tableView reloadData]; 33 | } 34 | 35 | 36 | #pragma mark - UITableViewDelegate, UITableViewDataSource 37 | 38 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 39 | return 25; 40 | } 41 | 42 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { 43 | return 50.f; 44 | } 45 | 46 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 47 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([UITableViewCell class]) forIndexPath:indexPath]; 48 | cell.textLabel.text = [NSString stringWithFormat:@"row %ld",(long)indexPath.row]; 49 | cell.backgroundColor = self.isSubPage? [UIColor purpleColor] : [UIColor whiteColor]; 50 | return cell; 51 | } 52 | 53 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 54 | [tableView deselectRowAtIndexPath:indexPath animated:YES]; 55 | 56 | } 57 | 58 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView { 59 | !self.didScrollCallback?:self.didScrollCallback(scrollView); 60 | } 61 | 62 | - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate { 63 | !self.didEndDragingCallback?:self.didEndDragingCallback(scrollView); 64 | } 65 | 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/Controller/GSubPageHeadlineViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // GSubPageHeadlineViewController.m 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GSubPageHeadlineViewController.h" 10 | 11 | @interface GSubPageHeadlineViewController () 12 | 13 | @end 14 | 15 | @implementation GSubPageHeadlineViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | self.isSubPage = YES; 20 | } 21 | 22 | #pragma mark - Public 23 | 24 | - (void)loadNewPageDataWithIsUp:(BOOL)isUp { 25 | CGAffineTransform offScreenUp = CGAffineTransformMakeTranslation(0, - self.tableView.superview.frame.size.height); 26 | CGAffineTransform offScreenDown = CGAffineTransformMakeTranslation(0, self.tableView.superview.frame.size.height); 27 | 28 | // 顶部以及底部view 29 | [self setNeedDisplayParentViewHeaderOrFooterView:NO]; 30 | 31 | // 截屏view 32 | UIView *screenShotView = [self.view snapshotViewAfterScreenUpdates:YES]; 33 | UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; 34 | [keyWindow addSubview:screenShotView]; 35 | 36 | [self.view removeFromSuperview]; 37 | 38 | //将nextPageView放置到屏幕之外并添加到主View上 39 | if (isUp) { 40 | self.customParentView.transform = offScreenUp; 41 | }else { 42 | self.customParentView.transform = offScreenDown; 43 | } 44 | 45 | //动画开始 46 | [UIView animateWithDuration:.35f animations:^{ 47 | if (isUp) { //上一篇:当前view滑出屏幕,新View从顶部-->进入屏幕 48 | screenShotView.transform = offScreenDown; 49 | }else { //下一篇:当前view滑出屏幕,新View从顶部-->进入屏幕 50 | screenShotView.transform = offScreenUp; 51 | } 52 | self.customParentView.transform = CGAffineTransformIdentity; 53 | } completion:^(BOOL finished) { 54 | //动画完成后清理底层tableView,以及滑出屏幕的view 55 | [self.view removeFromSuperview]; 56 | [screenShotView removeFromSuperview]; 57 | 58 | [self setNeedDisplayParentViewHeaderOrFooterView:YES]; 59 | [self resetTableViewContentOffset]; 60 | }]; 61 | !self.newPageHandle?:self.newPageHandle(isUp); 62 | } 63 | 64 | 65 | - (void)setNeedDisplayParentViewHeaderOrFooterView: (BOOL)display { 66 | [[self.customParentView viewWithTag:1991] setHidden:!display]; 67 | [[self.customParentView viewWithTag:1992] setHidden:!display]; 68 | [self.topView setHidden:!display]; 69 | [self.moreView setHidden:!display]; 70 | } 71 | 72 | 73 | @end 74 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/View/Page/GHeadlinePageTopView.m: -------------------------------------------------------------------------------- 1 | // 2 | // GHeadlinePageTopView.m 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GHeadlinePageTopView.h" 10 | 11 | @interface GHeadlinePageTopView () 12 | 13 | @property (nonatomic, assign) CGFloat randius; 14 | @property (nonatomic, assign) BOOL isLastData; 15 | 16 | @property (nonatomic, strong) UIImageView *arrowImageView; 17 | @property (nonatomic, strong) UILabel *titleLabel; 18 | 19 | @end 20 | 21 | @implementation GHeadlinePageTopView 22 | 23 | - (instancetype)initWithFrame:(CGRect)frame { 24 | self = [super initWithFrame:frame]; 25 | if (self) { 26 | self.originFrameWidth = 30; 27 | self.space = 0; 28 | self.triggerSpaceWidth = 60; 29 | [self addSubview:self.titleLabel]; 30 | self.arrowImageView.transform = CGAffineTransformMakeRotation(M_PI); 31 | } 32 | return self; 33 | } 34 | 35 | - (void)fold { 36 | 37 | } 38 | 39 | - (void)updateLastDataStatus { 40 | self.isLastData = YES; 41 | } 42 | 43 | #pragma mark - Getter 44 | 45 | - (UIImageView *)arrowImageView { 46 | if (!_arrowImageView) { 47 | _arrowImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 36, 36)]; 48 | _arrowImageView.image = [UIImage imageNamed:@"headline_guide_arrow"]; 49 | } 50 | return _arrowImageView; 51 | } 52 | 53 | - (UILabel *)titleLabel { 54 | if (!_titleLabel) { 55 | _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.arrowImageView.frame) + 15, [UIScreen mainScreen].bounds.size.width, 20)]; 56 | _titleLabel.numberOfLines = 0; 57 | _titleLabel.text = @"下拉查看后一天"; 58 | _titleLabel.textColor = [UIColor lightGrayColor]; 59 | _titleLabel.textAlignment = NSTextAlignmentCenter; 60 | _titleLabel.font = [UIFont systemFontOfSize:14.f]; 61 | } 62 | return _titleLabel; 63 | } 64 | 65 | - (void)effectOffsetY: (CGFloat )offsetY { 66 | offsetY = - offsetY; 67 | if (offsetY <= 0) { 68 | offsetY = 0; 69 | } 70 | [self updateTriggerStatus:(offsetY >= self.triggerSpaceWidth)]; 71 | CGFloat _originFrameY = - CGRectGetHeight(self.frame); 72 | CGFloat _targetFrameY = _originFrameY + offsetY; 73 | CGRect rect = self.frame; 74 | rect.origin.y = _targetFrameY; 75 | self.frame = rect; 76 | // [self setViewFrameY:_targetFrameY]; 77 | } 78 | 79 | 80 | - (void)updateTriggerStatus: (BOOL)trigger { 81 | if (self.noMoreTopPageData) { 82 | self.titleLabel.text = @"已经到顶了"; 83 | return; 84 | } 85 | if (trigger) { 86 | self.titleLabel.text = @"松开查看后一天"; 87 | }else { 88 | self.titleLabel.text = @"下拉查看后一天"; 89 | } 90 | } 91 | 92 | @end 93 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/View/Page/GHeadlineMoreView.m: -------------------------------------------------------------------------------- 1 | // 2 | // GHeadlineMoreView.m 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GHeadlineMoreView.h" 10 | 11 | @interface GHeadlineMoreView () 12 | 13 | @property (nonatomic, strong) UIImageView *arrowImageView; 14 | @property (nonatomic, strong) UILabel *titleLabel; 15 | 16 | @end 17 | 18 | @implementation GHeadlineMoreView 19 | 20 | - (instancetype)initWithFrame:(CGRect)frame { 21 | self = [super initWithFrame:frame]; 22 | if (self) { 23 | self.originFrameWidth = 30; 24 | self.space = 0; 25 | self.triggerSpaceWidth = 60; 26 | [self addSubview:self.titleLabel]; 27 | } 28 | return self; 29 | } 30 | 31 | - (void)fold { 32 | 33 | } 34 | 35 | - (void)updateLastDataStatus { 36 | // self.isLastData = YES; 37 | } 38 | 39 | #pragma mark - Getter 40 | 41 | - (UIImageView *)arrowImageView { 42 | if (!_arrowImageView) { 43 | _arrowImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 36, 36)]; 44 | _arrowImageView.image = [UIImage imageNamed:@"headline_guide_arrow"]; 45 | } 46 | return _arrowImageView; 47 | } 48 | 49 | - (UILabel *)titleLabel { 50 | if (!_titleLabel) { 51 | _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 15, [UIScreen mainScreen].bounds.size.width, 20)]; 52 | _titleLabel.numberOfLines = 0; 53 | _titleLabel.text = @"上拉查看前一天"; 54 | _titleLabel.textColor = [UIColor lightGrayColor]; 55 | _titleLabel.textAlignment = NSTextAlignmentCenter; 56 | _titleLabel.font = [UIFont systemFontOfSize:14.f]; 57 | } 58 | return _titleLabel; 59 | } 60 | 61 | - (void)effectOffsetY: (CGFloat )offsetY { 62 | if (offsetY <= 0) { 63 | offsetY = 0; 64 | } 65 | [self updateTriggerStatus:(offsetY >= self.triggerSpaceWidth)]; 66 | CGFloat _originFrameY = [UIScreen mainScreen].bounds.size.height; 67 | CGFloat _targetFrameY = _originFrameY - offsetY; 68 | CGRect rect = self.frame; 69 | rect.origin.y = _targetFrameY; 70 | self.frame = rect; 71 | } 72 | 73 | - (void)updateViewFrameY: (CGFloat )frameY { 74 | CGRect rect = self.frame; 75 | rect.origin.y = frameY; 76 | self.frame = rect; 77 | } 78 | 79 | - (void)updateViewFrameWidth: (CGFloat )frameWidth { 80 | CGRect rect = self.frame; 81 | rect.size.width = frameWidth; 82 | self.frame = rect; 83 | } 84 | 85 | 86 | - (void)updateTriggerStatus: (BOOL)trigger { 87 | if (self.noMoreNextPageData) { 88 | self.titleLabel.text = @"已经到底了"; 89 | return; 90 | } 91 | if (trigger) { 92 | self.titleLabel.text = @"松开查看前一天"; 93 | }else { 94 | self.titleLabel.text = @"上拉查看前一天"; 95 | } 96 | } 97 | 98 | @end 99 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/Controller/GTodayHeadlineViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // GTodayHeadlineViewController.m 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2018/10/16. 6 | // Copyright © 2018 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GTodayHeadlineViewController.h" 10 | #import "GSubPageHeadlineViewController.h" 11 | 12 | @interface GTodayHeadlineViewController () 13 | 14 | @property (nonatomic, strong) GSubPageHeadlineViewController *otherPageViewController; 15 | 16 | @end 17 | 18 | @implementation GTodayHeadlineViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | [self.view addSubview:self.customNavigationView]; 23 | } 24 | 25 | 26 | - (void)viewWillDisappear:(BOOL)animated { 27 | [super viewWillDisappear:animated]; 28 | } 29 | 30 | #pragma mark - Getter 31 | 32 | - (GHeadlineNavigationView *)customNavigationView { 33 | if (!_customNavigationView) { 34 | _customNavigationView = [[GHeadlineNavigationView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 64)]; 35 | _customNavigationView.tag = 1993; 36 | } 37 | return _customNavigationView; 38 | } 39 | 40 | - (GSubPageHeadlineViewController *)otherPageViewController { 41 | if (!_otherPageViewController) { 42 | _otherPageViewController = [[GSubPageHeadlineViewController alloc] init]; 43 | _otherPageViewController.customParentView = self.view; 44 | _otherPageViewController.parentNavigationView = self.customNavigationView; 45 | } 46 | return _otherPageViewController; 47 | } 48 | 49 | #pragma mark - Public 50 | 51 | - (void)didScrollToBottom { 52 | 53 | } 54 | 55 | // 分页 56 | - (void)loadNewPageDataWithIsUp:(BOOL)isUp { 57 | 58 | CGAffineTransform offScreenUp = CGAffineTransformMakeTranslation(0, - self.tableView.superview.frame.size.height); 59 | CGAffineTransform offScreenDown = CGAffineTransformMakeTranslation(0, self.tableView.superview.frame.size.height); 60 | 61 | //生成原View截图并添加到主View上 62 | UIView *screenShotView = [self.view snapshotViewAfterScreenUpdates:YES]; 63 | [self.view addSubview:screenShotView]; 64 | 65 | //TODO:数据相关 66 | UIView *newPageView = self.otherPageViewController.view; 67 | newPageView.frame = self.view.bounds; 68 | //将nextPageView放置到屏幕之外并添加到主View上 69 | newPageView.transform = isUp ? offScreenUp : offScreenDown; 70 | if (newPageView.superview) { 71 | 72 | }else { 73 | [self.view addSubview:newPageView]; 74 | } 75 | [self.childViewControllers makeObjectsPerformSelector:@selector(removeFromParentViewController)]; 76 | 77 | [self addChildViewController:self.otherPageViewController]; 78 | [self setNeedDisplaySubViewHeaderOrFooterView:NO view:newPageView]; 79 | 80 | //动画开始 81 | [UIView animateWithDuration:0.35 animations:^{ 82 | //上一篇:当前view滑出屏幕,新View从顶部-->进入屏幕 83 | 84 | //下一篇:当前view滑出屏幕,新View从顶部-->进入屏幕 85 | screenShotView.transform = isUp ? offScreenDown : offScreenUp; 86 | newPageView.transform = CGAffineTransformIdentity; 87 | } completion:^(BOOL finished) { 88 | //动画完成后清理滑出屏幕的view 89 | [screenShotView removeFromSuperview]; 90 | 91 | [self setNeedDisplaySubViewHeaderOrFooterView:YES view:newPageView]; 92 | [self resetTableViewContentOffset]; 93 | }]; 94 | } 95 | 96 | - (void)setNeedDisplaySubViewHeaderOrFooterView: (BOOL)display view: (UIView *)newPageView { 97 | [[newPageView viewWithTag:1991] setHidden:!display]; 98 | [[newPageView viewWithTag:1992] setHidden:!display]; 99 | [self.topView setHidden:!display]; 100 | [self.moreView setHidden:!display]; 101 | } 102 | 103 | 104 | @end 105 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/View/GTodayHeadlineHeaderView.m: -------------------------------------------------------------------------------- 1 | // 2 | // GTodayHeadlineHeaderView.m 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2018/10/16. 6 | // Copyright © 2018 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GTodayHeadlineHeaderView.h" 10 | 11 | @interface GTodayHeadlineHeaderView () 12 | 13 | @property (nonatomic, strong) UIImageView *coverImageView; 14 | @property (nonatomic, strong) UILabel *dateTitleLabel; 15 | @property (nonatomic, strong) UIImageView *signImageView; 16 | 17 | @property (nonatomic, strong) UILabel *titleLabel; 18 | @property (nonatomic, strong) UIView *alphaView; 19 | 20 | @property (nonatomic, assign) CGFloat offsetY; 21 | 22 | @end 23 | 24 | @implementation GTodayHeadlineHeaderView 25 | 26 | - (instancetype)initWithFrame:(CGRect)frame { 27 | self = [super initWithFrame:frame]; 28 | if (self) { 29 | [self addSubview:self.coverImageView]; 30 | [self addSubview:self.dateTitleLabel]; 31 | [self addSubview:self.signImageView]; 32 | } 33 | return self; 34 | } 35 | 36 | - (void)setDate:(NSDate *)date { 37 | _date = date; 38 | self.dateTitleLabel.text = @""; 39 | } 40 | 41 | 42 | #pragma mark - Getter 43 | 44 | - (UIImageView *)coverImageView { 45 | if (!_coverImageView) { 46 | _coverImageView = [[UIImageView alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-147, 0, 147, 147)]; 47 | _coverImageView.clipsToBounds = YES; 48 | _coverImageView.contentMode = UIViewContentModeScaleAspectFill; 49 | _coverImageView.image = [UIImage imageNamed:@"headline_topright"]; 50 | } 51 | return _coverImageView; 52 | } 53 | 54 | - (UILabel *)titleLabel { 55 | if (!_titleLabel) { 56 | _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 20 + 8, [UIScreen mainScreen].bounds.size.width-140, 24)]; 57 | _titleLabel.font = [UIFont systemFontOfSize:17.f]; 58 | _titleLabel.textColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0]; 59 | _titleLabel.textAlignment = NSTextAlignmentCenter; 60 | _titleLabel.text = @"选股头条"; 61 | } 62 | return _titleLabel; 63 | } 64 | 65 | - (UILabel *)dateTitleLabel { 66 | if (!_dateTitleLabel) { 67 | _dateTitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 20 + 84, [UIScreen mainScreen].bounds.size.width-50, 25)]; 68 | _dateTitleLabel.font = [UIFont systemFontOfSize:14.f]; 69 | _dateTitleLabel.textColor = [UIColor lightGrayColor]; 70 | _dateTitleLabel.textAlignment = NSTextAlignmentLeft; 71 | } 72 | return _dateTitleLabel; 73 | } 74 | 75 | - (UIImageView *)signImageView { 76 | if (!_signImageView) { 77 | _signImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, CGRectGetMaxY(self.dateTitleLabel.frame) + 5, 165, 39)]; 78 | _signImageView.clipsToBounds = YES; 79 | _signImageView.contentMode = UIViewContentModeScaleAspectFill; 80 | _signImageView.image = [UIImage imageNamed:@"headline_sign"]; 81 | } 82 | return _signImageView; 83 | } 84 | 85 | - (UIView *)alphaView { 86 | if (!_alphaView) { 87 | _alphaView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)]; 88 | _alphaView.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0]; 89 | } 90 | return _alphaView; 91 | } 92 | 93 | - (void)effectScrollWithOffsetY: (CGFloat )offsetY { 94 | CGFloat _navHeight = 20; 95 | CGFloat NavBackgroundTransparency = ((offsetY - 80) / _navHeight); 96 | NavBackgroundTransparency = (NavBackgroundTransparency > 1) ? 1 : NavBackgroundTransparency; 97 | self.alphaView.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:NavBackgroundTransparency]; 98 | self.titleLabel.textColor = [[UIColor lightGrayColor] colorWithAlphaComponent:NavBackgroundTransparency]; 99 | if (NavBackgroundTransparency <= 0) { 100 | self.alphaView.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0]; 101 | self.titleLabel.textColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0]; 102 | } 103 | self.offsetY = offsetY; 104 | if (self.offsetY<0) { 105 | self.offsetY = 0; 106 | } 107 | } 108 | 109 | 110 | @end 111 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/View/GHeadlineNavigationView.m: -------------------------------------------------------------------------------- 1 | // 2 | // GHeadlineNavigationView.m 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GHeadlineNavigationView.h" 10 | 11 | @interface GHeadlineNavigationView () 12 | 13 | 14 | 15 | @end 16 | 17 | @implementation GHeadlineNavigationView 18 | 19 | - (instancetype)initWithFrame:(CGRect)frame { 20 | self = [super initWithFrame:frame]; 21 | if (self) { 22 | self.backgroundColor = [UIColor clearColor]; 23 | // [self addSubview:self.listButton]; 24 | // [self addSubview:self.customShareButton]; 25 | // [self addSubview:self.closeButton]; 26 | } 27 | return self; 28 | } 29 | 30 | #pragma mark - Getter 31 | 32 | //- (UIButton *)listButton { 33 | // if (!_listButton) { 34 | // _listButton = [UIButton buttonWithType:UIButtonTypeCustom]; 35 | // _listButton.frame = CGRectMake(KScreenWidth-150, KStatusBarHeight + 7 , 30, 30); 36 | // [_listButton setBackgroundColor:[[UIColor blackColor] colorWithAlphaComponent:0.5]]; 37 | // _listButton.clipsToBounds = YES; 38 | // _listButton.layer.cornerRadius = 15.f; 39 | // _listButton.titleLabel.font = [UIFont fontWithName:@"iconfont" size:16.f]; 40 | // [_listButton setTitle:@"\U0000e647" forState:UIControlStateNormal]; 41 | // [_listButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 42 | // [_listButton addTarget:self action:@selector(listButtonAction:) forControlEvents:UIControlEventTouchUpInside]; 43 | // } 44 | // return _listButton; 45 | //} 46 | // 47 | //- (UIButton *)customShareButton { 48 | // if (!_customShareButton) { 49 | // _customShareButton = [UIButton buttonWithType:UIButtonTypeCustom]; 50 | // _customShareButton.frame = CGRectMake(KScreenWidth-100, KStatusBarHeight + 7 , 30, 30); 51 | // [_customShareButton setBackgroundColor:[[UIColor blackColor] colorWithAlphaComponent:0.5]]; 52 | // _customShareButton.clipsToBounds = YES; 53 | // _customShareButton.layer.cornerRadius = 15.f; 54 | // _customShareButton.titleLabel.font = [UIFont fontWithName:@"iconfont" size:16.f]; 55 | // [_customShareButton setTitle:@"\U0000e6eb" forState:UIControlStateNormal]; 56 | // [_customShareButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 57 | // [_customShareButton addTarget:self action:@selector(customShareButtonAction:) forControlEvents:UIControlEventTouchUpInside]; 58 | // } 59 | // return _customShareButton; 60 | //} 61 | // 62 | //- (UIButton *)closeButton { 63 | // if (!_closeButton) { 64 | // _closeButton = [UIButton buttonWithType:UIButtonTypeCustom]; 65 | // _closeButton.frame = CGRectMake(KScreenWidth-50, KStatusBarHeight+ 7 , 30, 30); 66 | // [_closeButton setBackgroundColor:[[UIColor blackColor] colorWithAlphaComponent:0.5]]; 67 | // _closeButton.clipsToBounds = YES; 68 | // _closeButton.layer.cornerRadius = 15.f; 69 | // _closeButton.titleLabel.font = [UIFont fontWithName:@"iconfont" size:16.f]; 70 | // [_closeButton setTitle:@"\U0000e618" forState:UIControlStateNormal]; 71 | // [_closeButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 72 | // [_closeButton addTarget:self action:@selector(closeButtonAction:) forControlEvents:UIControlEventTouchUpInside]; 73 | // } 74 | // return _closeButton; 75 | //} 76 | // 77 | //#pragma mark - Public 78 | // 79 | //- (void)updateSuperViewWhenTransformAnimationWithView: (UIView *)view 80 | // isLoadOtherPage: (BOOL)loadOtherPage { 81 | // UIView *customNavigationView = [view viewWithTag:1993]; 82 | // [customNavigationView removeFromSuperview]; 83 | // UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; 84 | // [keyWindow addSubview:customNavigationView]; 85 | // [self performHandleBlock:^{ 86 | // [customNavigationView removeFromSuperview]; 87 | // [view addSubview:customNavigationView]; 88 | // } afterDelay:.36f]; 89 | //} 90 | // 91 | //#pragma mark - IBActions 92 | // 93 | //- (void)customShareButtonAction: (UIButton *)button { 94 | // !self.customShareButtonHandle?:self.customShareButtonHandle(); 95 | //} 96 | // 97 | //- (void)closeButtonAction: (UIButton *)button { 98 | // !self.closeButtonHandle?:self.closeButtonHandle(); 99 | //} 100 | // 101 | //- (void)listButtonAction: (UIButton *)button { 102 | //// [[MRouter sharedRouter] handleURL:[NSURL URLWithString:@"native://nativeapp/headlineList"] userInfo:nil]; 103 | //} 104 | 105 | @end 106 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo/ZhiHuPage/Controller/GBaseHeadlineViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // GBaseHeadlineViewController.m 3 | // GHeadlineFramework 4 | // 5 | // Created by Caoguo on 2019/1/17. 6 | // Copyright © 2019 Namegold. All rights reserved. 7 | // 8 | 9 | #import "GBaseHeadlineViewController.h" 10 | #import "GTodayHeadlinePresenter.h" 11 | 12 | @interface GBaseHeadlineViewController () 13 | 14 | @property (nonatomic, strong) GTodayHeadlinePresenter *presenter; 15 | 16 | @end 17 | 18 | @implementation GBaseHeadlineViewController 19 | 20 | - (void)dealloc { 21 | 22 | } 23 | 24 | - (void)viewDidLoad { 25 | [super viewDidLoad]; 26 | [self.view addSubview:self.tableView]; 27 | [self.view addSubview:self.topView]; 28 | [self.view addSubview:self.moreView]; 29 | [self _setUp]; 30 | } 31 | 32 | - (BOOL)fd_prefersNavigationBarHidden { 33 | return YES; 34 | } 35 | 36 | - (void) _setUp { 37 | self.presenter.tableView = self.tableView; 38 | } 39 | 40 | - (void)setIsSubPage:(BOOL)isSubPage { 41 | _isSubPage = isSubPage; 42 | self.presenter.isSubPage = _isSubPage; 43 | } 44 | 45 | #pragma mark - Getter 46 | 47 | - (UITableView *)tableView { 48 | if (!_tableView) { 49 | _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) style:UITableViewStylePlain]; 50 | _tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 51 | _tableView.backgroundColor = [UIColor whiteColor]; 52 | _tableView.tag = 1995; 53 | } 54 | return _tableView; 55 | } 56 | 57 | - (GTodayHeadlineHeaderView *)headerView { 58 | if (!_headerView) { 59 | _headerView = [[GTodayHeadlineHeaderView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 20 + 116)]; 60 | _headerView.backgroundColor = [UIColor whiteColor]; 61 | } 62 | return _headerView; 63 | } 64 | 65 | - (GHeadlinePageTopView *)topView { 66 | if (!_topView) { 67 | _topView = [[GHeadlinePageTopView alloc] initWithFrame:CGRectMake(0, -100, CGRectGetWidth([UIScreen mainScreen].bounds), 100)]; 68 | _topView.originFrameWidth = 30; 69 | _topView.space = 0; 70 | _topView.triggerSpaceWidth = 80.f; 71 | _topView.backgroundColor = [UIColor whiteColor]; 72 | _topView.tag = 1991; 73 | } 74 | return _topView; 75 | } 76 | 77 | - (GHeadlineMoreView *)moreView { 78 | if (!_moreView) { 79 | _moreView = [[GHeadlineMoreView alloc] initWithFrame:CGRectMake(0, CGRectGetHeight([UIScreen mainScreen].bounds), CGRectGetWidth([UIScreen mainScreen].bounds), 100)]; 80 | _moreView.originFrameWidth = 30; 81 | _moreView.space = 0; 82 | _moreView.triggerSpaceWidth = 80.f; 83 | _moreView.backgroundColor = [UIColor whiteColor]; 84 | _moreView.tag = 1992; 85 | } 86 | return _moreView; 87 | } 88 | 89 | 90 | - (GTodayHeadlinePresenter *)presenter { 91 | if (!_presenter) { 92 | _presenter = [[GTodayHeadlinePresenter alloc] init]; 93 | __weak __typeof__(self) weakSelf = self; 94 | _presenter.didScrollCallback = ^(UIScrollView * _Nonnull scrollView) { 95 | [weakSelf didScroll:scrollView]; 96 | }; 97 | _presenter.didEndDragingCallback = ^(UIScrollView * _Nonnull scrollView) { 98 | [weakSelf didEndDragging:scrollView]; 99 | }; 100 | } 101 | return _presenter; 102 | } 103 | 104 | #pragma mark - Public 105 | 106 | 107 | - (void)requestNewPageData: (NSInteger )timestamp { 108 | 109 | } 110 | 111 | - (void)resetTableViewContentOffset { 112 | [self.tableView setContentOffset:CGPointZero animated:NO]; 113 | } 114 | 115 | #pragma mark - Private 116 | 117 | - (void)didScroll: (UIScrollView *)scrollView { 118 | if (scrollView.contentOffset.y > 0) { 119 | CGFloat _contentSizeHeight = scrollView.contentSize.height; 120 | if (_contentSizeHeight < [UIScreen mainScreen].bounds.size.height) { 121 | _contentSizeHeight = [UIScreen mainScreen].bounds.size.height; 122 | } 123 | CGFloat _offsetY = (scrollView.contentOffset.y - (_contentSizeHeight - [UIScreen mainScreen].bounds.size.height)); 124 | [self.moreView effectOffsetY:_offsetY]; 125 | [self didScrollToBottom]; 126 | }else { 127 | [self.topView effectOffsetY:scrollView.contentOffset.y]; 128 | } 129 | } 130 | 131 | - (void)didEndDragging: (UIScrollView *)scrollView { 132 | if (scrollView.contentOffset.y > 0) { 133 | CGFloat _contentSizeHeight = scrollView.contentSize.height; 134 | CGFloat _offsetY = (scrollView.contentOffset.y - (_contentSizeHeight - [UIScreen mainScreen].bounds.size.height)); 135 | if (_offsetY >= self.moreView.triggerSpaceWidth) { 136 | if (!self.moreView.noMoreNextPageData) { 137 | [self addImpactFeedbackEffect]; 138 | [self gotoNexpage]; 139 | [self.moreView fold]; 140 | } 141 | } 142 | }else { 143 | if (scrollView.contentOffset.y < - self.topView.triggerSpaceWidth) { 144 | if (!self.topView.noMoreTopPageData) { 145 | [self addImpactFeedbackEffect]; 146 | [self gotoLastPage]; 147 | [self.topView fold]; 148 | } 149 | } 150 | } 151 | } 152 | 153 | - (void)didScrollToBottom { 154 | 155 | } 156 | 157 | - (void)addImpactFeedbackEffect { 158 | if (@available(iOS 10.0, *)) { 159 | UIImpactFeedbackGenerator *generator = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleLight]; 160 | [generator prepare]; 161 | [generator impactOccurred]; 162 | } else { 163 | // Fallback on earlier versions 164 | } 165 | } 166 | 167 | - (void)gotoLastPage { 168 | [self loadNewPageDataWithIsUp:YES]; 169 | } 170 | 171 | - (void)gotoNexpage { 172 | [self loadNewPageDataWithIsUp:NO]; 173 | } 174 | 175 | // 分页 176 | - (void)loadNewPageDataWithIsUp:(BOOL)isUp { 177 | 178 | } 179 | 180 | 181 | 182 | @end 183 | -------------------------------------------------------------------------------- /GLikeZhiHuPageDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6416AF8022EE9DA800939959 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AF7F22EE9DA800939959 /* AppDelegate.m */; }; 11 | 6416AF8322EE9DA800939959 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AF8222EE9DA800939959 /* ViewController.m */; }; 12 | 6416AF8622EE9DA800939959 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6416AF8422EE9DA800939959 /* Main.storyboard */; }; 13 | 6416AF8822EE9DA900939959 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6416AF8722EE9DA900939959 /* Assets.xcassets */; }; 14 | 6416AF8B22EE9DA900939959 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6416AF8922EE9DA900939959 /* LaunchScreen.storyboard */; }; 15 | 6416AF8E22EE9DA900939959 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AF8D22EE9DA900939959 /* main.m */; }; 16 | 6416AF9822EE9DA900939959 /* GLikeZhiHuPageDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AF9722EE9DA900939959 /* GLikeZhiHuPageDemoTests.m */; }; 17 | 6416AFA322EE9DA900939959 /* GLikeZhiHuPageDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AFA222EE9DA900939959 /* GLikeZhiHuPageDemoUITests.m */; }; 18 | 6416AFD322EE9E2100939959 /* GTodayHeadlinePresenter.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AFB222EE9E2100939959 /* GTodayHeadlinePresenter.m */; }; 19 | 6416AFD422EE9E2100939959 /* GSubPageHeadlineViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AFB722EE9E2100939959 /* GSubPageHeadlineViewController.m */; }; 20 | 6416AFD522EE9E2100939959 /* GTodayHeadlineViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AFB822EE9E2100939959 /* GTodayHeadlineViewController.m */; }; 21 | 6416AFD622EE9E2100939959 /* GBaseHeadlineViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AFB922EE9E2100939959 /* GBaseHeadlineViewController.m */; }; 22 | 6416AFDB22EE9E2100939959 /* GHeadlinePageTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AFC622EE9E2100939959 /* GHeadlinePageTopView.m */; }; 23 | 6416AFDC22EE9E2100939959 /* GHeadlineMoreView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AFC722EE9E2100939959 /* GHeadlineMoreView.m */; }; 24 | 6416AFDD22EE9E2100939959 /* GTodayHeadlineHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AFCD22EE9E2100939959 /* GTodayHeadlineHeaderView.m */; }; 25 | 6416AFDF22EE9E2100939959 /* GHeadlineNavigationView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6416AFD022EE9E2100939959 /* GHeadlineNavigationView.m */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 6416AF9422EE9DA900939959 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 6416AF7322EE9DA800939959 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 6416AF7A22EE9DA800939959; 34 | remoteInfo = GLikeZhiHuPageDemo; 35 | }; 36 | 6416AF9F22EE9DA900939959 /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 6416AF7322EE9DA800939959 /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 6416AF7A22EE9DA800939959; 41 | remoteInfo = GLikeZhiHuPageDemo; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 6416AF7B22EE9DA800939959 /* GLikeZhiHuPageDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GLikeZhiHuPageDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 6416AF7E22EE9DA800939959 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 48 | 6416AF7F22EE9DA800939959 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 49 | 6416AF8122EE9DA800939959 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 50 | 6416AF8222EE9DA800939959 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 51 | 6416AF8522EE9DA800939959 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 52 | 6416AF8722EE9DA900939959 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 53 | 6416AF8A22EE9DA900939959 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 54 | 6416AF8C22EE9DA900939959 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 6416AF8D22EE9DA900939959 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 56 | 6416AF9322EE9DA900939959 /* GLikeZhiHuPageDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GLikeZhiHuPageDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 6416AF9722EE9DA900939959 /* GLikeZhiHuPageDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GLikeZhiHuPageDemoTests.m; sourceTree = ""; }; 58 | 6416AF9922EE9DA900939959 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | 6416AF9E22EE9DA900939959 /* GLikeZhiHuPageDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GLikeZhiHuPageDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 6416AFA222EE9DA900939959 /* GLikeZhiHuPageDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GLikeZhiHuPageDemoUITests.m; sourceTree = ""; }; 61 | 6416AFA422EE9DA900939959 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62 | 6416AFB222EE9E2100939959 /* GTodayHeadlinePresenter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTodayHeadlinePresenter.m; sourceTree = ""; }; 63 | 6416AFB322EE9E2100939959 /* GTodayHeadlinePresenter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTodayHeadlinePresenter.h; sourceTree = ""; }; 64 | 6416AFB522EE9E2100939959 /* GTodayHeadlineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTodayHeadlineViewController.h; sourceTree = ""; }; 65 | 6416AFB622EE9E2100939959 /* GBaseHeadlineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GBaseHeadlineViewController.h; sourceTree = ""; }; 66 | 6416AFB722EE9E2100939959 /* GSubPageHeadlineViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GSubPageHeadlineViewController.m; sourceTree = ""; }; 67 | 6416AFB822EE9E2100939959 /* GTodayHeadlineViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTodayHeadlineViewController.m; sourceTree = ""; }; 68 | 6416AFB922EE9E2100939959 /* GBaseHeadlineViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GBaseHeadlineViewController.m; sourceTree = ""; }; 69 | 6416AFBA22EE9E2100939959 /* GSubPageHeadlineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GSubPageHeadlineViewController.h; sourceTree = ""; }; 70 | 6416AFC622EE9E2100939959 /* GHeadlinePageTopView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GHeadlinePageTopView.m; sourceTree = ""; }; 71 | 6416AFC722EE9E2100939959 /* GHeadlineMoreView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GHeadlineMoreView.m; sourceTree = ""; }; 72 | 6416AFC822EE9E2100939959 /* GHeadlineMoreView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GHeadlineMoreView.h; sourceTree = ""; }; 73 | 6416AFC922EE9E2100939959 /* GHeadlinePageTopView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GHeadlinePageTopView.h; sourceTree = ""; }; 74 | 6416AFCB22EE9E2100939959 /* GHeadlineNavigationView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GHeadlineNavigationView.h; sourceTree = ""; }; 75 | 6416AFCD22EE9E2100939959 /* GTodayHeadlineHeaderView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTodayHeadlineHeaderView.m; sourceTree = ""; }; 76 | 6416AFD022EE9E2100939959 /* GHeadlineNavigationView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GHeadlineNavigationView.m; sourceTree = ""; }; 77 | 6416AFD222EE9E2100939959 /* GTodayHeadlineHeaderView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTodayHeadlineHeaderView.h; sourceTree = ""; }; 78 | /* End PBXFileReference section */ 79 | 80 | /* Begin PBXFrameworksBuildPhase section */ 81 | 6416AF7822EE9DA800939959 /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | 6416AF9022EE9DA900939959 /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | 6416AF9B22EE9DA900939959 /* Frameworks */ = { 96 | isa = PBXFrameworksBuildPhase; 97 | buildActionMask = 2147483647; 98 | files = ( 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | /* End PBXFrameworksBuildPhase section */ 103 | 104 | /* Begin PBXGroup section */ 105 | 6416AF7222EE9DA800939959 = { 106 | isa = PBXGroup; 107 | children = ( 108 | 6416AF7D22EE9DA800939959 /* GLikeZhiHuPageDemo */, 109 | 6416AF9622EE9DA900939959 /* GLikeZhiHuPageDemoTests */, 110 | 6416AFA122EE9DA900939959 /* GLikeZhiHuPageDemoUITests */, 111 | 6416AF7C22EE9DA800939959 /* Products */, 112 | ); 113 | sourceTree = ""; 114 | }; 115 | 6416AF7C22EE9DA800939959 /* Products */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 6416AF7B22EE9DA800939959 /* GLikeZhiHuPageDemo.app */, 119 | 6416AF9322EE9DA900939959 /* GLikeZhiHuPageDemoTests.xctest */, 120 | 6416AF9E22EE9DA900939959 /* GLikeZhiHuPageDemoUITests.xctest */, 121 | ); 122 | name = Products; 123 | sourceTree = ""; 124 | }; 125 | 6416AF7D22EE9DA800939959 /* GLikeZhiHuPageDemo */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 6416AFB022EE9E2100939959 /* ZhiHuPage */, 129 | 6416AF7E22EE9DA800939959 /* AppDelegate.h */, 130 | 6416AF7F22EE9DA800939959 /* AppDelegate.m */, 131 | 6416AF8122EE9DA800939959 /* ViewController.h */, 132 | 6416AF8222EE9DA800939959 /* ViewController.m */, 133 | 6416AF8422EE9DA800939959 /* Main.storyboard */, 134 | 6416AF8722EE9DA900939959 /* Assets.xcassets */, 135 | 6416AF8922EE9DA900939959 /* LaunchScreen.storyboard */, 136 | 6416AF8C22EE9DA900939959 /* Info.plist */, 137 | 6416AF8D22EE9DA900939959 /* main.m */, 138 | ); 139 | path = GLikeZhiHuPageDemo; 140 | sourceTree = ""; 141 | }; 142 | 6416AF9622EE9DA900939959 /* GLikeZhiHuPageDemoTests */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 6416AF9722EE9DA900939959 /* GLikeZhiHuPageDemoTests.m */, 146 | 6416AF9922EE9DA900939959 /* Info.plist */, 147 | ); 148 | path = GLikeZhiHuPageDemoTests; 149 | sourceTree = ""; 150 | }; 151 | 6416AFA122EE9DA900939959 /* GLikeZhiHuPageDemoUITests */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 6416AFA222EE9DA900939959 /* GLikeZhiHuPageDemoUITests.m */, 155 | 6416AFA422EE9DA900939959 /* Info.plist */, 156 | ); 157 | path = GLikeZhiHuPageDemoUITests; 158 | sourceTree = ""; 159 | }; 160 | 6416AFB022EE9E2100939959 /* ZhiHuPage */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 6416AFB122EE9E2100939959 /* Presenter */, 164 | 6416AFB422EE9E2100939959 /* Controller */, 165 | 6416AFBB22EE9E2100939959 /* Model */, 166 | 6416AFC322EE9E2100939959 /* View */, 167 | ); 168 | path = ZhiHuPage; 169 | sourceTree = ""; 170 | }; 171 | 6416AFB122EE9E2100939959 /* Presenter */ = { 172 | isa = PBXGroup; 173 | children = ( 174 | 6416AFB322EE9E2100939959 /* GTodayHeadlinePresenter.h */, 175 | 6416AFB222EE9E2100939959 /* GTodayHeadlinePresenter.m */, 176 | ); 177 | path = Presenter; 178 | sourceTree = ""; 179 | }; 180 | 6416AFB422EE9E2100939959 /* Controller */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | 6416AFB622EE9E2100939959 /* GBaseHeadlineViewController.h */, 184 | 6416AFB922EE9E2100939959 /* GBaseHeadlineViewController.m */, 185 | 6416AFB522EE9E2100939959 /* GTodayHeadlineViewController.h */, 186 | 6416AFB822EE9E2100939959 /* GTodayHeadlineViewController.m */, 187 | 6416AFBA22EE9E2100939959 /* GSubPageHeadlineViewController.h */, 188 | 6416AFB722EE9E2100939959 /* GSubPageHeadlineViewController.m */, 189 | ); 190 | path = Controller; 191 | sourceTree = ""; 192 | }; 193 | 6416AFBB22EE9E2100939959 /* Model */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | ); 197 | path = Model; 198 | sourceTree = ""; 199 | }; 200 | 6416AFC322EE9E2100939959 /* View */ = { 201 | isa = PBXGroup; 202 | children = ( 203 | 6416AFCB22EE9E2100939959 /* GHeadlineNavigationView.h */, 204 | 6416AFD022EE9E2100939959 /* GHeadlineNavigationView.m */, 205 | 6416AFD222EE9E2100939959 /* GTodayHeadlineHeaderView.h */, 206 | 6416AFCD22EE9E2100939959 /* GTodayHeadlineHeaderView.m */, 207 | 6416AFC522EE9E2100939959 /* Page */, 208 | ); 209 | path = View; 210 | sourceTree = ""; 211 | }; 212 | 6416AFC522EE9E2100939959 /* Page */ = { 213 | isa = PBXGroup; 214 | children = ( 215 | 6416AFC822EE9E2100939959 /* GHeadlineMoreView.h */, 216 | 6416AFC722EE9E2100939959 /* GHeadlineMoreView.m */, 217 | 6416AFC922EE9E2100939959 /* GHeadlinePageTopView.h */, 218 | 6416AFC622EE9E2100939959 /* GHeadlinePageTopView.m */, 219 | ); 220 | path = Page; 221 | sourceTree = ""; 222 | }; 223 | /* End PBXGroup section */ 224 | 225 | /* Begin PBXNativeTarget section */ 226 | 6416AF7A22EE9DA800939959 /* GLikeZhiHuPageDemo */ = { 227 | isa = PBXNativeTarget; 228 | buildConfigurationList = 6416AFA722EE9DA900939959 /* Build configuration list for PBXNativeTarget "GLikeZhiHuPageDemo" */; 229 | buildPhases = ( 230 | 6416AF7722EE9DA800939959 /* Sources */, 231 | 6416AF7822EE9DA800939959 /* Frameworks */, 232 | 6416AF7922EE9DA800939959 /* Resources */, 233 | ); 234 | buildRules = ( 235 | ); 236 | dependencies = ( 237 | ); 238 | name = GLikeZhiHuPageDemo; 239 | productName = GLikeZhiHuPageDemo; 240 | productReference = 6416AF7B22EE9DA800939959 /* GLikeZhiHuPageDemo.app */; 241 | productType = "com.apple.product-type.application"; 242 | }; 243 | 6416AF9222EE9DA900939959 /* GLikeZhiHuPageDemoTests */ = { 244 | isa = PBXNativeTarget; 245 | buildConfigurationList = 6416AFAA22EE9DA900939959 /* Build configuration list for PBXNativeTarget "GLikeZhiHuPageDemoTests" */; 246 | buildPhases = ( 247 | 6416AF8F22EE9DA900939959 /* Sources */, 248 | 6416AF9022EE9DA900939959 /* Frameworks */, 249 | 6416AF9122EE9DA900939959 /* Resources */, 250 | ); 251 | buildRules = ( 252 | ); 253 | dependencies = ( 254 | 6416AF9522EE9DA900939959 /* PBXTargetDependency */, 255 | ); 256 | name = GLikeZhiHuPageDemoTests; 257 | productName = GLikeZhiHuPageDemoTests; 258 | productReference = 6416AF9322EE9DA900939959 /* GLikeZhiHuPageDemoTests.xctest */; 259 | productType = "com.apple.product-type.bundle.unit-test"; 260 | }; 261 | 6416AF9D22EE9DA900939959 /* GLikeZhiHuPageDemoUITests */ = { 262 | isa = PBXNativeTarget; 263 | buildConfigurationList = 6416AFAD22EE9DA900939959 /* Build configuration list for PBXNativeTarget "GLikeZhiHuPageDemoUITests" */; 264 | buildPhases = ( 265 | 6416AF9A22EE9DA900939959 /* Sources */, 266 | 6416AF9B22EE9DA900939959 /* Frameworks */, 267 | 6416AF9C22EE9DA900939959 /* Resources */, 268 | ); 269 | buildRules = ( 270 | ); 271 | dependencies = ( 272 | 6416AFA022EE9DA900939959 /* PBXTargetDependency */, 273 | ); 274 | name = GLikeZhiHuPageDemoUITests; 275 | productName = GLikeZhiHuPageDemoUITests; 276 | productReference = 6416AF9E22EE9DA900939959 /* GLikeZhiHuPageDemoUITests.xctest */; 277 | productType = "com.apple.product-type.bundle.ui-testing"; 278 | }; 279 | /* End PBXNativeTarget section */ 280 | 281 | /* Begin PBXProject section */ 282 | 6416AF7322EE9DA800939959 /* Project object */ = { 283 | isa = PBXProject; 284 | attributes = { 285 | LastUpgradeCheck = 1030; 286 | ORGANIZATIONNAME = Namegold; 287 | TargetAttributes = { 288 | 6416AF7A22EE9DA800939959 = { 289 | CreatedOnToolsVersion = 10.3; 290 | }; 291 | 6416AF9222EE9DA900939959 = { 292 | CreatedOnToolsVersion = 10.3; 293 | TestTargetID = 6416AF7A22EE9DA800939959; 294 | }; 295 | 6416AF9D22EE9DA900939959 = { 296 | CreatedOnToolsVersion = 10.3; 297 | TestTargetID = 6416AF7A22EE9DA800939959; 298 | }; 299 | }; 300 | }; 301 | buildConfigurationList = 6416AF7622EE9DA800939959 /* Build configuration list for PBXProject "GLikeZhiHuPageDemo" */; 302 | compatibilityVersion = "Xcode 9.3"; 303 | developmentRegion = en; 304 | hasScannedForEncodings = 0; 305 | knownRegions = ( 306 | en, 307 | Base, 308 | ); 309 | mainGroup = 6416AF7222EE9DA800939959; 310 | productRefGroup = 6416AF7C22EE9DA800939959 /* Products */; 311 | projectDirPath = ""; 312 | projectRoot = ""; 313 | targets = ( 314 | 6416AF7A22EE9DA800939959 /* GLikeZhiHuPageDemo */, 315 | 6416AF9222EE9DA900939959 /* GLikeZhiHuPageDemoTests */, 316 | 6416AF9D22EE9DA900939959 /* GLikeZhiHuPageDemoUITests */, 317 | ); 318 | }; 319 | /* End PBXProject section */ 320 | 321 | /* Begin PBXResourcesBuildPhase section */ 322 | 6416AF7922EE9DA800939959 /* Resources */ = { 323 | isa = PBXResourcesBuildPhase; 324 | buildActionMask = 2147483647; 325 | files = ( 326 | 6416AF8B22EE9DA900939959 /* LaunchScreen.storyboard in Resources */, 327 | 6416AF8822EE9DA900939959 /* Assets.xcassets in Resources */, 328 | 6416AF8622EE9DA800939959 /* Main.storyboard in Resources */, 329 | ); 330 | runOnlyForDeploymentPostprocessing = 0; 331 | }; 332 | 6416AF9122EE9DA900939959 /* Resources */ = { 333 | isa = PBXResourcesBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | 6416AF9C22EE9DA900939959 /* Resources */ = { 340 | isa = PBXResourcesBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | ); 344 | runOnlyForDeploymentPostprocessing = 0; 345 | }; 346 | /* End PBXResourcesBuildPhase section */ 347 | 348 | /* Begin PBXSourcesBuildPhase section */ 349 | 6416AF7722EE9DA800939959 /* Sources */ = { 350 | isa = PBXSourcesBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | 6416AFDF22EE9E2100939959 /* GHeadlineNavigationView.m in Sources */, 354 | 6416AFD522EE9E2100939959 /* GTodayHeadlineViewController.m in Sources */, 355 | 6416AF8322EE9DA800939959 /* ViewController.m in Sources */, 356 | 6416AFDD22EE9E2100939959 /* GTodayHeadlineHeaderView.m in Sources */, 357 | 6416AFD622EE9E2100939959 /* GBaseHeadlineViewController.m in Sources */, 358 | 6416AFDC22EE9E2100939959 /* GHeadlineMoreView.m in Sources */, 359 | 6416AFD422EE9E2100939959 /* GSubPageHeadlineViewController.m in Sources */, 360 | 6416AF8E22EE9DA900939959 /* main.m in Sources */, 361 | 6416AFD322EE9E2100939959 /* GTodayHeadlinePresenter.m in Sources */, 362 | 6416AF8022EE9DA800939959 /* AppDelegate.m in Sources */, 363 | 6416AFDB22EE9E2100939959 /* GHeadlinePageTopView.m in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | 6416AF8F22EE9DA900939959 /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | 6416AF9822EE9DA900939959 /* GLikeZhiHuPageDemoTests.m in Sources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | 6416AF9A22EE9DA900939959 /* Sources */ = { 376 | isa = PBXSourcesBuildPhase; 377 | buildActionMask = 2147483647; 378 | files = ( 379 | 6416AFA322EE9DA900939959 /* GLikeZhiHuPageDemoUITests.m in Sources */, 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | }; 383 | /* End PBXSourcesBuildPhase section */ 384 | 385 | /* Begin PBXTargetDependency section */ 386 | 6416AF9522EE9DA900939959 /* PBXTargetDependency */ = { 387 | isa = PBXTargetDependency; 388 | target = 6416AF7A22EE9DA800939959 /* GLikeZhiHuPageDemo */; 389 | targetProxy = 6416AF9422EE9DA900939959 /* PBXContainerItemProxy */; 390 | }; 391 | 6416AFA022EE9DA900939959 /* PBXTargetDependency */ = { 392 | isa = PBXTargetDependency; 393 | target = 6416AF7A22EE9DA800939959 /* GLikeZhiHuPageDemo */; 394 | targetProxy = 6416AF9F22EE9DA900939959 /* PBXContainerItemProxy */; 395 | }; 396 | /* End PBXTargetDependency section */ 397 | 398 | /* Begin PBXVariantGroup section */ 399 | 6416AF8422EE9DA800939959 /* Main.storyboard */ = { 400 | isa = PBXVariantGroup; 401 | children = ( 402 | 6416AF8522EE9DA800939959 /* Base */, 403 | ); 404 | name = Main.storyboard; 405 | sourceTree = ""; 406 | }; 407 | 6416AF8922EE9DA900939959 /* LaunchScreen.storyboard */ = { 408 | isa = PBXVariantGroup; 409 | children = ( 410 | 6416AF8A22EE9DA900939959 /* Base */, 411 | ); 412 | name = LaunchScreen.storyboard; 413 | sourceTree = ""; 414 | }; 415 | /* End PBXVariantGroup section */ 416 | 417 | /* Begin XCBuildConfiguration section */ 418 | 6416AFA522EE9DA900939959 /* Debug */ = { 419 | isa = XCBuildConfiguration; 420 | buildSettings = { 421 | ALWAYS_SEARCH_USER_PATHS = NO; 422 | CLANG_ANALYZER_NONNULL = YES; 423 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 424 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 425 | CLANG_CXX_LIBRARY = "libc++"; 426 | CLANG_ENABLE_MODULES = YES; 427 | CLANG_ENABLE_OBJC_ARC = YES; 428 | CLANG_ENABLE_OBJC_WEAK = YES; 429 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 430 | CLANG_WARN_BOOL_CONVERSION = YES; 431 | CLANG_WARN_COMMA = YES; 432 | CLANG_WARN_CONSTANT_CONVERSION = YES; 433 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 434 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 435 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 436 | CLANG_WARN_EMPTY_BODY = YES; 437 | CLANG_WARN_ENUM_CONVERSION = YES; 438 | CLANG_WARN_INFINITE_RECURSION = YES; 439 | CLANG_WARN_INT_CONVERSION = YES; 440 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 441 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 442 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 443 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 444 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 445 | CLANG_WARN_STRICT_PROTOTYPES = YES; 446 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 447 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 448 | CLANG_WARN_UNREACHABLE_CODE = YES; 449 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 450 | CODE_SIGN_IDENTITY = "iPhone Developer"; 451 | COPY_PHASE_STRIP = NO; 452 | DEBUG_INFORMATION_FORMAT = dwarf; 453 | ENABLE_STRICT_OBJC_MSGSEND = YES; 454 | ENABLE_TESTABILITY = YES; 455 | GCC_C_LANGUAGE_STANDARD = gnu11; 456 | GCC_DYNAMIC_NO_PIC = NO; 457 | GCC_NO_COMMON_BLOCKS = YES; 458 | GCC_OPTIMIZATION_LEVEL = 0; 459 | GCC_PREPROCESSOR_DEFINITIONS = ( 460 | "DEBUG=1", 461 | "$(inherited)", 462 | ); 463 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 464 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 465 | GCC_WARN_UNDECLARED_SELECTOR = YES; 466 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 467 | GCC_WARN_UNUSED_FUNCTION = YES; 468 | GCC_WARN_UNUSED_VARIABLE = YES; 469 | IPHONEOS_DEPLOYMENT_TARGET = 12.4; 470 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 471 | MTL_FAST_MATH = YES; 472 | ONLY_ACTIVE_ARCH = YES; 473 | SDKROOT = iphoneos; 474 | }; 475 | name = Debug; 476 | }; 477 | 6416AFA622EE9DA900939959 /* Release */ = { 478 | isa = XCBuildConfiguration; 479 | buildSettings = { 480 | ALWAYS_SEARCH_USER_PATHS = NO; 481 | CLANG_ANALYZER_NONNULL = YES; 482 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 483 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 484 | CLANG_CXX_LIBRARY = "libc++"; 485 | CLANG_ENABLE_MODULES = YES; 486 | CLANG_ENABLE_OBJC_ARC = YES; 487 | CLANG_ENABLE_OBJC_WEAK = YES; 488 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 489 | CLANG_WARN_BOOL_CONVERSION = YES; 490 | CLANG_WARN_COMMA = YES; 491 | CLANG_WARN_CONSTANT_CONVERSION = YES; 492 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 493 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 494 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 495 | CLANG_WARN_EMPTY_BODY = YES; 496 | CLANG_WARN_ENUM_CONVERSION = YES; 497 | CLANG_WARN_INFINITE_RECURSION = YES; 498 | CLANG_WARN_INT_CONVERSION = YES; 499 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 500 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 501 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 502 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 503 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 504 | CLANG_WARN_STRICT_PROTOTYPES = YES; 505 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 506 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 507 | CLANG_WARN_UNREACHABLE_CODE = YES; 508 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 509 | CODE_SIGN_IDENTITY = "iPhone Developer"; 510 | COPY_PHASE_STRIP = NO; 511 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 512 | ENABLE_NS_ASSERTIONS = NO; 513 | ENABLE_STRICT_OBJC_MSGSEND = YES; 514 | GCC_C_LANGUAGE_STANDARD = gnu11; 515 | GCC_NO_COMMON_BLOCKS = YES; 516 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 517 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 518 | GCC_WARN_UNDECLARED_SELECTOR = YES; 519 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 520 | GCC_WARN_UNUSED_FUNCTION = YES; 521 | GCC_WARN_UNUSED_VARIABLE = YES; 522 | IPHONEOS_DEPLOYMENT_TARGET = 12.4; 523 | MTL_ENABLE_DEBUG_INFO = NO; 524 | MTL_FAST_MATH = YES; 525 | SDKROOT = iphoneos; 526 | VALIDATE_PRODUCT = YES; 527 | }; 528 | name = Release; 529 | }; 530 | 6416AFA822EE9DA900939959 /* Debug */ = { 531 | isa = XCBuildConfiguration; 532 | buildSettings = { 533 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 534 | CODE_SIGN_STYLE = Automatic; 535 | DEVELOPMENT_TEAM = 49FUNDNGC6; 536 | INFOPLIST_FILE = GLikeZhiHuPageDemo/Info.plist; 537 | LD_RUNPATH_SEARCH_PATHS = ( 538 | "$(inherited)", 539 | "@executable_path/Frameworks", 540 | ); 541 | PRODUCT_BUNDLE_IDENTIFIER = com.wallstreetcn.tinker.GLikeZhiHuPageDemo; 542 | PRODUCT_NAME = "$(TARGET_NAME)"; 543 | TARGETED_DEVICE_FAMILY = "1,2"; 544 | }; 545 | name = Debug; 546 | }; 547 | 6416AFA922EE9DA900939959 /* Release */ = { 548 | isa = XCBuildConfiguration; 549 | buildSettings = { 550 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 551 | CODE_SIGN_STYLE = Automatic; 552 | DEVELOPMENT_TEAM = 49FUNDNGC6; 553 | INFOPLIST_FILE = GLikeZhiHuPageDemo/Info.plist; 554 | LD_RUNPATH_SEARCH_PATHS = ( 555 | "$(inherited)", 556 | "@executable_path/Frameworks", 557 | ); 558 | PRODUCT_BUNDLE_IDENTIFIER = com.wallstreetcn.tinker.GLikeZhiHuPageDemo; 559 | PRODUCT_NAME = "$(TARGET_NAME)"; 560 | TARGETED_DEVICE_FAMILY = "1,2"; 561 | }; 562 | name = Release; 563 | }; 564 | 6416AFAB22EE9DA900939959 /* Debug */ = { 565 | isa = XCBuildConfiguration; 566 | buildSettings = { 567 | BUNDLE_LOADER = "$(TEST_HOST)"; 568 | CODE_SIGN_STYLE = Automatic; 569 | DEVELOPMENT_TEAM = 49FUNDNGC6; 570 | INFOPLIST_FILE = GLikeZhiHuPageDemoTests/Info.plist; 571 | LD_RUNPATH_SEARCH_PATHS = ( 572 | "$(inherited)", 573 | "@executable_path/Frameworks", 574 | "@loader_path/Frameworks", 575 | ); 576 | PRODUCT_BUNDLE_IDENTIFIER = com.wallstreetcn.tinker.GLikeZhiHuPageDemoTests; 577 | PRODUCT_NAME = "$(TARGET_NAME)"; 578 | TARGETED_DEVICE_FAMILY = "1,2"; 579 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GLikeZhiHuPageDemo.app/GLikeZhiHuPageDemo"; 580 | }; 581 | name = Debug; 582 | }; 583 | 6416AFAC22EE9DA900939959 /* Release */ = { 584 | isa = XCBuildConfiguration; 585 | buildSettings = { 586 | BUNDLE_LOADER = "$(TEST_HOST)"; 587 | CODE_SIGN_STYLE = Automatic; 588 | DEVELOPMENT_TEAM = 49FUNDNGC6; 589 | INFOPLIST_FILE = GLikeZhiHuPageDemoTests/Info.plist; 590 | LD_RUNPATH_SEARCH_PATHS = ( 591 | "$(inherited)", 592 | "@executable_path/Frameworks", 593 | "@loader_path/Frameworks", 594 | ); 595 | PRODUCT_BUNDLE_IDENTIFIER = com.wallstreetcn.tinker.GLikeZhiHuPageDemoTests; 596 | PRODUCT_NAME = "$(TARGET_NAME)"; 597 | TARGETED_DEVICE_FAMILY = "1,2"; 598 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GLikeZhiHuPageDemo.app/GLikeZhiHuPageDemo"; 599 | }; 600 | name = Release; 601 | }; 602 | 6416AFAE22EE9DA900939959 /* Debug */ = { 603 | isa = XCBuildConfiguration; 604 | buildSettings = { 605 | CODE_SIGN_STYLE = Automatic; 606 | DEVELOPMENT_TEAM = 49FUNDNGC6; 607 | INFOPLIST_FILE = GLikeZhiHuPageDemoUITests/Info.plist; 608 | LD_RUNPATH_SEARCH_PATHS = ( 609 | "$(inherited)", 610 | "@executable_path/Frameworks", 611 | "@loader_path/Frameworks", 612 | ); 613 | PRODUCT_BUNDLE_IDENTIFIER = com.wallstreetcn.tinker.GLikeZhiHuPageDemoUITests; 614 | PRODUCT_NAME = "$(TARGET_NAME)"; 615 | TARGETED_DEVICE_FAMILY = "1,2"; 616 | TEST_TARGET_NAME = GLikeZhiHuPageDemo; 617 | }; 618 | name = Debug; 619 | }; 620 | 6416AFAF22EE9DA900939959 /* Release */ = { 621 | isa = XCBuildConfiguration; 622 | buildSettings = { 623 | CODE_SIGN_STYLE = Automatic; 624 | DEVELOPMENT_TEAM = 49FUNDNGC6; 625 | INFOPLIST_FILE = GLikeZhiHuPageDemoUITests/Info.plist; 626 | LD_RUNPATH_SEARCH_PATHS = ( 627 | "$(inherited)", 628 | "@executable_path/Frameworks", 629 | "@loader_path/Frameworks", 630 | ); 631 | PRODUCT_BUNDLE_IDENTIFIER = com.wallstreetcn.tinker.GLikeZhiHuPageDemoUITests; 632 | PRODUCT_NAME = "$(TARGET_NAME)"; 633 | TARGETED_DEVICE_FAMILY = "1,2"; 634 | TEST_TARGET_NAME = GLikeZhiHuPageDemo; 635 | }; 636 | name = Release; 637 | }; 638 | /* End XCBuildConfiguration section */ 639 | 640 | /* Begin XCConfigurationList section */ 641 | 6416AF7622EE9DA800939959 /* Build configuration list for PBXProject "GLikeZhiHuPageDemo" */ = { 642 | isa = XCConfigurationList; 643 | buildConfigurations = ( 644 | 6416AFA522EE9DA900939959 /* Debug */, 645 | 6416AFA622EE9DA900939959 /* Release */, 646 | ); 647 | defaultConfigurationIsVisible = 0; 648 | defaultConfigurationName = Release; 649 | }; 650 | 6416AFA722EE9DA900939959 /* Build configuration list for PBXNativeTarget "GLikeZhiHuPageDemo" */ = { 651 | isa = XCConfigurationList; 652 | buildConfigurations = ( 653 | 6416AFA822EE9DA900939959 /* Debug */, 654 | 6416AFA922EE9DA900939959 /* Release */, 655 | ); 656 | defaultConfigurationIsVisible = 0; 657 | defaultConfigurationName = Release; 658 | }; 659 | 6416AFAA22EE9DA900939959 /* Build configuration list for PBXNativeTarget "GLikeZhiHuPageDemoTests" */ = { 660 | isa = XCConfigurationList; 661 | buildConfigurations = ( 662 | 6416AFAB22EE9DA900939959 /* Debug */, 663 | 6416AFAC22EE9DA900939959 /* Release */, 664 | ); 665 | defaultConfigurationIsVisible = 0; 666 | defaultConfigurationName = Release; 667 | }; 668 | 6416AFAD22EE9DA900939959 /* Build configuration list for PBXNativeTarget "GLikeZhiHuPageDemoUITests" */ = { 669 | isa = XCConfigurationList; 670 | buildConfigurations = ( 671 | 6416AFAE22EE9DA900939959 /* Debug */, 672 | 6416AFAF22EE9DA900939959 /* Release */, 673 | ); 674 | defaultConfigurationIsVisible = 0; 675 | defaultConfigurationName = Release; 676 | }; 677 | /* End XCConfigurationList section */ 678 | }; 679 | rootObject = 6416AF7322EE9DA800939959 /* Project object */; 680 | } 681 | --------------------------------------------------------------------------------