MIduo.xcodeproj/project.pbxproj
@@ -599,6 +599,7 @@ 2D8F4C5A2100672500198E06 /* SettingViewModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D8F4C592100672500198E06 /* SettingViewModel.m */; }; 2D8F4C5D2100891C00198E06 /* SJTipView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D8F4C5C2100891C00198E06 /* SJTipView.m */; }; 2DB8DAA121241CAE0034CD7C /* InviteOneCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DB8DAA021241CAE0034CD7C /* InviteOneCell.m */; }; 2DE70AC92137E32A0049CABC /* BSKImagesPageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DE70AC82137E3290049CABC /* BSKImagesPageView.m */; }; 2DF196CA2126BECE0007D310 /* MainBaseController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF196C92126BECE0007D310 /* MainBaseController.m */; }; 2DF1FA4121250D81007043AF /* UIButton+SGCountdown.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF1FA3C21250D81007043AF /* UIButton+SGCountdown.m */; }; 2DF1FA4221250D81007043AF /* UIButton+SGEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF1FA3E21250D81007043AF /* UIButton+SGEvent.m */; }; @@ -702,7 +703,7 @@ 181ECE161EF369BF00472224 /* ZJContentView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZJContentView.h; sourceTree = "<group>"; }; 181ECE171EF369BF00472224 /* ZJContentView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZJContentView.m; sourceTree = "<group>"; }; 181ECE181EF369BF00472224 /* ZJScrollPageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZJScrollPageView.h; sourceTree = "<group>"; }; 181ECE191EF369BF00472224 /* ZJScrollPageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZJScrollPageView.m; sourceTree = "<group>"; }; 181ECE191EF369BF00472224 /* ZJScrollPageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZJScrollPageView.m; sourceTree = "<group>"; tabWidth = 5; }; 181ECE1A1EF369BF00472224 /* ZJScrollPageViewDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZJScrollPageViewDelegate.h; sourceTree = "<group>"; }; 181ECE1B1EF369BF00472224 /* ZJScrollSegmentView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZJScrollSegmentView.h; sourceTree = "<group>"; }; 181ECE1C1EF369BF00472224 /* ZJScrollSegmentView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZJScrollSegmentView.m; sourceTree = "<group>"; }; @@ -1716,6 +1717,8 @@ 2D9767D720C7D7FE006EE24F /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; 2DB8DA9F21241CAE0034CD7C /* InviteOneCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InviteOneCell.h; sourceTree = "<group>"; }; 2DB8DAA021241CAE0034CD7C /* InviteOneCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InviteOneCell.m; sourceTree = "<group>"; }; 2DE70AC72137E3280049CABC /* BSKImagesPageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BSKImagesPageView.h; sourceTree = "<group>"; }; 2DE70AC82137E3290049CABC /* BSKImagesPageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BSKImagesPageView.m; sourceTree = "<group>"; }; 2DF196C82126BECE0007D310 /* MainBaseController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MainBaseController.h; sourceTree = "<group>"; }; 2DF196C92126BECE0007D310 /* MainBaseController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MainBaseController.m; sourceTree = "<group>"; }; 2DF1FA3A21250D81007043AF /* SGEasyButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SGEasyButton.h; sourceTree = "<group>"; }; @@ -2052,6 +2055,8 @@ 182BEB5D1EAA081400B11FC5 /* LXAlertView */ = { isa = PBXGroup; children = ( 2DE70AC72137E3280049CABC /* BSKImagesPageView.h */, 2DE70AC82137E3290049CABC /* BSKImagesPageView.m */, 181A6A9E1EB35D7A00CFC830 /* GiftsView.h */, 181A6A9F1EB35D7A00CFC830 /* GiftsView.m */, 18E7C78E1EB9ABCC00A02A14 /* PraiseView.h */, @@ -4414,6 +4419,7 @@ 18360AF2206C915800F9EAB1 /* BalaDetailTableViewCell.m in Sources */, 1897D9B81E5FDB70003DF6FE /* SearchCollectionViewCell.m in Sources */, 2DF1FA4921252614007043AF /* InviteThreeCell.m in Sources */, 2DE70AC92137E32A0049CABC /* BSKImagesPageView.m in Sources */, 1845C4C6209C562E009C639B /* ZXRSSExpandedPair.m in Sources */, 1894E7F320B6C73F00C28F33 /* UITableView+XHWebImageAutoSize.m in Sources */, 1845C474209C562D009C639B /* ZXImage.m in Sources */, MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstateBinary files differ
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -19,24 +19,8 @@ shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/界面/优惠券/classificationViewController.m" timestampString = "555908948.249001" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "275" endingLineNumber = "275" landmarkName = "-childViewController:forIndex:" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/界面/动态/DynamicViewController.m" timestampString = "556441547.824281" timestampString = "557313845.993101" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "229" @@ -78,13 +62,338 @@ </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" scope = "0" stopOnStyle = "0"> filePath = "MIduo/界面/优惠券/classificationViewController.m" timestampString = "556452484.3680609" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "147" endingLineNumber = "147" landmarkName = "-setStatusBarBackgroundColor:" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/数据/lib/ZJScrollPageView/ZJContentView.m" timestampString = "556452484.3681279" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "192" endingLineNumber = "192" landmarkName = "-reload" landmarkType = "7"> <Locations> <Location shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" symbolName = "-[ZJContentView reload]" moduleName = "MIduo" usesParentBreakpointCondition = "Yes" urlString = "file:///Users/mj/Desktop/fanliquan/MIduo/%E6%95%B0%E6%8D%AE/lib/ZJScrollPageView/ZJContentView.m" timestampString = "557313846.062323" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "192" endingLineNumber = "192" offsetFromSymbolStart = "20"> </Location> <Location shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" symbolName = "__23-[ZJContentView reload]_block_invoke" moduleName = "MIduo" usesParentBreakpointCondition = "Yes" urlString = "file:///Users/mj/Desktop/fanliquan/MIduo/%E6%95%B0%E6%8D%AE/lib/ZJScrollPageView/ZJContentView.m" timestampString = "557313846.063996" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "193" endingLineNumber = "193" offsetFromSymbolStart = "108"> </Location> </Locations> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/界面/我的/MineViewController.m" timestampString = "557313409.948368" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "206" endingLineNumber = "206" landmarkName = "-bindTaoBaos" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/界面/我的/LoginViewController.m" timestampString = "556517749.124685" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "487" endingLineNumber = "487" landmarkName = "-TaoBaoBound" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/AppDelegate.m" timestampString = "557313845.993438" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "613" endingLineNumber = "613" landmarkName = "-userNotificationCenter:willPresentNotification:withCompletionHandler:" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/AppDelegate.m" timestampString = "557313845.9934829" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "624" endingLineNumber = "624" landmarkName = "-registerLocalNotification:alertBody:userDict:" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/AppDelegate.m" timestampString = "557313845.99352" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "647" endingLineNumber = "647" landmarkName = "-getRequestWithLocalNotificationSleep:" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/AppDelegate.m" timestampString = "557313845.9935549" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "565" endingLineNumber = "565" landmarkName = "-application:didReceiveLocalNotification:" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/数据/YTHsharedManger.m" timestampString = "556518226.882774" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "221" endingLineNumber = "221" landmarkName = "-LogInForTaoBaoWith:Withblock:" landmarkType = "7"> <Locations> <Location shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" symbolName = "__48-[YTHsharedManger LogInForTaoBaoWith:Withblock:]_block_invoke" moduleName = "MIduo" usesParentBreakpointCondition = "Yes" urlString = "file:///Users/mj/Desktop/fanliquan/MIduo/%E6%95%B0%E6%8D%AE/YTHsharedManger.m" timestampString = "557313846.090746" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "221" endingLineNumber = "221" offsetFromSymbolStart = "1068"> </Location> <Location shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" symbolName = "__48-[YTHsharedManger LogInForTaoBaoWith:Withblock:]_block_invoke_2" moduleName = "MIduo" usesParentBreakpointCondition = "Yes" urlString = "file:///Users/mj/Desktop/fanliquan/MIduo/%E6%95%B0%E6%8D%AE/YTHsharedManger.m" timestampString = "557313846.092422" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "222" endingLineNumber = "222" offsetFromSymbolStart = "56"> </Location> <Location shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" symbolName = "__destroy_helper_block_.180" moduleName = "MIduo" usesParentBreakpointCondition = "Yes" urlString = "file:///Users/mj/Desktop/fanliquan/MIduo/%E6%95%B0%E6%8D%AE/YTHsharedManger.m" timestampString = "557313846.094366" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "221" endingLineNumber = "221" offsetFromSymbolStart = "20"> </Location> </Locations> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/界面/我的/MineViewController.m" timestampString = "557313409.948615" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "342" endingLineNumber = "342" landmarkName = "-Login" landmarkType = "7"> <Locations> <Location shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" symbolName = "-[MineViewController Login]" moduleName = "MIduo" usesParentBreakpointCondition = "Yes" urlString = "file:///Users/mj/Desktop/fanliquan/MIduo/%E7%95%8C%E9%9D%A2/%E6%88%91%E7%9A%84/MineViewController.m" timestampString = "557313846.099995" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "342" endingLineNumber = "342" offsetFromSymbolStart = "36"> </Location> <Location shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" symbolName = "__27-[MineViewController Login]_block_invoke" moduleName = "MIduo" usesParentBreakpointCondition = "Yes" urlString = "file:///Users/mj/Desktop/fanliquan/MIduo/%E7%95%8C%E9%9D%A2/%E6%88%91%E7%9A%84/MineViewController.m" timestampString = "557313846.101844" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "343" endingLineNumber = "343" offsetFromSymbolStart = "56"> </Location> </Locations> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/界面/我的/MineViewController.m" timestampString = "557313409.948656" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "677" endingLineNumber = "677" landmarkName = "-boundTaoBao:isOrder:" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/界面/网页视图/商品详情/GoodDeTrViewController.m" timestampString = "556532591.328869" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "663" endingLineNumber = "663" landmarkName = "-TaoBaoBound" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/AppDelegate.m" timestampString = "557313845.993634" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "600" endingLineNumber = "600" landmarkName = "-userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> <BreakpointProxy BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> <BreakpointContent shouldBeEnabled = "Yes" ignoreCount = "0" continueAfterRunningActions = "No" filePath = "MIduo/AppDelegate.m" timestampString = "557313845.993672" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" startingLineNumber = "581" endingLineNumber = "581" landmarkName = "-application:didReceiveRemoteNotification:fetchCompletionHandler:" landmarkType = "7"> </BreakpointContent> </BreakpointProxy> </Breakpoints> MIduo/AppDelegate.m
@@ -57,14 +57,15 @@ #import "WXCutomNewStrategyComponent.h" @interface AppDelegate ()<UNUserNotificationCenterDelegate,UITabBarControllerDelegate,WXApiDelegate> @property (nonatomic,strong)UITabBarController *tabBarController; @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.backgroundColor=[UIColor whiteColor]; //é¿éç¾å· [self setAliTrade]; @@ -92,8 +93,9 @@ //微信ç»å½ [self WeiXinChatLogin]; [self loadViews]; [self loadViewsWithBor:YES]; [self isJumpTaobao]; NSDictionary * userInfo = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; if(userInfo){ @@ -273,11 +275,9 @@ NSLog(@"%@",object); }]; } - (void)loadViews { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.backgroundColor=[UIColor whiteColor]; - (void)loadViewsWithBor:(BOOL)bor { [self.window makeKeyAndVisible]; self.window.rootViewController = nil; NEWHomeViewController *recommendVC = [[NEWHomeViewController alloc]init]; recommendVC.tabBarItem.title = @"ç²¾é"; recommendVC.tabBarItem.selectedImage = [UIImage imageNamed:@"Homeç¹å»"]; @@ -295,13 +295,7 @@ invateVC.tabBarItem.image = [[UIImage imageNamed:@"é请æå¥"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];; invateVC.tabBarItem.imageInsets = UIEdgeInsetsMake(3, 0, -3, 0); BaseNavigationController *ninvateVC = [[BaseNavigationController alloc]initWithRootViewController:invateVC]; // shoppingCartViewController *disVC = [[shoppingCartViewController alloc]init]; // disVC.tabBarItem.title = @"è´ç©è½¦"; // disVC.tabBarItem.selectedImage = [UIImage imageNamed:@"Cartç¹å»"]; // disVC.tabBarItem.image = [UIImage imageNamed:@"Cart"]; // BaseNavigationController *ndisVC = [[BaseNavigationController alloc]initWithRootViewController:disVC]; // DynamicViewController DynamicViewController *disVC = [[DynamicViewController alloc]init]; disVC.tabBarItem.title = @"卿"; disVC.tabBarItem.selectedImage = [UIImage imageNamed:@"卿2"]; @@ -314,18 +308,21 @@ mineVC.tabBarItem.image = [UIImage imageNamed:@"Profile"]; BaseNavigationController *nmineVC = [[BaseNavigationController alloc]initWithRootViewController:mineVC]; UITabBarController *tabBarController = [[UITabBarController alloc]init]; // SJTabbar *tabbar = [[SJTabbar alloc]init]; // tabBarController.tabBar = tabbar; self.tabBarController = [[UITabBarController alloc]init]; [[UITabBar appearance] setBackgroundColor:XYRBackgroundColor]; tabBarController.viewControllers = @[nrecommendVC,nsubVC,ninvateVC,ndisVC,nmineVC]; tabBarController.tabBar.tintColor = YTHColor(229, 0, 92); if (!bor) { self.tabBarController.viewControllers = @[nrecommendVC,nsubVC,ninvateVC,ndisVC,nmineVC]; }else{ self.tabBarController.viewControllers = @[nrecommendVC,nsubVC,ndisVC,nmineVC]; } self.tabBarController.tabBar.tintColor = YTHColor(229, 0, 92); NSMutableDictionary *attr3=[NSMutableDictionary dictionary]; attr3[NSFontAttributeName]=[UIFont systemFontOfSize:10]; [[UITabBarItem appearance]setTitleTextAttributes:attr3 forState:UIControlStateNormal]; self.window.rootViewController = tabBarController; self.window.rootViewController = self.tabBarController; if([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]!=nil){ [self getMessage]; @@ -402,6 +399,8 @@ if ([YTHsharedManger startManger].isEnterForeground) { [[NSNotificationCenter defaultCenter] postNotificationName:@"isEnterForeground" object:nil]; } [[NSNotificationCenter defaultCenter] postNotificationName:@"fromBackGround" object:nil]; } #pragma mark --- æ¥çç²è´´æ¿ --- @@ -513,17 +512,18 @@ [dic setObject:deviceTokenStr forKey:@"deviceToken"]; NSLog(@"%@",[NSString stringWithFormat:@"%@/%@",domainHTTP,@"push/insertDeviceToken"]); [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"push/insertDeviceToken"] param:dic success:^(NSDictionary *object) { NSLog(@"%@",object); // NSInteger code = [object[@"code"]integerValue]; // [self.datasource removeAllObjects]; } fail:^(id object) { NSLog(@"%@",object); }]; if([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]!=nil){ [self loginDeviceToken]; }else{ [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"push/insertDeviceToken"] param:dic success:^(NSDictionary *object) { NSLog(@"%@",object); // NSInteger code = [object[@"code"]integerValue]; // [self.datasource removeAllObjects]; } fail:^(id object) { NSLog(@"%@",object); }]; } } - (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err @@ -578,7 +578,6 @@ @param completionHandler 宿åè° */ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { NSLog(@"[XGDemo] userinfo %@", userInfo); if(application.applicationState == UIApplicationStateActive){ //ç¨åºå½åæ£å¤äºåå° //å鿬å°éç¥ @@ -598,7 +597,6 @@ // App ç¨æ·ç¹å»éç¥çåè° // æ 论æ¬å°æ¨éè¿æ¯è¿ç¨æ¨éé½ä¼èµ°è¿ä¸ªåè° - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler { NSLog(@"[XGDemo] click notification"); NSDictionary * userInfo = response.notification.request.content.userInfo; [YTHsharedManger startManger].infomation = userInfo; // [[NSNotificationCenter defaultCenter] postNotification:notification]; @@ -715,6 +713,65 @@ }]; } - (void)isJumpTaobao { NSMutableDictionary *dic = [[NSMutableDictionary alloc] init]; if ([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]) { [dic setObject:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"]; } // [dic setObject:self.goodsID forKey:@"id"]; [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"systemclient/getsystemclientparams"] param:dic success:^(NSDictionary *object) { ALLog(@"%@",object); NSArray *array = object[@"data"][@"systemClientParamsList"]; for (NSInteger index = 0; index < array.count; index ++) { NSDictionary *dic = array[index]; if ([dic[@"key"] compare:@"iosonling"] == 0) { [YTHsharedManger startManger].playingType = [[NSString stringWithFormat:@"%@", dic[@"value"]]integerValue];// 1为ä¸çº¿åï¼éèï¼0 ï¼ä¸éè // [YTHsharedManger startManger].playingType = 0; NSLog(@"%ld",(long)[YTHsharedManger startManger].playingType); [self loadViewsWithBor:[YTHsharedManger startManger].playingType]; } if ([dic[@"key"] compare:@"newuser"] == 0) {// [YTHsharedManger startManger].isNewuser = ![dic[@"value"]boolValue]; } if ([dic[@"key"] compare:@"alipay_help"] == 0) {//æ¯ä»å®å¸®å©è¯¦æ [YTHsharedManger startManger].alipay_helpUrlString = [NSString stringWithFormat:@"%@", dic[@"value"]]; } if ([dic[@"key"] compare:@"weex_file_newer"] == 0) { [YTHsharedManger startManger].weexUrlString = [NSString stringWithFormat:@"%@", dic[@"value"]]; } if ([dic[@"key"] compare:@"web_newer"] == 0) { [YTHsharedManger startManger].weexUrlString = [NSString stringWithFormat:@"%@", dic[@"value"]]; } if ([dic[@"key"] compare:@"is_goods_web_detail"] == 0) { NSInteger value = [dic[@"value"]integerValue]; // value = 1; [YTHsharedManger startManger].isDetailWebValue = value; [[NSUserDefaults standardUserDefaults] setObject:[NSString stringWithFormat:@"%ld",(long)value] forKey:@"isDetailWebValue"]; // [[NSUserDefaults standardUserDefaults] setBool:value forKey:@""]; // break; } } } fail:^(id object) { }]; } #pragma mark é¿éç¾å· -(void)setAliTrade { // ç¾å·å¹³å°åºç¡SDKåå§åï¼å 载并åå§åå个ä¸å¡è½åæä»¶ MIduo/Info.plist
@@ -17,7 +17,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>1.3.5</string> <string>1.3.7</string> <key>CFBundleURLTypes</key> <array> <dict> @@ -88,7 +88,7 @@ </dict> </array> <key>CFBundleVersion</key> <string>25</string> <string>27</string> <key>LSApplicationQueriesSchemes</key> <array> <string>tbopen</string> MIduo/Êý¾Ý/DataNet/YTHNetInterface.h
@@ -14,7 +14,6 @@ //#define domainHTTP @"http://192.168.1.200:8088/fanli/api/v1" //2017-3-07 å ç½ï¼é©¬æ¦çï¼ //#define domainHTTP @"http://shop.yeshitv.com:8089/MiDuo/api/v1"//å¤ç½ #define domainHTTP @"http://flq.yeshitv.com/fanli/api/v1"//å¤ç½ @interface YTHNetInterface : NSObject typedef void(^YthNetWorkBlock)(BOOL isSuccessful , id result , NSString *error); MIduo/Êý¾Ý/FileSignature.m
@@ -7,7 +7,7 @@ // #import "FileSignature.h" #import <sys/utsname.h> @implementation FileSignature + (NSMutableDictionary *)CommonDictionary:(NSDictionary *)dictionary{ @@ -17,7 +17,7 @@ NSString *apiversion = @"1"; NSString *platform = @"ios"; NSString *appid = @"24567001"; NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithDictionary:dictionary]; [dic setObject:AppSecre forKey:@"appkey"]; @@ -27,7 +27,9 @@ [dic setObject:apiversion forKey:@"apiversion"]; [dic setObject:platform forKey:@"platform"]; [dic setObject:appid forKey:@"appid"]; [dic setObject:[self deviceType] forKey:@"deviceType"]; [dic setObject:[[UIDevice currentDevice] systemVersion] forKey:@"osVersion"]; [dic setObject:@"appstore" forKey:@"channel"]; //ç°å¨çæ¶é´ NSTimeInterval timeNow = [[NSDate date] timeIntervalSince1970]; long long int date = (long long int)timeNow*1000; @@ -83,5 +85,147 @@ return resultString; } + (NSString*)deviceType { struct utsname systemInfo; uname(&systemInfo); NSString*platform = [NSString stringWithCString: systemInfo.machine encoding:NSASCIIStringEncoding]; if([platform isEqualToString:@"iPhone1,1"]) return@"iPhone 2G"; if([platform isEqualToString:@"iPhone1,2"]) return@"iPhone 3G"; if([platform isEqualToString:@"iPhone2,1"]) return@"iPhone 3GS"; if([platform isEqualToString:@"iPhone3,1"]) return@"iPhone 4"; if([platform isEqualToString:@"iPhone3,2"]) return@"iPhone 4"; if([platform isEqualToString:@"iPhone3,3"]) return@"iPhone 4"; if([platform isEqualToString:@"iPhone4,1"]) return@"iPhone 4S"; if([platform isEqualToString:@"iPhone5,1"]) return@"iPhone 5"; if([platform isEqualToString:@"iPhone5,2"]) return@"iPhone 5"; if([platform isEqualToString:@"iPhone5,3"]) return@"iPhone 5c"; if([platform isEqualToString:@"iPhone5,4"]) return@"iPhone 5c"; if([platform isEqualToString:@"iPhone6,1"]) return@"iPhone 5s"; if([platform isEqualToString:@"iPhone6,2"]) return@"iPhone 5s"; if([platform isEqualToString:@"iPhone7,1"]) return@"iPhone 6 Plus"; if([platform isEqualToString:@"iPhone7,2"]) return@"iPhone 6"; if([platform isEqualToString:@"iPhone8,1"]) return@"iPhone 6s"; if([platform isEqualToString:@"iPhone8,2"]) return@"iPhone 6s Plus"; if([platform isEqualToString:@"iPhone8,4"]) return@"iPhone SE"; if([platform isEqualToString:@"iPhone9,1"]) return@"iPhone 7"; if([platform isEqualToString:@"iPhone9,3"]) return@"iPhone 7"; if([platform isEqualToString:@"iPhone9,2"]) return@"iPhone 7 Plus"; if([platform isEqualToString:@"iPhone9,4"]) return@"iPhone 7 Plus"; if([platform isEqualToString:@"iPhone10,1"]) return@"iPhone 8"; if([platform isEqualToString:@"iPhone10,4"]) return@"iPhone 8"; if([platform isEqualToString:@"iPhone10,2"]) return@"iPhone 8 Plus"; if([platform isEqualToString:@"iPhone10,5"]) return@"iPhone 8 Plus"; if([platform isEqualToString:@"iPhone10,3"]) return@"iPhone X"; if([platform isEqualToString:@"iPhone10,6"]) return@"iPhone X"; if([platform isEqualToString:@"iPod1,1"]) return@"iPod Touch 1G"; if([platform isEqualToString:@"iPod2,1"]) return@"iPod Touch 2G"; if([platform isEqualToString:@"iPod3,1"]) return@"iPod Touch 3G"; if([platform isEqualToString:@"iPod4,1"]) return@"iPod Touch 4G"; if([platform isEqualToString:@"iPod5,1"]) return@"iPod Touch 5G"; if([platform isEqualToString:@"iPad1,1"]) return@"iPad 1G"; if([platform isEqualToString:@"iPad2,1"]) return@"iPad 2"; if([platform isEqualToString:@"iPad2,2"]) return@"iPad 2"; if([platform isEqualToString:@"iPad2,3"]) return@"iPad 2"; if([platform isEqualToString:@"iPad2,4"]) return@"iPad 2"; if([platform isEqualToString:@"iPad2,5"]) return@"iPad Mini 1G"; if([platform isEqualToString:@"iPad2,6"]) return@"iPad Mini 1G"; if([platform isEqualToString:@"iPad2,7"]) return@"iPad Mini 1G"; if([platform isEqualToString:@"iPad3,1"]) return@"iPad 3"; if([platform isEqualToString:@"iPad3,2"]) return@"iPad 3"; if([platform isEqualToString:@"iPad3,3"]) return@"iPad 3"; if([platform isEqualToString:@"iPad3,4"]) return@"iPad 4"; if([platform isEqualToString:@"iPad3,5"]) return@"iPad 4"; if([platform isEqualToString:@"iPad3,6"]) return@"iPad 4"; if([platform isEqualToString:@"iPad4,1"]) return@"iPad Air"; if([platform isEqualToString:@"iPad4,2"]) return@"iPad Air"; if([platform isEqualToString:@"iPad4,3"]) return@"iPad Air"; if([platform isEqualToString:@"iPad4,4"]) return@"iPad Mini 2G"; if([platform isEqualToString:@"iPad4,5"]) return@"iPad Mini 2G"; if([platform isEqualToString:@"iPad4,6"]) return@"iPad Mini 2G"; if([platform isEqualToString:@"iPad4,7"]) return@"iPad Mini 3"; if([platform isEqualToString:@"iPad4,8"]) return@"iPad Mini 3"; if([platform isEqualToString:@"iPad4,9"]) return@"iPad Mini 3"; if([platform isEqualToString:@"iPad5,1"]) return@"iPad Mini 4"; if([platform isEqualToString:@"iPad5,2"]) return@"iPad Mini 4"; if([platform isEqualToString:@"iPad5,3"]) return@"iPad Air 2"; if([platform isEqualToString:@"iPad5,4"]) return@"iPad Air 2"; if([platform isEqualToString:@"iPad6,3"]) return@"iPad Pro 9.7"; if([platform isEqualToString:@"iPad6,4"]) return@"iPad Pro 9.7"; if([platform isEqualToString:@"iPad6,7"]) return@"iPad Pro 12.9"; if([platform isEqualToString:@"iPad6,8"]) return@"iPad Pro 12.9"; if([platform isEqualToString:@"i386"]) return@"iPhone Simulator"; if([platform isEqualToString:@"x86_64"]) return@"iPhone Simulator"; return platform; } @end MIduo/Êý¾Ý/YTHsharedManger.h
@@ -31,7 +31,7 @@ @property (nonatomic , assign)BOOL isChangeWX; @property (nonatomic , assign)CGFloat height; @property (nonatomic , strong)NSString *weexUrlString; @property (nonatomic,assign)BOOL isMinePush; @property (nonatomic , assign) BOOL isMessageLogin; @property (nonatomic , assign)BOOL isminebound; @@ -39,6 +39,7 @@ @property (nonatomic, assign) BOOL isShopCarWXLogin; @property (nonatomic, strong) NSString *alipay_helpUrlString; @property (nonatomic, assign)NSInteger playingType; @property (nonatomic, assign)BOOL isNewuser; + (YTHsharedManger *)startManger; //è¿å©å¸ç»å½ MIduo/Êý¾Ý/lib/EasyJSWebView-master/MyJSInterface.h
@@ -15,4 +15,7 @@ - (NSString *)getVersion; - (NSString *)getSign:(NSString *)string; - (void)toast:(NSString *)string; - (void)jumpGoodsSplash:(NSString *)string; - (void)jumpGoodsDetail:(NSString *)string; - (void)login; @end MIduo/Êý¾Ý/lib/EasyJSWebView-master/MyJSInterface.m
@@ -31,4 +31,18 @@ ALToastCenter(string); } - (void)jumpGoodsSplash:(NSString *)string{ NSDictionary *dic = @{@"type":@"new",@"id":string}; [[NSNotificationCenter defaultCenter] postNotificationName:@"jumpGoodsDETAIL" object:dic]; } - (void)jumpGoodsDetail:(NSString *)string{ NSDictionary *dic = @{@"type":@"old",@"id":string}; [[NSNotificationCenter defaultCenter] postNotificationName:@"jumpGoodsDETAIL" object:dic]; } - (void)login{ [[NSNotificationCenter defaultCenter] postNotificationName:@"jumpLoginVc" object:nil]; } @end MIduo/Êý¾Ý/lib/LXAlertView/BSKImagesPageView.h
New file @@ -0,0 +1,56 @@ // // BSKImagesPageView.h // Shopping // // Created by aaaa on 2016/11/16. // Copyright © 2016å¹´ YouMeiYiKeJi. All rights reserved. // #import <UIKit/UIKit.h> //#import <YYKit.h> @class BSKImagesPageView; @protocol BSKImagesPageViewViewDelegate <NSObject> @optional -(void)BSKImagesPageView:(BSKImagesPageView *)autoPlayScrollView onClickImageView:(UIImageView*)imageView atIndex:(NSInteger)index; @end @interface BSKImagesPageView : UIView //被å±ç¤ºçå¾ç们,妿æ¯ç½ç»å¾çï¼åimages为å¾çURLå符串æ°ç»ï¼å¦æä¸æ¯ï¼åimage为UIImageæ°ç»æå¾ççèµæºåç§° @property (nonatomic, strong) NSArray * images; @property (nonatomic, assign) BOOL canClickWhenScroll;//æ»å¨æ¶æ¯å¦å¯ä»¥ç¹å»ãé»è®¤ä¸ºYES @property (nonatomic, assign) NSInteger timerTimeInterval;//è½®æçé´é,为0åä¸èªå¨è½®æ @property (assign, nonatomic) BOOL showPageControl;//æ¯å¦æ¾ç¤ºå页æ§å¶å¨ @property (nonatomic, weak) id <BSKImagesPageViewViewDelegate> delegate; @property (nonatomic, strong) UIPageControl * pageControl; @property (assign, nonatomic) CGSize imageSize; -(void)scrollToIndex:(NSInteger)index; //-(YYAnimatedImageView * )curentImageView; /** åå§åå¾çè½®æè§å¾ @param frame è§å¾ç尺寸åä½ç½® @param images è¦å±ç¤ºçå¾ç们ï¼å¦ææ¯ç½ç»å¾çï¼åimages为å¾çURLå符串æ°ç»ï¼å¦æä¸æ¯ï¼åimage为UIImageæ°ç» @return æååè¿åè§å¾å¯¹è±¡ï¼å¤±è´¥è¿ånil */ - (instancetype)initWithFrame:(CGRect)frame imageNames:(NSArray *)images; /** åå§åå¾çè½®æè§å¾ï¼å¦æä¸æå®frameå以æ°ç»ç¬¬ä¸å¼ å¾ç大å°ä¸ºé»è®¤å¤§å°ï¼å¦ææ°ç»ä¸ºç©ºåé»è®¤æ¬¾200é«120ãé»è®¤ä½ç½®ä¸ºx=0,y=0; @param images è¦å±ç¤ºçå¾ç们ï¼å¦ææ¯ç½ç»å¾çï¼åimages为å¾çURLå符串æ°ç»ï¼å¦æä¸æ¯ï¼åimage为UIImageæ°ç» @return æååè¿åè§å¾å¯¹è±¡ï¼å¤±è´¥è¿ånil */ -(instancetype)initWithImages:(NSArray *)images; -(void)nextPage; -(void)lastPage; @end MIduo/Êý¾Ý/lib/LXAlertView/BSKImagesPageView.m
New file @@ -0,0 +1,336 @@ // // BSKImagesPageView.m // Shopping // // Created by aaaa on 2016/11/16. // Copyright © 2016å¹´ YouMeiYiKeJi. All rights reserved. // #import "BSKImagesPageView.h" #import "AFNetworking.h" //#import "BSKUtils.h" #import "UIImageView+WebCache.h" #ifndef BSKPlaceHolderImage #define BSKPlaceHolderImage [UIImage imageNamed:@"é»è®¤banner"] #endif @interface BSKImagesPageView ()<UIScrollViewDelegate> @property (nonatomic, strong) NSTimer * timer; @property (nonatomic, strong) UIScrollView * imageScroView; @property (nonatomic, strong) YYAnimatedImageView * firstImageView; @property (nonatomic, strong) YYAnimatedImageView * middleImageView; @property (nonatomic, strong) YYAnimatedImageView * lastImageView; @property (nonatomic, assign) NSInteger currentPage; @property (nonatomic, assign) BOOL isScroll; @property (nonatomic, assign) BOOL initFlag; @end @implementation BSKImagesPageView -(instancetype)initWithImages:(NSArray *)images{ CGFloat w= 200;//é»è®¤å®½é« CGFloat h = 120; self = [self initWithFrame:CGRectMake(0, 0,w,h) imageNames:images]; return self; } - (instancetype)initWithFrame:(CGRect)frame imageNames:(NSArray *)images { self = [self initWithFrame:frame]; if (self) { self.images = images; } return self; } -(void)awakeFromNib{ [super awakeFromNib]; [self initialize]; } - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self initialize]; } return self; } -(void)initialize{ _initFlag = NO; self.imageSize = CGSizeZero; self.canClickWhenScroll = YES; self.isScroll = NO; [self initializeUIserInterface]; } -(void)layoutSubviews{ self.imageScroView.frame = self.bounds; self.imageScroView.contentSize =CGSizeMake(self.bounds.size.width*3, self.bounds.size.height); //self.pageControl.frame = CGRectMake(0, self.bounds.size.height-20, self.bounds.size.width, 20); self.pageControl.frame = CGRectMake(0, self.bounds.size.height-30, self.bounds.size.width, 20); self.firstImageView.frame = CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height); self.middleImageView.frame = CGRectMake(self.bounds.size.width, 0, self.bounds.size.width, self.bounds.size.height); self.lastImageView.frame = CGRectMake(self.bounds.size.width*2, 0, self.bounds.size.width, self.bounds.size.height); [self.imageScroView setContentOffset:CGPointMake(self.bounds.size.width, 0) animated:NO]; [self openTimer:YES]; } -(void)initializeUIserInterface{//åå§åè§å¾ self.imageScroView = [[UIScrollView alloc]init]; self.firstImageView = [[YYAnimatedImageView alloc]init]; self.middleImageView = [[YYAnimatedImageView alloc]init]; self.lastImageView = [[YYAnimatedImageView alloc]init]; self.pageControl = [[UIPageControl alloc]init]; [self.firstImageView setContentScaleFactor:[[UIScreen mainScreen] scale]]; [self.middleImageView setContentScaleFactor:[[UIScreen mainScreen] scale]]; [self.lastImageView setContentScaleFactor:[[UIScreen mainScreen] scale]]; self.firstImageView.contentMode = UIViewContentModeScaleToFill; self.middleImageView.contentMode = UIViewContentModeScaleToFill; self.lastImageView.contentMode = UIViewContentModeScaleToFill; self.firstImageView.clipsToBounds = YES; self.middleImageView.clipsToBounds = YES; self.lastImageView.clipsToBounds = YES; [self addSubview:self.imageScroView]; self.imageScroView.delegate = self; self.imageScroView.pagingEnabled = YES; self.imageScroView.showsVerticalScrollIndicator = NO; self.imageScroView.showsHorizontalScrollIndicator = NO; self.pageControl.currentPage = 0; self.currentPage = 0; self.pageControl.numberOfPages = self.images.count; self.pageControl.pageIndicatorTintColor = [UIColor lightGrayColor]; // self.pageControl.currentPageIndicatorTintColor = UIColorHex(@"f4bb3dff"); // self.pageControl.currentPageIndicatorTintColor = UIColorFromRGB(0xFE7C21, 1.0); self.pageControl.currentPageIndicatorTintColor = [UIColor whiteColor]; self.pageControl.userInteractionEnabled =NO; [self addSubview:self.pageControl]; [self.imageScroView addSubview:self.firstImageView]; [self.imageScroView addSubview:self.middleImageView]; [self.imageScroView addSubview:self.lastImageView]; [self refreshImage]; UITapGestureRecognizer * tapGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapAction:)]; [self addGestureRecognizer:tapGesture]; } //ç¹å»æå¿ -(void)tapAction:(UITapGestureRecognizer *)geture{ if (self.images.count==0) { return; } if (self.isScroll) { //NSLog(@"[BSKImagesPageView]: canClickWhenScroll = %@",self.canClickWhenScroll?@"YES":@"NO"); if(!self.canClickWhenScroll){ return; } } if (self.delegate) { if([self.delegate respondsToSelector:@selector(BSKImagesPageView:onClickImageView:atIndex:)]){ [self.delegate BSKImagesPageView:self onClickImageView:self.middleImageView atIndex:self.pageControl.currentPage]; } } } //æå¼æå ³é计æ¶å¨ -(void)openTimer:(BOOL)open{ if (self.images.count<=1) { [self.timer invalidate]; return; } if (self.timerTimeInterval<=0) { [self.timer invalidate]; return; } if (open) { [self.timer invalidate]; self.timer = [NSTimer scheduledTimerWithTimeInterval:self.timerTimeInterval target:self selector:@selector(nextPage) userInfo:nil repeats:YES]; }else{ [self.timer invalidate]; } } //æ ¹æ®å½åçé¡µç æ´æ°å¾ç -(void)refreshImage{ if (self.images.count==0) { return; } NSInteger firstIndex = self.currentPage - 1; if (firstIndex<0) { firstIndex = self.images.count - 1; } NSInteger lastIndex = self.currentPage + 1; if (lastIndex>=self.images.count) { lastIndex=0; } //NSLog(@"%ld %ld %ld",firstIndex,self.currentPage,lastIndex); [self setImage:self.images[firstIndex] toImageView:self.firstImageView]; [self setImage:self.images[self.currentPage] toImageView:self.middleImageView]; [self setImage:self.images[lastIndex] toImageView:self.lastImageView]; } -(void)setImage:(id) image toImageView:(YYAnimatedImageView*)imageview{ NSString *imageString = (NSString *)image; if (imageString.length == 0) { [imageview setImage:BSKPlaceHolderImage]; return; } [imageview setYthImageWithURL:imageString placeholderImage:BSKPlaceHolderImage]; } //æ»å¨å°ä¸ä¸é¡µï¼è½®æã -(void)nextPage{ if (self.images.count>1) { self.isScroll = YES; [self.imageScroView setContentOffset:CGPointMake(self.frame.size.width*2, 0) animated:YES]; } if (!self.superview) { [self openTimer:NO]; } } -(void)lastPage{ if (self.images.count>1) { self.isScroll = YES; [self.imageScroView setContentOffset:CGPointMake(0, 0) animated:YES]; } } -(void)scrollToIndex:(NSInteger)index{ if (index>=self.images.count||index<0||self.images.count==0) { return; } [self setImage:self.images[index] toImageView:self.lastImageView]; [self nextPage]; self.currentPage = index-1>=0?index-1:self.images.count-1; } #pragma marck UIScrollViewDelegate //彿»å¨å¨ç»å®ææ¶æ´æ°é¡µç éç½®å¾çï¼åªæè½®ææ¶æä¼è§¦åï¼ -(void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView{ [self scrollViewDidEndDecelerating:scrollView]; } //彿»å¨å°ä¸¤è¾¹è¾¹ç¼æ¶è¿è¡é¡µç å¤çå¹¶éç½®å¾ç -(void)scrollViewDidScroll:(UIScrollView *)scrollView{ if (self.images.count==0) { return; } if (scrollView.contentOffset.x<0) { scrollView.contentOffset = CGPointMake(self.frame.size.width, 0); self.currentPage--; }else if (scrollView.contentOffset.x>self.frame.size.width*2) { scrollView.contentOffset = CGPointMake(self.frame.size.width, 0); self.currentPage++; }else{ return; } NSInteger arrayCount =self.images.count+0; if (self.currentPage>=arrayCount) { self.currentPage = 0; } if (self.currentPage<0) { self.currentPage = self.images.count-1; } [self refreshImage]; [self.imageScroView setContentOffset:CGPointMake(self.frame.size.width, 0) animated:NO]; self.pageControl.currentPage=self.currentPage; self.isScroll = YES; } //å½åéå¨ç»å®ææ¶æ´æ°é¡µç å¹¶éç½®å¾çãï¼ææ½æ¶æä¼è§¦åï¼ -(void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ if (self.images.count==0) { return; } if (scrollView.contentOffset.x==0) { self.currentPage--; } else if(scrollView.contentOffset.x==self.frame.size.width*2){ self.currentPage++; } else{ return; } NSInteger arrayCount =self.images.count+0; if (self.currentPage>=arrayCount) { self.currentPage = 0; } if (self.currentPage<0) { self.currentPage = self.images.count-1; } [self refreshImage]; [self.imageScroView setContentOffset:CGPointMake(self.frame.size.width, 0) animated:NO]; self.pageControl.currentPage=self.currentPage; self.isScroll = NO; } //å¼å§ææ½æ¶å ³é计æ¶å¨ -(void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{ self.isScroll = YES; [self openTimer:NO]; } //ç»æææ½æ¶æå¼è®¡æ¶å¨ç»§ç»è½®æ -(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate{ [self openTimer:YES]; } #pragma marck setter -(void)setTimerTimeInterval:(NSInteger)timerTimeInterval{ _timerTimeInterval = timerTimeInterval; [self openTimer:YES]; } -(void)setImages:(NSArray *)images { _images = images; self.pageControl.numberOfPages = _images.count; self.pageControl.currentPage = 0; self.currentPage = 0; if (!(images.count > 1)) { [self openTimer:NO]; self.pageControl.hidden = YES; }else{ [self openTimer:YES]; self.pageControl.hidden = NO; } [self refreshImage]; self.imageScroView.scrollEnabled = _images.count>1; } -(void)setShowPageControl:(BOOL)showPageControl{ _showPageControl = showPageControl; self.pageControl.hidden = !showPageControl; } -(YYAnimatedImageView * )curentImageView{ return self.middleImageView; } -(void)dealloc{ //NSLog(@"BSKImagesPageView-Delloc"); [self.timer invalidate]; } @end MIduo/Êý¾Ý/lib/ZJScrollPageView/ZJCollectionView.m
@@ -16,6 +16,7 @@ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer { [[[UIApplication sharedApplication] keyWindow] endEditing:YES]; if (_gestureBeginHandler && gestureRecognizer == self.panGestureRecognizer) { return _gestureBeginHandler(self, (UIPanGestureRecognizer *)gestureRecognizer); } MIduo/Êý¾Ý/lib/ZJScrollPageView/ZJScrollPageView.m
@@ -19,7 +19,6 @@ @end @implementation ZJScrollPageView #pragma mark - life cycle - (instancetype)initWithFrame:(CGRect)frame segmentStyle:(ZJSegmentStyle *)segmentStyle titles:(NSArray<NSString *> *)titles parentViewController:(UIViewController *)parentViewController delegate:(id<ZJScrollPageViewDelegate>) delegate { MIduo/½çÃæ/SJBaseViewController.m
@@ -24,10 +24,8 @@ if (self.title.length > 0) { [MobClick beginLogPageView:self.title]; NSLog(@"%@",self.title); } else{ [MobClick beginLogPageView:self.navigationItem.title]; NSLog(@"%@",self.navigationItem.title); } } MIduo/½çÃæ/ÓÅ»Ýȯ/classificationViewController.m
@@ -41,7 +41,7 @@ self.navigationController.navigationBar.translucent = NO; // è®¾ç½®å¯¼èªæ é¢è² self.navigationController.navigationBar.barTintColor = YTHColor(229, 0, 92); self.navigationController.navigationBar.barTintColor = XYRMainColor; self.automaticallyAdjustsScrollViewInsets = NO; } @@ -52,7 +52,7 @@ - (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = YTHColor(229, 0, 92); self.view.backgroundColor = XYRMainColor; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(NetWorkStatesChange:) MIduo/½çÃæ/¶¯Ì¬/DynamicViewController.m
@@ -257,7 +257,6 @@ [dic setValue:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"]; [dic setValue:activityId forKey:@"activityId"]; [[ALNetWorking startInterface] Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/shareGoods"] param:dic success:^(NSDictionary *object) { MIduo/½çÃæ/ÎÒµÄ/MineViewController.m
@@ -141,10 +141,10 @@ [self autoLogin]; } [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bindTaoBaos) name:@"TaoBaoBound" object:nil]; // [[NSNotificationCenter defaultCenter] addObserver:self // selector:@selector(bindTaoBaos) // name:@"TaoBaoBound" // object:nil]; } - (void)getMessage { @@ -651,7 +651,7 @@ ALBBUser *myMessage = [[ALBBSession sharedInstance] getUser]; NSString *Openid = myMessage.openId; if (![self.userInfo[@"openid"] isEqualToString:Openid]) { [self autoDisappearAlertTime:2 msg:@"äº²ï¼ææç»å½ä¸å¹é ï¼è¯·ç»å½æµ·èè¡ç»å®çæ·å®å·è¿è¡ææç»å½"]; [self autoDisappearAlertTime:2 msg:@"äº²ï¼ææç»å½ä¸å¹é ï¼è¯·ç»å½è¿å©å¸ç»å®çæ·å®å·è¿è¡ææç»å½"]; [[ALBBSDK sharedInstance] logout]; }else{ @@ -852,7 +852,7 @@ [alertView dismiss]; alertView=nil; [self Login]; // [self Login]; } else if(buttonIndex==782) {//æ¥çç¨æ·åè®® [alertView dismiss]; MIduo/½çÃæ/ÎÒµÄ/Setting/View/SettingViewController.m
@@ -52,8 +52,14 @@ [self CreatTableView]; [self bingViewModel]; } [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(fromBack:) name:@"fromBackGround" object:nil]; } - (void)fromBack:(NSNotification *)notice{ if (_settingTableView) { [_settingTableView reloadData]; } } - (void)bingViewModel { RAC(self.viewModel, uid) = RACObserve(self, uid); @@ -231,11 +237,11 @@ if ([self isAllowedNotification]) { [cell.switchButton setOn:YES]; [cell.switchButton setOn:NO]; } else { [cell.switchButton setOn:NO]; [cell.switchButton setOn:YES]; } return cell; MIduo/½çÃæ/ÎÒµÄ/balance/BalanceViewController.m
@@ -117,13 +117,13 @@ [_primtWindow addSubview:self.primtView]; if (sender.tag == 35) { self.primtTitle.text = @"仿¥é¢ä¼°æ¶ç"; self.primtContent.text = @"仿¥æ°å¢çææè®¢åé¢ä¼°æ¶ç"; self.primtContent.text = @"仿¥æ°å¢çå¥é订åé¢ä¼°æ¶ç"; }else if(sender.tag == 36){ self.primtTitle.text = @"æ¬æé¢ä¼°æ¶ç"; self.primtContent.text = @"æ¬æå 产ççææè®¢åé¢ä¼°æ¶çï¼ä¼å¨è®¢å确认æ¶è´§åçæ¬¡æ25æ¥åè½¬å ¥ä½ çä½é¢ï¼ä»¥å®é è½¬å ¥ä½é¢ä¸ºå"; self.primtContent.text = @"æ¬æå 产ççå¥é订åé¢ä¼°æ¶çï¼ä¼å¨è®¢å确认æ¶è´§åçæ¬¡æ25æ¥åè½¬å ¥ä½ çä½é¢ï¼ä»¥å®é è½¬å ¥ä½é¢ä¸ºå"; }else{ self.primtTitle.text = @"䏿é¢ä¼°æ¶å ¥"; self.primtContent.text = @"ä¸ä¸ªæå 确认æ¶è´§çè®¢åæ¶å ¥ï¼æ¯æ25æ¥ç»ç®åï¼å°èªå¨è½¬å ¥ä½ çä½é¢"; self.primtContent.text = @"ä¸ä¸ªæå 确认æ¶è´§çå¥éè®¢åæ¶å ¥ï¼æ¯æ25æ¥ç»ç®åï¼å°èªå¨è½¬å ¥ä½ çä½é¢"; } } MIduo/½çÃæ/ÎÒµÄ/userInfoViewController.m
@@ -168,7 +168,11 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ if(section==0){ return 4; if ([YTHsharedManger startManger].playingType == 1) { return 3; }else{ return 4; } }else{ return 3; } MIduo/½çÃæ/ÍøÒ³ÊÓͼ/SureWebViewController.m
@@ -99,26 +99,26 @@ // å建ç½é¡µè§å¾ [self createWebView]; if([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]){ if(![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBSession sharedInstance] isLogin]){ SearchTip *searchTips=[[SearchTip alloc] initWithSearchStr:@"为确ä¿è®¢åæè¿å©ï¼è¯·ææç»å½æ·å®è´¦å·" withIsSearch:NO]; searchTips.titleLabel.text = @"æç¤º"; searchTips.hasIndex = ^(NSInteger index) { if (index == 790) {//ç¡®å® [searchTips dismiss]; [self unBind]; //ç»å½çé¢ [self LoginForTaoBao]; } else if (index==791 || index == 792){//å ³é [searchTips dismiss]; } }; [searchTips show]; } } // if([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]){ // // if(![[NSUserDefaults standardUserDefaults] boolForKey:@"TaoBaoLogin"] || ![[ALBBSession sharedInstance] isLogin]){ // SearchTip *searchTips=[[SearchTip alloc] initWithSearchStr:@"为确ä¿è®¢åæè¿å©ï¼è¯·ææç»å½æ·å®è´¦å·" withIsSearch:NO]; // searchTips.titleLabel.text = @"æç¤º"; // searchTips.hasIndex = ^(NSInteger index) { // // if (index == 790) {//ç¡®å® // [searchTips dismiss]; // [self unBind]; // //ç»å½çé¢ // [self LoginForTaoBao]; // // } else if (index==791 || index == 792){//å ³é // [searchTips dismiss]; // } // }; // [searchTips show]; // } // } } - (void)LoginForTaoBao { MIduo/½çÃæ/ÍøÒ³ÊÓͼ/ÉÌÆ·ÏêÇé/ButtomCarView.m
@@ -25,6 +25,7 @@ [self addSubview:self.buyButton]; [self addSubview:_heartImage]; [self addSubview:_collecLabel]; // [YTHsharedManger startManger].playingType = 0 ; if ([YTHsharedManger startManger].playingType == 0) { UIImageView *shareImage = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMinX(self.shareButton.frame) + (KScreenW - KScreenW / 5) / 4 - 35 - 3 , 7, 17, 16)]; if (KScreenW < 375) { MIduo/½çÃæ/ÍøÒ³ÊÓͼ/ÉÌÆ·ÏêÇé/GoodDeTrViewController.m
@@ -670,9 +670,8 @@ if ([object[@"code"] integerValue] == 0) { [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window]; [SVProgressHUD showSuccessWithStatus:BIND_SUCCESS]; // [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window]; // [SVProgressHUD showSuccessWithStatus:BIND_SUCCESS]; [self fetchTbPidInfo]; @@ -1357,7 +1356,7 @@ for (NSString *url in self.detailArray) { [[SDImageCache sharedImageCache] removeImageForKey:url withCompletion:^{ALLog(@"å½åçé¢ç¼åæ¸ é¤å®æ");}]; } [[NSNotificationCenter defaultCenter] removeObserver:self name:@"TaoBaoBound" object:nil]; [[NSNotificationCenter defaultCenter] removeObserver:self]; } MIduo/½çÃæ/ÑûÇë/MainInviteViewController.m
@@ -175,17 +175,17 @@ if (sender.tag == 35) { self.primtTitle.text = @"仿¥é¢ä¼°æ¶ç"; self.primtContent.text = @"仿¥æ°å¢çææè®¢åé¢ä¼°æ¶ç"; self.primtContent.text = @"仿¥æ°å¢çå¥é订åé¢ä¼°æ¶ç"; } else if(sender.tag == 36) { self.primtTitle.text = @"æ¬æé¢ä¼°æ¶ç"; self.primtContent.text = @"æ¬æå 产ççææè®¢åé¢ä¼°æ¶çï¼ä¼å¨è®¢å确认æ¶è´§åçæ¬¡æ25æ¥åè½¬å ¥ä½ çä½é¢ï¼ä»¥å®é è½¬å ¥ä½é¢ä¸ºå"; self.primtContent.text = @"æ¬æå 产ççå¥é订åé¢ä¼°æ¶çï¼ä¼å¨è®¢å确认æ¶è´§åçæ¬¡æ25æ¥åè½¬å ¥ä½ çä½é¢ï¼ä»¥å®é è½¬å ¥ä½é¢ä¸ºå"; } else { self.primtTitle.text = @"䏿é¢ä¼°æ¶å ¥"; self.primtContent.text = @"ä¸ä¸ªæå 确认æ¶è´§çè®¢åæ¶å ¥ï¼æ¯æ25æ¥ç»ç®åï¼å°èªå¨è½¬å ¥ä½ çä½é¢"; self.primtContent.text = @"ä¸ä¸ªæå 确认æ¶è´§çå¥éè®¢åæ¶å ¥ï¼æ¯æ25æ¥ç»ç®åï¼å°èªå¨è½¬å ¥ä½ çä½é¢"; } } MIduo/½çÃæ/ÑûÇë/ÉÌÆ··ÖÏí/ShonpingShareViewController.m
@@ -57,18 +57,56 @@ [super viewDidLoad]; self.title = @"å建å享"; self.view.backgroundColor = XYRBackgroundColor; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jumpGoodsDETAIL:) name:@"jumpGoodsDETAIL" object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jumpLoginVc:) name:@"jumpLoginVc" object:nil]; [self.view addSubview:self.webView]; _interface = [MyJSInterface new]; [self.webView addJavascriptInterfaces:_interface WithName:@"yestv"]; // self.urlString = @"http://192.168.1.122:8080/fanli/client/html/sharegoods/index.html?id=564119163739"; // self.urlString = @"http://192.168.1.122:8020/Test/api_test.html"; [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.urlString]]]; } - (void)viewWillDisappear:(BOOL)animated{ [super viewWillDisappear:animated]; // [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES]; } /** æ ¹æ®éç¥ä¿¡æ¯ææä¸åççé¢ @param notice notice */ - (void)jumpGoodsDETAIL:(NSNotification *)notice { NSDictionary *dic = notice.object; NSString *type = dic[@"type"]; NSString *goodID = dic[@"id"]; if ([type compare:@"new"] == 0) { GoodDeTrViewController *goodsDetailVC = [[GoodDeTrViewController alloc]init]; goodsDetailVC.hidesBottomBarWhenPushed = YES; goodsDetailVC.goodsID = goodID; [self .navigationController pushViewController:goodsDetailVC animated:YES]; } else { SureWebViewController *webView=[[SureWebViewController alloc] init]; [webView backClicked:^(NSString *string) { }]; webView.goodsId=goodID; webView.canDownRefresh=YES; webView.isGoodsDetail = YES; webView.hidesBottomBarWhenPushed = YES; [self.navigationController pushViewController:webView animated:YES]; } } - (void)jumpLoginVc:(NSNotification *)notice { //ç»å½çé¢ LoginViewController *loginVc = [[LoginViewController alloc] init]; loginVc.hidesBottomBarWhenPushed = YES; [self.navigationController pushViewController:loginVc animated:YES]; } #pragma mark -HXEasyCustomShareViewDelegate - (void)easyCustomShareViewButtonAction:(HXEasyCustomShareView *)shareView title:(NSString *)title { MIduo/½çÃæ/Ê×Ò³/NEWHomeViewController.m
@@ -16,7 +16,7 @@ #import "CodeFieldViewController.h" #import "MineMessageViewController.h" #import "SearchTip.h" #import "ShonpingShareViewController.h" @interface NEWHomeViewController ()<ZJScrollPageViewDelegate>{ NSInteger SpeciesNumber; //ç»åç±»çä½ç½® @@ -87,7 +87,6 @@ [self CreatNoNetView]; // å è½½æ°æ® [self loadOldData]; [self isJumpTaobao]; [YTHsharedManger startManger].isDetailWebValue = [[[NSUserDefaults standardUserDefaults] objectForKey:@"isDetailWebValue"]integerValue]; @@ -202,12 +201,9 @@ } if (type == 2) { SureWebViewController *TaoBaowebView=[[SureWebViewController alloc] init]; TaoBaowebView.url = url; TaoBaowebView.canDownRefresh=YES; TaoBaowebView.isPush = YES; ShonpingShareViewController *TaoBaowebView=[[ShonpingShareViewController alloc] init]; TaoBaowebView.urlString = url; TaoBaowebView.hidesBottomBarWhenPushed=YES; TaoBaowebView.isMain = YES; [controller.navigationController pushViewController:TaoBaowebView animated:YES]; } @@ -482,58 +478,7 @@ return [numberPre evaluateWithObject:textString]; } - (void)isJumpTaobao { NSMutableDictionary *dic = [[NSMutableDictionary alloc] init]; if ([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]) { [dic setObject:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"]; } // [dic setObject:self.goodsID forKey:@"id"]; [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"systemclient/getsystemclientparams"] param:dic success:^(NSDictionary *object) { ALLog(@"%@",object); NSArray *array = object[@"data"][@"systemClientParamsList"]; for (NSInteger index = 0; index < array.count; index ++) { NSDictionary *dic = array[index]; if ([dic[@"key"] compare:@"iosonling"] == 0) { [YTHsharedManger startManger].playingType = [[NSString stringWithFormat:@"%@", dic[@"value"]]integerValue];// 1为ä¸çº¿åï¼éèï¼0 ï¼ä¸éè // [YTHsharedManger startManger].playingType = 0; } if ([dic[@"key"] compare:@"alipay_help"] == 0) {//æ¯ä»å®å¸®å©è¯¦æ [YTHsharedManger startManger].alipay_helpUrlString = [NSString stringWithFormat:@"%@", dic[@"value"]]; } if ([dic[@"key"] compare:@"weex_file_newer"] == 0) { [YTHsharedManger startManger].weexUrlString = [NSString stringWithFormat:@"%@", dic[@"value"]]; } if ([dic[@"key"] compare:@"web_newer"] == 0) { [YTHsharedManger startManger].weexUrlString = [NSString stringWithFormat:@"%@", dic[@"value"]]; } if ([dic[@"key"] compare:@"is_goods_web_detail"] == 0) { NSInteger value = [dic[@"value"]integerValue]; // value = 1; [YTHsharedManger startManger].isDetailWebValue = value; [[NSUserDefaults standardUserDefaults] setObject:[NSString stringWithFormat:@"%ld",(long)value] forKey:@"isDetailWebValue"]; // [[NSUserDefaults standardUserDefaults] setBool:value forKey:@""]; // break; } } } fail:^(id object) { }]; } /** 跳转å°è¯¦ç»çåç±»çé¢ @param sender æé® MIduo/½çÃæ/Ê×Ò³/recommendCollectionViewCell.xib
@@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> <device id="retina4_7" orientation="portrait"> <adaptation id="fullscreen"/> </device> MIduo/½çÃæ/Ê×Ò³/recommendViewController.m
@@ -26,9 +26,10 @@ #import "YLImageView.h" #import "MainInviteViewController.h" #import "GoodDeTrViewController.h" #import "BSKImagesPageView.h" @interface recommendViewController ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,SDCycleScrollViewDelegate,UIScrollViewDelegate, GiftsViewDelegate>{ SDCycleScrollView *_cycleScrollView; //头é¨çæ¨èè½®æå¾ @interface recommendViewController ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,SDCycleScrollViewDelegate,UIScrollViewDelegate, BSKImagesPageViewViewDelegate,GiftsViewDelegate>{ NSIndexPath *tempIndexPath; } @@ -63,6 +64,9 @@ @property (nonatomic,strong)YLImageView *imageViewGif; @property (nonatomic, strong) BSKImagesPageView *bSKImagesPageView; @end @implementation recommendViewController @@ -73,7 +77,6 @@ -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [_cycleScrollView adjustWhenControllerViewWillAppera]; /** * 注解ï¼å½ç¨æ·ç¬¬ä¸æ¬¡ç»éæ¶ ï¼æä»¬ä¼ç»ç¨æ·åä¸ä¸ªæ°äººçº¢å ï¼ä½æ¯æ°äººçº¢å èæ¯çè屿²¡æè¦çnavigationBaråtabBarçé¨åï¼æä»¥ææå¨ååäºä¸¤ä¸ªèå±ï¼ä½æ¯ç¨æ·ç¹å»å¸®å©æ¶ï¼ä¼è¿å ¥å¸®å©ä¸å¿ï¼è¿æ¶åï¼æä»¬éè¦æå¨çæèå±éèæï¼ä½æ¯ç¨æ·ä»å¸®å©ä¸å¿åæ¥çæ¶åï¼åªçè§ä¸»è§å¾çèå±ï¼navigationBaråtabBarçé¨åï¼åæè¢«æä»¬éèæäºï¼æä»¥ï¼ä»å¸®å©ä¸å¿åæ¥çæ¶åï¼ä¼è°ç¨viewWillAppearï¼è¿ä¸ªæ¶åï¼æ£æ¥_Giftsæ¯å¦è¿å¨ï¼å¦æå¨ï¼é£ä¹å°±éæ°æ¾ç¤ºnavigationBaråtabBarçé¨åçèå±ã @@ -118,9 +121,9 @@ //æ¯å¦æ¾ç¤ºæ°äººçº¢å çå¼¹çª if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"newuser"] intValue] == 0) { [self ShowNewUser]; if ([YTHsharedManger startManger].isNewuser) { [self ShowNewUser]; } } else { [self getPasteboard]; @@ -154,7 +157,7 @@ - (void)ShowNewUser { //夿å½åç¨æ·æ¯å¦ç»å½ BOOL bor = [[NSUserDefaults standardUserDefaults] objectForKey:@"islogined"]; BOOL bor = [[NSUserDefaults standardUserDefaults] boolForKey:@"islogined"]; if (([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] == nil) && (self.navigationController.viewControllers.count==1 && !bor )){ if (_Gifts) { @@ -354,13 +357,12 @@ // [_UrlForshuffling addObject:[[[_dataBanner objectAtIndex:i] objectForKey:@"params"]objectForKey:@"url"]]; } if (!_cycleScrollView) { _cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0,KScreenW, KScreenW*7/16) imageURLStringsGroup:_PictureForshuffling]; _cycleScrollView.pageControlAliment = SDCycleScrollViewPageContolAlimentCenter; _cycleScrollView.currentPageDotColor=[UIColor whiteColor]; _cycleScrollView.delegate = self; _cycleScrollView.placeholderImage = [UIImage imageNamed:@"é»è®¤banner"]; _cycleScrollView.bannerImageViewContentMode=UIViewContentModeScaleToFill; if (!_bSKImagesPageView) { _bSKImagesPageView = [[BSKImagesPageView alloc] initWithFrame:CGRectMake(0, 0,KScreenW, KScreenW*7/16) imageNames:_PictureForshuffling]; _bSKImagesPageView.timerTimeInterval = 2.0f; _bSKImagesPageView.showPageControl = YES; _bSKImagesPageView.delegate = self; } } @@ -753,8 +755,7 @@ } // å®å¶è½®æå¾ [shuffling addSubview:_cycleScrollView]; [_cycleScrollView adjustWhenControllerViewWillAppera]; [shuffling addSubview:_bSKImagesPageView]; return shuffling; @@ -903,17 +904,15 @@ [self.navigationController pushViewController:LoginVC animated:YES]; } #pragma mark --- SDCycleScrollViewDelegate --- /** ç¹å»å¾çåè° */ - (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index { #pragma mark - BSKImagesPageViewViewDelegate - (void)BSKImagesPageView:(BSKImagesPageView *)autoPlayScrollView onClickImageView:(UIImageView *)imageView atIndex:(NSInteger)index{ if (self.dataBanner == nil || self.dataBanner.count<1) { return; } //ç¹å»è¿å ¥è¿å©ç½é¡µ NSString *controller = _dataBanner [index][@"jumpDetail"][@"controller"]; NSDictionary *tempItem=_dataBanner[index]; if ([controller compare:@"GoodsDetailController"] == 0) { if ([YTHsharedManger startManger].isDetailWebValue) {