36个文件已删除
42个文件已修改
109个文件已添加
| | |
| | | |
| | | /* Begin PBXBuildFile section */ |
| | | 18052EA31E208379005997FC /* SafariServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18052EA21E208379005997FC /* SafariServices.framework */; }; |
| | | 180ACA161DF933C000969256 /* iphone6p.png in Resources */ = {isa = PBXBuildFile; fileRef = 180ACA121DF933C000969256 /* iphone6p.png */; }; |
| | | 180ACA171DF933C000969256 /* iphone4.png in Resources */ = {isa = PBXBuildFile; fileRef = 180ACA131DF933C000969256 /* iphone4.png */; }; |
| | | 180ACA181DF933C000969256 /* iphone6.png in Resources */ = {isa = PBXBuildFile; fileRef = 180ACA141DF933C000969256 /* iphone6.png */; }; |
| | | 180ACA191DF933C000969256 /* iphone5.png in Resources */ = {isa = PBXBuildFile; fileRef = 180ACA151DF933C000969256 /* iphone5.png */; }; |
| | | 181D3A091E1DFD5300CDBDE9 /* XYRUITextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 181D3A081E1DFD5300CDBDE9 /* XYRUITextField.m */; }; |
| | | 1823F4CA1DACC91F00C114C3 /* forgetPasswordViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1823F4C81DACC91F00C114C3 /* forgetPasswordViewController.m */; }; |
| | | 1823F4CB1DACC91F00C114C3 /* forgetPasswordViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1823F4C91DACC91F00C114C3 /* forgetPasswordViewController.xib */; }; |
| | |
| | | 1884A6031E545D4900548480 /* PopoverViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 1884A5FF1E545D4900548480 /* PopoverViewCell.m */; }; |
| | | 1884A6041E545D4900548480 /* PopoverViews.m in Sources */ = {isa = PBXBuildFile; fileRef = 1884A6011E545D4900548480 /* PopoverViews.m */; }; |
| | | 1884A6081E54630300548480 /* LGLAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1884A6071E54630300548480 /* LGLAlertView.m */; }; |
| | | 1896FB8A1F736A9200720355 /* libGDTMobSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1896FB891F7360D300720355 /* libGDTMobSDK.a */; }; |
| | | 189787821D9233E9006245B9 /* View.xib in Resources */ = {isa = PBXBuildFile; fileRef = 189787811D9233E9006245B9 /* View.xib */; }; |
| | | 189787861D925B5D006245B9 /* GoogleAdTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 189787841D925B5D006245B9 /* GoogleAdTableViewCell.m */; }; |
| | | 189787871D925B5D006245B9 /* GoogleAdTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 189787851D925B5D006245B9 /* GoogleAdTableViewCell.xib */; }; |
| | | 189EFECB1EF1465D00C59CAB /* yw_1222.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 189EFECA1EF1465D00C59CAB /* yw_1222.jpg */; }; |
| | | 18A0604E2060EEE700BACA54 /* libGDTMobSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 18A060472060EEE500BACA54 /* libGDTMobSDK.a */; }; |
| | | 18A060502060F7EF00BACA54 /* 640x1136.png in Resources */ = {isa = PBXBuildFile; fileRef = 18A0604F2060F7EF00BACA54 /* 640x1136.png */; }; |
| | | 18ABF6E31DDD9B4600C9257E /* YTHNetdata.m in Sources */ = {isa = PBXBuildFile; fileRef = 18ABF6E01DDD9B4600C9257E /* YTHNetdata.m */; }; |
| | | 18ABF6E41DDD9B4600C9257E /* YTHNetInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 18ABF6E21DDD9B4600C9257E /* YTHNetInterface.m */; }; |
| | | 18B1C25A1DB5B26B00AB709B /* HMSegmentedControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 18B1C23C1DB5B26B00AB709B /* HMSegmentedControl.m */; }; |
| | |
| | | 18C13D611EF2802900B49412 /* AlibabaAuthSDK.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 18C13D601EF2802900B49412 /* AlibabaAuthSDK.bundle */; }; |
| | | 18C5F6401E1B8B0A00537707 /* findTitleTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C5F63C1E1B8B0A00537707 /* findTitleTableViewCell.m */; }; |
| | | 18C5F6411E1B8B0A00537707 /* findTitleTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 18C5F63D1E1B8B0A00537707 /* findTitleTableViewCell.xib */; }; |
| | | 18C7E86820609E1D000E019D /* 320-Ã-480.png in Resources */ = {isa = PBXBuildFile; fileRef = 18C7E86220609E1D000E019D /* 320-Ã-480.png */; }; |
| | | 18C7E86C20609E1D000E019D /* 621-Ã-1104.png in Resources */ = {isa = PBXBuildFile; fileRef = 18C7E86620609E1D000E019D /* 621-Ã-1104.png */; }; |
| | | 18C95F531D94DE2A009CBF0F /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 18C95F521D94DE2A009CBF0F /* GoogleService-Info.plist */; }; |
| | | 18D94EAB1ECD7B6E00B6FA54 /* newADCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 18D94EA91ECD7B6E00B6FA54 /* newADCollectionViewCell.m */; }; |
| | | 18D94EAC1ECD7B6E00B6FA54 /* newADCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 18D94EAA1ECD7B6E00B6FA54 /* newADCollectionViewCell.xib */; }; |
| | | 18E943E62057656C0019FD04 /* recommendViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18E943E52057656C0019FD04 /* recommendViewController.m */; }; |
| | | 18E943E9205766510019FD04 /* subregionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18E943E8205766510019FD04 /* subregionViewController.m */; }; |
| | | 18E943EC2057667D0019FD04 /* MineViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18E943EB2057667D0019FD04 /* MineViewController.m */; }; |
| | | 18E943EF205767120019FD04 /* discoverViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18E943EE205767120019FD04 /* discoverViewController.m */; }; |
| | | 18E943F2205774D50019FD04 /* BaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18E943F1205774D50019FD04 /* BaseViewController.m */; }; |
| | | 18E943F52057C5720019FD04 /* JYNetWorking.m in Sources */ = {isa = PBXBuildFile; fileRef = 18E943F42057C5710019FD04 /* JYNetWorking.m */; }; |
| | | 18E9F1841DC7308C007112E0 /* cloud.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 18E9F1831DC7308C007112E0 /* cloud.bundle */; }; |
| | | 18E9F18B1DC730BB007112E0 /* libMobileTracking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 18E9F1861DC730BB007112E0 /* libMobileTracking.a */; }; |
| | | 18E9F18C1DC730BB007112E0 /* sdkconfig.xml in Resources */ = {isa = PBXBuildFile; fileRef = 18E9F1891DC730BB007112E0 /* sdkconfig.xml */; }; |
| | |
| | | 18EF91DB1D8E42DA0078C8BD /* NJKWebViewProgress.m in Sources */ = {isa = PBXBuildFile; fileRef = 18EF91D81D8E42DA0078C8BD /* NJKWebViewProgress.m */; }; |
| | | 18EF91DC1D8E42DA0078C8BD /* NJKWebViewProgressView.m in Sources */ = {isa = PBXBuildFile; fileRef = 18EF91DA1D8E42DA0078C8BD /* NJKWebViewProgressView.m */; }; |
| | | 18EF91E31D8E47610078C8BD /* WEBViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18EF91E11D8E47610078C8BD /* WEBViewController.m */; }; |
| | | 18F151282062326400E61299 /* 414 *736.png in Resources */ = {isa = PBXBuildFile; fileRef = 18F151272062326400E61299 /* 414 *736.png */; }; |
| | | 18F1512A206233EA00E61299 /* 320 * 568.png in Resources */ = {isa = PBXBuildFile; fileRef = 18F15129206233E900E61299 /* 320 * 568.png */; }; |
| | | 18F1512C2062374400E61299 /* 375 * 667.png in Resources */ = {isa = PBXBuildFile; fileRef = 18F1512B2062374400E61299 /* 375 * 667.png */; }; |
| | | 18F2541F1DF0090900826AD0 /* FuLiSheViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18F2541D1DF0090900826AD0 /* FuLiSheViewController.m */; }; |
| | | 18F254201DF0090900826AD0 /* FuLiSheViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 18F2541E1DF0090900826AD0 /* FuLiSheViewController.xib */; }; |
| | | 18F5CA971E1C862D001F526F /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 18F5CA961E1C862D001F526F /* libc++.tbd */; }; |
| | |
| | | 18052EA01E208343005997FC /* Twitter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Twitter.framework; path = System/Library/Frameworks/Twitter.framework; sourceTree = SDKROOT; }; |
| | | 18052EA21E208379005997FC /* SafariServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SafariServices.framework; path = System/Library/Frameworks/SafariServices.framework; sourceTree = SDKROOT; }; |
| | | 18052ECA1E20D4F5005997FC /* yw_1222.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = yw_1222.jpg; path = ../yw_1222.jpg; sourceTree = "<group>"; }; |
| | | 180ACA121DF933C000969256 /* iphone6p.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = iphone6p.png; sourceTree = "<group>"; }; |
| | | 180ACA131DF933C000969256 /* iphone4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = iphone4.png; sourceTree = "<group>"; }; |
| | | 180ACA141DF933C000969256 /* iphone6.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = iphone6.png; sourceTree = "<group>"; }; |
| | | 180ACA151DF933C000969256 /* iphone5.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = iphone5.png; sourceTree = "<group>"; }; |
| | | 181D3A071E1DFD5300CDBDE9 /* XYRUITextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XYRUITextField.h; sourceTree = "<group>"; }; |
| | | 181D3A081E1DFD5300CDBDE9 /* XYRUITextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XYRUITextField.m; sourceTree = "<group>"; }; |
| | | 1823F4C71DACC91F00C114C3 /* forgetPasswordViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = forgetPasswordViewController.h; sourceTree = "<group>"; }; |
| | |
| | | 1884A6011E545D4900548480 /* PopoverViews.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PopoverViews.m; sourceTree = "<group>"; }; |
| | | 1884A6061E54630300548480 /* LGLAlertView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGLAlertView.h; sourceTree = "<group>"; }; |
| | | 1884A6071E54630300548480 /* LGLAlertView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGLAlertView.m; sourceTree = "<group>"; }; |
| | | 1896FB821F7360D300720355 /* GDTMobBannerView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GDTMobBannerView.h; sourceTree = "<group>"; }; |
| | | 1896FB831F7360D300720355 /* GDTMobInterstitial.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GDTMobInterstitial.h; sourceTree = "<group>"; }; |
| | | 1896FB841F7360D300720355 /* GDTNativeAd.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GDTNativeAd.h; sourceTree = "<group>"; }; |
| | | 1896FB851F7360D300720355 /* GDTNativeExpressAd.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GDTNativeExpressAd.h; sourceTree = "<group>"; }; |
| | | 1896FB861F7360D300720355 /* GDTNativeExpressAdView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GDTNativeExpressAdView.h; sourceTree = "<group>"; }; |
| | | 1896FB871F7360D300720355 /* GDTSplashAd.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GDTSplashAd.h; sourceTree = "<group>"; }; |
| | | 1896FB881F7360D300720355 /* GDTTrack.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GDTTrack.h; sourceTree = "<group>"; }; |
| | | 1896FB891F7360D300720355 /* libGDTMobSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libGDTMobSDK.a; sourceTree = "<group>"; }; |
| | | 189787811D9233E9006245B9 /* View.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = View.xib; sourceTree = "<group>"; }; |
| | | 189787831D925B5D006245B9 /* GoogleAdTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GoogleAdTableViewCell.h; sourceTree = "<group>"; }; |
| | | 189787841D925B5D006245B9 /* GoogleAdTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GoogleAdTableViewCell.m; sourceTree = "<group>"; }; |
| | | 189787851D925B5D006245B9 /* GoogleAdTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = GoogleAdTableViewCell.xib; sourceTree = "<group>"; }; |
| | | 189EFECA1EF1465D00C59CAB /* yw_1222.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = yw_1222.jpg; sourceTree = "<group>"; }; |
| | | 18A060462060EEE400BACA54 /* GDTTrack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GDTTrack.h; sourceTree = "<group>"; }; |
| | | 18A060472060EEE500BACA54 /* libGDTMobSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libGDTMobSDK.a; sourceTree = "<group>"; }; |
| | | 18A060482060EEE500BACA54 /* GDTNativeExpressAdView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GDTNativeExpressAdView.h; sourceTree = "<group>"; }; |
| | | 18A060492060EEE600BACA54 /* GDTMobBannerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GDTMobBannerView.h; sourceTree = "<group>"; }; |
| | | 18A0604A2060EEE600BACA54 /* GDTNativeAd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GDTNativeAd.h; sourceTree = "<group>"; }; |
| | | 18A0604B2060EEE600BACA54 /* GDTSplashAd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GDTSplashAd.h; sourceTree = "<group>"; }; |
| | | 18A0604C2060EEE700BACA54 /* GDTMobInterstitial.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GDTMobInterstitial.h; sourceTree = "<group>"; }; |
| | | 18A0604D2060EEE700BACA54 /* GDTNativeExpressAd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GDTNativeExpressAd.h; sourceTree = "<group>"; }; |
| | | 18A0604F2060F7EF00BACA54 /* 640x1136.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 640x1136.png; sourceTree = "<group>"; }; |
| | | 18ABF6DE1DDD9B4600C9257E /* Nethader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Nethader.h; sourceTree = "<group>"; }; |
| | | 18ABF6DF1DDD9B4600C9257E /* YTHNetdata.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YTHNetdata.h; sourceTree = "<group>"; }; |
| | | 18ABF6E01DDD9B4600C9257E /* YTHNetdata.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YTHNetdata.m; sourceTree = "<group>"; }; |
| | |
| | | 18C5F63B1E1B8B0A00537707 /* findTitleTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = findTitleTableViewCell.h; sourceTree = "<group>"; }; |
| | | 18C5F63C1E1B8B0A00537707 /* findTitleTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = findTitleTableViewCell.m; sourceTree = "<group>"; }; |
| | | 18C5F63D1E1B8B0A00537707 /* findTitleTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = findTitleTableViewCell.xib; sourceTree = "<group>"; }; |
| | | 18C7E86220609E1D000E019D /* 320-Ã-480.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "320-Ã-480.png"; sourceTree = "<group>"; }; |
| | | 18C7E86620609E1D000E019D /* 621-Ã-1104.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "621-Ã-1104.png"; sourceTree = "<group>"; }; |
| | | 18C95F521D94DE2A009CBF0F /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; }; |
| | | 18D94EA81ECD7B6E00B6FA54 /* newADCollectionViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = newADCollectionViewCell.h; sourceTree = "<group>"; }; |
| | | 18D94EA91ECD7B6E00B6FA54 /* newADCollectionViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = newADCollectionViewCell.m; sourceTree = "<group>"; }; |
| | | 18D94EAA1ECD7B6E00B6FA54 /* newADCollectionViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = newADCollectionViewCell.xib; sourceTree = "<group>"; }; |
| | | 18E943E42057656C0019FD04 /* recommendViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = recommendViewController.h; sourceTree = "<group>"; }; |
| | | 18E943E52057656C0019FD04 /* recommendViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = recommendViewController.m; sourceTree = "<group>"; }; |
| | | 18E943E7205766510019FD04 /* subregionViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = subregionViewController.h; sourceTree = "<group>"; }; |
| | | 18E943E8205766510019FD04 /* subregionViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = subregionViewController.m; sourceTree = "<group>"; }; |
| | | 18E943EA2057667D0019FD04 /* MineViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MineViewController.h; sourceTree = "<group>"; }; |
| | | 18E943EB2057667D0019FD04 /* MineViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MineViewController.m; sourceTree = "<group>"; }; |
| | | 18E943ED205767120019FD04 /* discoverViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = discoverViewController.h; sourceTree = "<group>"; }; |
| | | 18E943EE205767120019FD04 /* discoverViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = discoverViewController.m; sourceTree = "<group>"; }; |
| | | 18E943F0205774D50019FD04 /* BaseViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BaseViewController.h; sourceTree = "<group>"; }; |
| | | 18E943F1205774D50019FD04 /* BaseViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BaseViewController.m; sourceTree = "<group>"; }; |
| | | 18E943F32057C5710019FD04 /* JYNetWorking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JYNetWorking.h; sourceTree = "<group>"; }; |
| | | 18E943F42057C5710019FD04 /* JYNetWorking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JYNetWorking.m; sourceTree = "<group>"; }; |
| | | 18E9F1831DC7308C007112E0 /* cloud.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = cloud.bundle; sourceTree = "<group>"; }; |
| | | 18E9F1861DC730BB007112E0 /* libMobileTracking.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libMobileTracking.a; sourceTree = "<group>"; }; |
| | | 18E9F1871DC730BB007112E0 /* MobileTracking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobileTracking.h; sourceTree = "<group>"; }; |
| | |
| | | 18EF91DA1D8E42DA0078C8BD /* NJKWebViewProgressView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NJKWebViewProgressView.m; sourceTree = "<group>"; }; |
| | | 18EF91E01D8E47610078C8BD /* WEBViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WEBViewController.h; sourceTree = "<group>"; }; |
| | | 18EF91E11D8E47610078C8BD /* WEBViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WEBViewController.m; sourceTree = "<group>"; }; |
| | | 18F151272062326400E61299 /* 414 *736.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "414 *736.png"; sourceTree = "<group>"; }; |
| | | 18F15129206233E900E61299 /* 320 * 568.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "320 * 568.png"; sourceTree = "<group>"; }; |
| | | 18F1512B2062374400E61299 /* 375 * 667.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "375 * 667.png"; sourceTree = "<group>"; }; |
| | | 18F2541C1DF0090900826AD0 /* FuLiSheViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FuLiSheViewController.h; sourceTree = "<group>"; }; |
| | | 18F2541D1DF0090900826AD0 /* FuLiSheViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FuLiSheViewController.m; sourceTree = "<group>"; }; |
| | | 18F2541E1DF0090900826AD0 /* FuLiSheViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FuLiSheViewController.xib; sourceTree = "<group>"; }; |
| | |
| | | 7B8AC5241D5D824100450285 /* CoreVideo.framework in Frameworks */, |
| | | 7B91CCC31D7E718900DFB280 /* libXG-SDK.a in Frameworks */, |
| | | 7B8AC5201D5D821100450285 /* CoreImage.framework in Frameworks */, |
| | | 18A0604E2060EEE700BACA54 /* libGDTMobSDK.a in Frameworks */, |
| | | 7B8AC51E1D5D820000450285 /* CoreFoundation.framework in Frameworks */, |
| | | 7B8AC51C1D5D81EF00450285 /* CoreBluetooth.framework in Frameworks */, |
| | | 1896FB8A1F736A9200720355 /* libGDTMobSDK.a in Frameworks */, |
| | | 7B8AC51A1D5D817C00450285 /* CoreAudio.framework in Frameworks */, |
| | | 7B8AC5161D5D813B00450285 /* AddressBook.framework in Frameworks */, |
| | | 7B8AC5141D5D810A00450285 /* Accelerate.framework in Frameworks */, |
| | |
| | | 1896FB811F7360D300720355 /* GDT_iOS_SDK */ = { |
| | | isa = PBXGroup; |
| | | children = ( |
| | | 1896FB821F7360D300720355 /* GDTMobBannerView.h */, |
| | | 1896FB831F7360D300720355 /* GDTMobInterstitial.h */, |
| | | 1896FB841F7360D300720355 /* GDTNativeAd.h */, |
| | | 1896FB851F7360D300720355 /* GDTNativeExpressAd.h */, |
| | | 1896FB861F7360D300720355 /* GDTNativeExpressAdView.h */, |
| | | 1896FB871F7360D300720355 /* GDTSplashAd.h */, |
| | | 1896FB881F7360D300720355 /* GDTTrack.h */, |
| | | 1896FB891F7360D300720355 /* libGDTMobSDK.a */, |
| | | 18A060492060EEE600BACA54 /* GDTMobBannerView.h */, |
| | | 18A0604C2060EEE700BACA54 /* GDTMobInterstitial.h */, |
| | | 18A0604A2060EEE600BACA54 /* GDTNativeAd.h */, |
| | | 18A0604D2060EEE700BACA54 /* GDTNativeExpressAd.h */, |
| | | 18A060482060EEE500BACA54 /* GDTNativeExpressAdView.h */, |
| | | 18A0604B2060EEE600BACA54 /* GDTSplashAd.h */, |
| | | 18A060462060EEE400BACA54 /* GDTTrack.h */, |
| | | 18A060472060EEE500BACA54 /* libGDTMobSDK.a */, |
| | | ); |
| | | path = GDT_iOS_SDK; |
| | | sourceTree = "<group>"; |
| | |
| | | 18A8D14B1DC32CDB00A03FB7 /* Main(主è§å¾) */ = { |
| | | isa = PBXGroup; |
| | | children = ( |
| | | 18E943F0205774D50019FD04 /* BaseViewController.h */, |
| | | 18E943F1205774D50019FD04 /* BaseViewController.m */, |
| | | 1883223B1F75058500CCD0B4 /* RooterController.h */, |
| | | 1883223C1F75058500CCD0B4 /* RooterController.m */, |
| | | 7BB429001D4B463000AA2D11 /* MainViewController.h */, |
| | |
| | | 18A8D14C1DC32CFD00A03FB7 /* æ¨è */ = { |
| | | isa = PBXGroup; |
| | | children = ( |
| | | 18E943E42057656C0019FD04 /* recommendViewController.h */, |
| | | 18E943E52057656C0019FD04 /* recommendViewController.m */, |
| | | 7B32BD2D1D4F259300E96E75 /* recommendView.h */, |
| | | 7B32BD2E1D4F259300E96E75 /* recommendView.m */, |
| | | 7B0A1E1F1D4B1437000518FA /* cell */, |
| | |
| | | 18A8D14E1DC32D1E00A03FB7 /* ååº */ = { |
| | | isa = PBXGroup; |
| | | children = ( |
| | | 18E943E7205766510019FD04 /* subregionViewController.h */, |
| | | 18E943E8205766510019FD04 /* subregionViewController.m */, |
| | | 7B32BD301D4F26F500E96E75 /* subregionView.h */, |
| | | 7B32BD311D4F26F500E96E75 /* subregionView.m */, |
| | | 7B0A1E201D4B1449000518FA /* cell */, |
| | |
| | | 18A8D14F1DC32D2800A03FB7 /* åç° */ = { |
| | | isa = PBXGroup; |
| | | children = ( |
| | | 18E943ED205767120019FD04 /* discoverViewController.h */, |
| | | 18E943EE205767120019FD04 /* discoverViewController.m */, |
| | | 7B1FF0931D6708FD00E6C207 /* discoverView.h */, |
| | | 7B1FF0941D6708FD00E6C207 /* discoverView.m */, |
| | | 18F5CA9D1E1C8E79001F526F /* discoverGoodsDetailViewController.h */, |
| | |
| | | 18A8D1501DC32D3400A03FB7 /* å
³æ³¨ */ = { |
| | | isa = PBXGroup; |
| | | children = ( |
| | | 18E943EA2057667D0019FD04 /* MineViewController.h */, |
| | | 18E943EB2057667D0019FD04 /* MineViewController.m */, |
| | | 7B1FF0DB1D670B8800E6C207 /* attentionView.h */, |
| | | 7B1FF0DC1D670B8800E6C207 /* attentionView.m */, |
| | | 7B1FF0D51D670B7100E6C207 /* cell */, |
| | |
| | | 18F5CA9A1E1C8895001F526F /* findcommentTableViewCell.xib */, |
| | | ); |
| | | path = detailCell; |
| | | sourceTree = "<group>"; |
| | | }; |
| | | 18C7E86120609E1D000E019D /* å¯å¨å¾ */ = { |
| | | isa = PBXGroup; |
| | | children = ( |
| | | 18F1512B2062374400E61299 /* 375 * 667.png */, |
| | | 18F151272062326400E61299 /* 414 *736.png */, |
| | | 18A0604F2060F7EF00BACA54 /* 640x1136.png */, |
| | | 18C7E86220609E1D000E019D /* 320-Ã-480.png */, |
| | | 18F15129206233E900E61299 /* 320 * 568.png */, |
| | | 18C7E86620609E1D000E019D /* 621-Ã-1104.png */, |
| | | ); |
| | | path = "å¯å¨å¾"; |
| | | sourceTree = "<group>"; |
| | | }; |
| | | 18E9F1851DC730BB007112E0 /* MobileTracking */ = { |
| | |
| | | 183360291DC3335000391627 /* æ°æ® */, |
| | | 1833602A1DC3336400391627 /* çé¢ */, |
| | | 7B41E9A51D4A04AE00F05CE2 /* Main.storyboard */, |
| | | 18C7E86120609E1D000E019D /* å¯å¨å¾ */, |
| | | 187A745D1DF7B1C6001E856F /* titleImage2.png */, |
| | | 180ACA121DF933C000969256 /* iphone6p.png */, |
| | | 180ACA131DF933C000969256 /* iphone4.png */, |
| | | 180ACA141DF933C000969256 /* iphone6.png */, |
| | | 189EFECA1EF1465D00C59CAB /* yw_1222.jpg */, |
| | | 180ACA151DF933C000969256 /* iphone5.png */, |
| | | 7B62B0DE1D4B0F0D00BBC30D /* PrefixHeader.pch */, |
| | | 7B41E9A81D4A04AE00F05CE2 /* Assets.xcassets */, |
| | | 18C95F521D94DE2A009CBF0F /* GoogleService-Info.plist */, |
| | |
| | | 18ABF6E01DDD9B4600C9257E /* YTHNetdata.m */, |
| | | 18ABF6E11DDD9B4600C9257E /* YTHNetInterface.h */, |
| | | 18ABF6E21DDD9B4600C9257E /* YTHNetInterface.m */, |
| | | 18E943F32057C5710019FD04 /* JYNetWorking.h */, |
| | | 18E943F42057C5710019FD04 /* JYNetWorking.m */, |
| | | ); |
| | | name = "DataNet(æ¥å£ææ¡£)"; |
| | | sourceTree = "<group>"; |
| | |
| | | 7B41E9981D4A04AE00F05CE2 = { |
| | | CreatedOnToolsVersion = 7.3; |
| | | DevelopmentTeam = 98HSDT7AP4; |
| | | ProvisioningStyle = Automatic; |
| | | SystemCapabilities = { |
| | | com.apple.Push = { |
| | | enabled = 1; |
| | |
| | | 18C13D611EF2802900B49412 /* AlibabaAuthSDK.bundle in Resources */, |
| | | 18FC90F31D9142730041D298 /* googleADS.xib in Resources */, |
| | | 18B6BE731DADDB6E00DA4F63 /* signatureTableViewCell.xib in Resources */, |
| | | 18A060502060F7EF00BACA54 /* 640x1136.png in Resources */, |
| | | 18F1512C2062374400E61299 /* 375 * 667.png in Resources */, |
| | | 18BC12B71EDEAB4A001E2FB0 /* HotLiveCollectionViewCell.xib in Resources */, |
| | | 18B6BE6E1DADDB4700DA4F63 /* InfoTableViewCell.xib in Resources */, |
| | | 18F151282062326400E61299 /* 414 *736.png in Resources */, |
| | | 7B4220FA1D6D7DDE007345E6 /* OnlySpecialOne.xib in Resources */, |
| | | 18BC12A81EDEA7AD001E2FB0 /* HotLiveTableViewCell.xib in Resources */, |
| | | 7B9D31CD1D54481000EDED00 /* XYRDetailViewController.xib in Resources */, |
| | |
| | | 18E9F18C1DC730BB007112E0 /* sdkconfig.xml in Resources */, |
| | | 7B59CC141D5B16CC000B357F /* GroupfootSection.xib in Resources */, |
| | | 18F5CAA61E1CD25E001F526F /* allCommentsViewController.xib in Resources */, |
| | | 18C7E86C20609E1D000E019D /* 621-Ã-1104.png in Resources */, |
| | | 7BA7E5C91D6BD4CB00D347D0 /* SubregionDetailViewController.xib in Resources */, |
| | | D45473521DBD9D0400EC002B /* PlayOptions.xib in Resources */, |
| | | 7B91CCC41D7E718900DFB280 /* ReleaseNotes.txt in Resources */, |
| | | 7B1FF0DA1D670B7E00E6C207 /* AttentionCell.xib in Resources */, |
| | | 180ACA191DF933C000969256 /* iphone5.png in Resources */, |
| | | 7BFBC66E1D6705280058FFEB /* ComentCell.xib in Resources */, |
| | | 18BC12BC1EDEAB68001E2FB0 /* AllLiveTypeCollectionViewCell.xib in Resources */, |
| | | 7B1FF0AF1D67094500E6C207 /* CellHead.xib in Resources */, |
| | |
| | | 18B6BE691DADDB2C00DA4F63 /* IconTableViewCell.xib in Resources */, |
| | | 18C5F6411E1B8B0A00537707 /* findTitleTableViewCell.xib in Resources */, |
| | | 7BB428FB1D4B43F400AA2D11 /* LeftViewController.xib in Resources */, |
| | | 180ACA181DF933C000969256 /* iphone6.png in Resources */, |
| | | 180ACA161DF933C000969256 /* iphone6p.png in Resources */, |
| | | 7B32BD3E1D4F410F00E96E75 /* recommentCollectionViewCell.xib in Resources */, |
| | | 180ACA171DF933C000969256 /* iphone4.png in Resources */, |
| | | 7BFBC65F1D6704E20058FFEB /* NoteCell.xib in Resources */, |
| | | 189787871D925B5D006245B9 /* GoogleAdTableViewCell.xib in Resources */, |
| | | 18E9F1841DC7308C007112E0 /* cloud.bundle in Resources */, |
| | |
| | | 184D348A1E1F3728007B0131 /* ConfirmTheGoodsViewController.xib in Resources */, |
| | | 18F5CA9C1E1C8895001F526F /* findcommentTableViewCell.xib in Resources */, |
| | | 183080DA1E29CD2F0017DDD7 /* childCollectionViewCell.xib in Resources */, |
| | | 18F1512A206233EA00E61299 /* 320 * 568.png in Resources */, |
| | | 7B41E9A91D4A04AE00F05CE2 /* Assets.xcassets in Resources */, |
| | | 7B4220FE1D6D7DDE007345E6 /* OnlySpecialTwo.xib in Resources */, |
| | | D45473551DBD9FC700EC002B /* ç¼å².gif in Resources */, |
| | | 7B9D31C41D5421E000EDED00 /* SubregionViewCollectionViewCell.xib in Resources */, |
| | | 18C7E86820609E1D000E019D /* 320-Ã-480.png in Resources */, |
| | | 189787821D9233E9006245B9 /* View.xib in Resources */, |
| | | 7B41E9A71D4A04AE00F05CE2 /* Main.storyboard in Resources */, |
| | | 18F254201DF0090900826AD0 /* FuLiSheViewController.xib in Resources */, |
| | |
| | | 183080E01E29D0E60017DDD7 /* XYRChildTableViewCell.m in Sources */, |
| | | 7B41E9A11D4A04AE00F05CE2 /* AppDelegate.m in Sources */, |
| | | 18F5CAA51E1CD25E001F526F /* allCommentsViewController.m in Sources */, |
| | | 18E943EC2057667D0019FD04 /* MineViewController.m in Sources */, |
| | | 7BC24A601D50754600F6D2D9 /* FooterCollectionReusableView.m in Sources */, |
| | | 7B4220FD1D6D7DDE007345E6 /* OnlySpecialTwo.m in Sources */, |
| | | 7B4220ED1D6D7D34007345E6 /* AllSpecialCell.m in Sources */, |
| | |
| | | 7BFBC6621D6704EF0058FFEB /* LookNoteController.m in Sources */, |
| | | 18B1C25C1DB5B26B00AB709B /* README.md in Sources */, |
| | | 18B1C2681DB5B26B00AB709B /* SlideMenuController.m in Sources */, |
| | | 18E943E9205766510019FD04 /* subregionViewController.m in Sources */, |
| | | 7B0D3B2E1D59BCAB003E74A8 /* CMuneItem.m in Sources */, |
| | | 7B32BD2F1D4F259300E96E75 /* recommendView.m in Sources */, |
| | | 18E943F52057C5720019FD04 /* JYNetWorking.m in Sources */, |
| | | 181D3A091E1DFD5300CDBDE9 /* XYRUITextField.m in Sources */, |
| | | 18F5CAA01E1C8E79001F526F /* discoverGoodsDetailViewController.m in Sources */, |
| | | 7B59CBFF1D5B15A3000B357F /* GroupCollectionViewCell.m in Sources */, |
| | |
| | | 18D94EAB1ECD7B6E00B6FA54 /* newADCollectionViewCell.m in Sources */, |
| | | 7BFBC66D1D6705280058FFEB /* ComentCell.m in Sources */, |
| | | 7B1FF0D01D670AA900E6C207 /* TWScell.m in Sources */, |
| | | 18E943F2205774D50019FD04 /* BaseViewController.m in Sources */, |
| | | 1884A6081E54630300548480 /* LGLAlertView.m in Sources */, |
| | | 7BF526591D7408A0004B9DBB /* CollectionController.m in Sources */, |
| | | 18C5F6401E1B8B0A00537707 /* findTitleTableViewCell.m in Sources */, |
| | |
| | | 187A74581DF79DDF001E856F /* UILabel+LXAdd.m in Sources */, |
| | | 7BCE16771D644EB8004EAD5A /* SearchCollectionViewCell.m in Sources */, |
| | | 7B8ADA461D589448007A3FFD /* XYRVideoDetailModel.m in Sources */, |
| | | 18E943EF205767120019FD04 /* discoverViewController.m in Sources */, |
| | | 18E943E62057656C0019FD04 /* recommendViewController.m in Sources */, |
| | | 7BB429141D4B5FC900AA2D11 /* UIImage+YTH.m in Sources */, |
| | | 7B1FF0DD1D670B8800E6C207 /* attentionView.m in Sources */, |
| | | 1884A6031E545D4900548480 /* PopoverViewCell.m in Sources */, |
| | |
| | | CODE_SIGN_ENTITLEMENTS = BuWanVideo2.0/BuWanVideo2.0.entitlements; |
| | | CODE_SIGN_IDENTITY = "iPhone Developer"; |
| | | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
| | | CODE_SIGN_STYLE = Automatic; |
| | | DEVELOPMENT_TEAM = 98HSDT7AP4; |
| | | ENABLE_BITCODE = NO; |
| | | FRAMEWORK_SEARCH_PATHS = ( |
| | |
| | | PRODUCT_BUNDLE_IDENTIFIER = com.yeshi.buwanshequ.ios; |
| | | PRODUCT_NAME = "$(TARGET_NAME)"; |
| | | PROVISIONING_PROFILE = ""; |
| | | PROVISIONING_PROFILE_SPECIFIER = ""; |
| | | TARGETED_DEVICE_FAMILY = "1,2"; |
| | | }; |
| | | name = Debug; |
| | |
| | | CODE_SIGN_ENTITLEMENTS = BuWanVideo2.0/BuWanVideo2.0.entitlements; |
| | | CODE_SIGN_IDENTITY = "iPhone Developer"; |
| | | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
| | | CODE_SIGN_STYLE = Automatic; |
| | | DEVELOPMENT_TEAM = 98HSDT7AP4; |
| | | ENABLE_BITCODE = NO; |
| | | FRAMEWORK_SEARCH_PATHS = ( |
| | |
| | | PRODUCT_BUNDLE_IDENTIFIER = com.yeshi.buwanshequ.ios; |
| | | PRODUCT_NAME = "$(TARGET_NAME)"; |
| | | PROVISIONING_PROFILE = ""; |
| | | PROVISIONING_PROFILE_SPECIFIER = ""; |
| | | TARGETED_DEVICE_FAMILY = "1,2"; |
| | | }; |
| | | name = Release; |
| | |
| | | <dict> |
| | | <key>SchemeUserState</key> |
| | | <dict> |
| | | <key>BuWanVideo2.0.xcscheme</key> |
| | | <key>BuWanVideo2.0.xcscheme_^#shared#^_</key> |
| | | <dict> |
| | | <key>orderHint</key> |
| | | <integer>0</integer> |
| | |
| | | <BreakpointProxy |
| | | BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint"> |
| | | <BreakpointContent |
| | | shouldBeEnabled = "No" |
| | | shouldBeEnabled = "Yes" |
| | | ignoreCount = "0" |
| | | continueAfterRunningActions = "No" |
| | | continueAfterRunningActions = "Yes" |
| | | scope = "0" |
| | | stopOnStyle = "0"> |
| | | </BreakpointContent> |
| | |
| | | <BreakpointProxy |
| | | BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> |
| | | <BreakpointContent |
| | | shouldBeEnabled = "No" |
| | | shouldBeEnabled = "Yes" |
| | | ignoreCount = "0" |
| | | continueAfterRunningActions = "No" |
| | | filePath = "BuWanVideo2.0/YTHNetInterface.m" |
| | | timestampString = "529833973.416737" |
| | | filePath = "BuWanVideo2.0/SubregionDetailViewController.m" |
| | | timestampString = "543471313.467868" |
| | | startingColumnNumber = "9223372036854775807" |
| | | endingColumnNumber = "9223372036854775807" |
| | | startingLineNumber = "1235" |
| | | endingLineNumber = "1235" |
| | | landmarkName = "-getHotLiveWithUid:WithSystem:WithBlock:" |
| | | startingLineNumber = "670" |
| | | endingLineNumber = "670" |
| | | landmarkName = "-tableView:cellForRowAtIndexPath:" |
| | | landmarkType = "7"> |
| | | </BreakpointContent> |
| | | </BreakpointProxy> |
| | | <BreakpointProxy |
| | | BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> |
| | | <BreakpointContent |
| | | shouldBeEnabled = "No" |
| | | shouldBeEnabled = "Yes" |
| | | ignoreCount = "0" |
| | | continueAfterRunningActions = "No" |
| | | filePath = "BuWanVideo2.0/XYRDetailViewController.m" |
| | | timestampString = "528026610.531027" |
| | | filePath = "BuWanVideo2.0/SubregionDetailViewController.m" |
| | | timestampString = "543471313.468012" |
| | | startingColumnNumber = "9223372036854775807" |
| | | endingColumnNumber = "9223372036854775807" |
| | | startingLineNumber = "1912" |
| | | endingLineNumber = "1912" |
| | | landmarkName = "-collectionView:viewForSupplementaryElementOfKind:atIndexPath:" |
| | | startingLineNumber = "666" |
| | | endingLineNumber = "666" |
| | | landmarkName = "-tableView:cellForRowAtIndexPath:" |
| | | landmarkType = "7"> |
| | | </BreakpointContent> |
| | | </BreakpointProxy> |
| | |
| | | #import <AlibcTradeSDK/AlibcTradeSDK.h> |
| | | #import "RooterController.h" |
| | | |
| | | #import "recommendViewController.h" |
| | | #import "subregionViewController.h" |
| | | #import "MineViewController.h" |
| | | #import "discoverViewController.h" |
| | | #import "LeftViewController.h" |
| | | #define LECUsedBundleID @"com.yeshi.buwanshequ.ios" |
| | | |
| | | #define TICK NSDate *startTime = [NSDate date] |
| | | #define TOCK NSLog(@"Time: %f", -[startTime timeIntervalSinceNow]) |
| | | @import Firebase; |
| | | |
| | | @interface AppDelegate ()<GDTSplashAdDelegate> |
| | | |
| | | @property (strong,nonatomic) GDTSplashAd *splash; |
| | | |
| | | |
| | | @property (strong,nonatomic) UIView *bottomView; |
| | | |
| | |
| | | @implementation AppDelegate |
| | | |
| | | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { |
| | | TICK; |
| | | //æ¸
ç©ºè§æ |
| | | [UIApplication sharedApplication].applicationIconBadgeNumber=0; |
| | | //è®¾ç½®ç¶ææ çåä½é¢è² |
| | | [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; |
| | | //æ·»å ç½ç»çæµ |
| | | [self NetworkMonitoring]; |
| | | |
| | | // dispatch_queue_t queue = dispatch_queue_create("queue", NULL); |
| | | // dispatch_async(queue, ^{ |
| | | // //éæåç |
| | | // [self setUmeng]; |
| | | // |
| | | // }); |
| | | // dispatch_queue_t queue1 = dispatch_queue_create("myQueue", NULL); |
| | | // dispatch_async(queue1, ^{ |
| | | // |
| | | // //信鸽æ¨é |
| | | // [XGPush startApp:2200218652 appKey:@"I17UVY2C2S9Y"]; |
| | | // [XGPush handleLaunching:launchOptions]; |
| | | // |
| | | // }); |
| | | // dispatch_queue_t queue2 = dispatch_queue_create("queue2", NULL); |
| | | // dispatch_async(queue2, ^{ |
| | | // //é¿éç¾å· |
| | | // [self setAliTrade]; |
| | | // //设置æç¤ºæ¡çæ ·å¼ |
| | | // [SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom]; |
| | | // [SVProgressHUD setMinimumDismissTimeInterval:3.0]; |
| | | // }); |
| | | //éæåç |
| | | [self setUmeng]; |
| | | //é¿éç¾å· |
| | | [self setAliTrade]; |
| | | [MobClick setLogEnabled:YES]; |
| | | |
| | | //信鸽æ¨é |
| | | [XGPush startApp:2200218652 appKey:@"I17UVY2C2S9Y"]; |
| | | [XGPush handleLaunching:launchOptions]; |
| | | //é¿éç¾å· |
| | | [self setAliTrade]; |
| | | //设置æç¤ºæ¡çæ ·å¼ |
| | | [SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom]; |
| | | [SVProgressHUD setMinimumDismissTimeInterval:3.0]; |
| | | //è°·æå¹¿åçåå§å |
| | | [FIRApp configure]; |
| | | [GADMobileAds configureWithApplicationID:@"ca-app-pub-1096760388894580~4971610958"]; |
| | | |
| | | if(iOS8){ |
| | | [self registerPushForIOS8]; |
| | | }else{ |
| | | [self registerPush]; |
| | | } |
| | | |
| | | //å¤æç¨æ·æ¯å¦å·²ç»è·å¾Uid |
| | | if ([[NSUserDefaults standardUserDefaults] objectForKey:@"uid"]!=nil) { |
| | | //为Uidè¿è¡ä¸ä¸ªèµå¼,é常éè¦ |
| | |
| | | //è·åUid |
| | | [self getUid]; |
| | | } |
| | | //设置æç¤ºæ¡çæ ·å¼ |
| | | [SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom]; |
| | | [SVProgressHUD setMinimumDismissTimeInterval:3.0]; |
| | | |
| | | TOCK; |
| | | return YES; |
| | | } |
| | | |
| | |
| | | -(void)loadAd{ |
| | | _splash=[[GDTSplashAd alloc] initWithAppkey:GDTADkey placementId:GDTFullADid]; |
| | | _splash.delegate=self;//设置代ç |
| | | |
| | | //æ ¹æ®iPhone设å¤ä¸å设置ä¸åçèæ¯å¾ |
| | | float width = [UIScreen mainScreen].bounds.size.width; |
| | | float height = [UIScreen mainScreen].bounds.size.height; |
| | | if (width == 320.0f && height<=480.0f) { |
| | | // iphone4 iphone4s ä¸çdefaultå¾ç |
| | | _splash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"iphone4"]]; |
| | | _splash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"320-Ã-480"]]; |
| | | }else if (width ==320.0f && height==568.0f) { |
| | | // iphone5 ä¸çdefaultå¾ç |
| | | _splash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"iphone5"]]; |
| | | _splash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"320 * 568"]]; |
| | | }else if (width ==375.0f) { |
| | | // iphone6 ä¸çdefaultå¾ç |
| | | _splash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"iphone6"]]; |
| | | _splash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"375 * 667"]]; |
| | | }else{ |
| | | // iphone6 plus ä¸çdefaultå¾ç |
| | | _splash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"iphone6p"]]; |
| | | _splash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"414 *736"]]; |
| | | } |
| | | _splash.fetchDelay=3;//å¼å±æåçæ¶é´ï¼è¶
æ¶åæ¾å¼å±ç¤º |
| | | _splash.fetchDelay=5;//å¼å±æåçæ¶é´ï¼è¶
æ¶åæ¾å¼å±ç¤º |
| | | [_splash loadAdAndShowInWindow:self.window];//æèµ·å¹¶å±ç¤ºå
¨å±å¹¿å |
| | | // UIView * bottomView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, width, 100)]; |
| | | // UIImageView *imageview = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"mylogo"]]; |
| | | // [bottomView addSubview:imageview]; |
| | | // imageview.center = bottomView.center; |
| | | // bottomView.backgroundColor = [UIColor whiteColor]; |
| | | // UIView *loadView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, width, 120)]; |
| | | // loadView.backgroundColor = [UIColor orangeColor]; |
| | | // [_splash loadAdAndShowInWindow:self.window withBottomView:bottomView]; |
| | | |
| | | } |
| | | |
| | | |
| | | #pragma mark 信鸽æ¨é |
| | | - (void)registerPush{ |
| | | [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]]; |
| | |
| | | |
| | | -(void)loadMainView{ |
| | | //é¦é¡µè§å¾ |
| | | MainViewController *MainVC=[[MainViewController alloc] init]; |
| | | RooterController *NVC=[[RooterController alloc] initWithRootViewController:MainVC]; |
| | | |
| | | [[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault]; |
| | | [[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]]; |
| | | [NVC.navigationBar setBackgroundColor:kGlobalMainColor]; |
| | | |
| | | //å建ä¸ä¸ªé«20çåç¶ææ |
| | | UIView *statusBarView = [[UIView alloc] initWithFrame:CGRectMake(0, -20, KScreenW, 20)]; |
| | | //设置é¢è² |
| | | statusBarView.backgroundColor=kGlobalMainColor; |
| | | // æ·»å å° navigationBar ä¸ |
| | | [NVC.navigationBar addSubview:statusBarView]; |
| | | |
| | | // MainViewController *MainVC=[[MainViewController alloc] init]; |
| | | // RooterController *NVC=[[RooterController alloc] initWithRootViewController:MainVC]; |
| | | // |
| | | // æ·»å å° navigationBar ä¸ |
| | | //ä¾§æ»æ è§å¾ |
| | | LeftViewController *leftMenuViewController=[[LeftViewController alloc] init]; |
| | | |
| | | SlideMenuController *slideMenuController = [[SlideMenuController alloc] initWithMainViewController:NVC leftMenuViewController:leftMenuViewController rightMenuViewController:nil]; |
| | | |
| | | slideMenuController.option.leftViewWitdth = KScreenW*3/4; |
| | | slideMenuController.option.simultaneousGestureRecognizers=NO; |
| | | |
| | | // LeftViewController *leftMenuViewController=[[LeftViewController alloc] init]; |
| | | // |
| | | // SlideMenuController *slideMenuController = [[SlideMenuController alloc] initWithMainViewController:NVC leftMenuViewController:leftMenuViewController rightMenuViewController:nil]; |
| | | // |
| | | // slideMenuController.option.leftViewWitdth = KScreenW*3/4; |
| | | // slideMenuController.option.simultaneousGestureRecognizers=NO; |
| | | |
| | | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
| | | self.window.backgroundColor=[UIColor whiteColor]; |
| | | self.window.rootViewController = slideMenuController; |
| | | [self.window makeKeyAndVisible]; |
| | | recommendViewController *recommendVC = [[recommendViewController alloc]init]; |
| | | UINavigationController *nrecommendVC = [[UINavigationController alloc]initWithRootViewController:recommendVC]; |
| | | |
| | | subregionViewController *subVC = [[subregionViewController alloc]init]; |
| | | UINavigationController *nsubVC = [[UINavigationController alloc]initWithRootViewController:subVC]; |
| | | |
| | | discoverViewController *disVC = [[discoverViewController alloc]init]; |
| | | UINavigationController *ndisVC = [[UINavigationController alloc]initWithRootViewController:disVC]; |
| | | |
| | | LeftViewController *mineVC = [[LeftViewController alloc]init]; |
| | | UINavigationController *nmineVC = [[UINavigationController alloc]initWithRootViewController:mineVC]; |
| | | |
| | | UITabBarController *tabBarController = [[UITabBarController alloc]init]; |
| | | tabBarController.viewControllers = @[nrecommendVC,nsubVC,ndisVC,nmineVC]; |
| | | tabBarController.tabBar.tintColor = YTHColor(248, 89, 69); |
| | | |
| | | NSMutableDictionary *attr3=[NSMutableDictionary dictionary]; |
| | | attr3[NSFontAttributeName]=[UIFont systemFontOfSize:10]; |
| | | [[UITabBarItem appearance]setTitleTextAttributes:attr3 forState:UIControlStateNormal]; |
| | | |
| | | self.window.rootViewController = tabBarController; |
| | | //æ·»å å¼å±å¹¿å |
| | | [self loadAd]; |
| | | NSLog(@""); |
| | | |
| | | } |
| | | |
| | | #pragma mark åçéæ |
| | |
| | | { |
| | | "size" : "20x20", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon-Notification@2x.png", |
| | | "filename" : "徿 -40.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "20x20", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon-Notification@3x.png", |
| | | "filename" : "徿 -100ç坿¬-1.png", |
| | | "scale" : "3x" |
| | | }, |
| | | { |
| | | "size" : "29x29", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon-Small.png", |
| | | "filename" : "徿 -29.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "size" : "29x29", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon-Small@2x.png", |
| | | "filename" : "徿 -58.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "29x29", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon-Small@3x.png", |
| | | "filename" : "徿 -87.png", |
| | | "scale" : "3x" |
| | | }, |
| | | { |
| | | "size" : "40x40", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon-Small-40@2x.png", |
| | | "filename" : "徿 -80.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "40x40", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon-Small-40@3x.png", |
| | | "filename" : "徿 -120.png", |
| | | "scale" : "3x" |
| | | }, |
| | | { |
| | | "size" : "57x57", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon.png", |
| | | "filename" : "徿 -57.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "size" : "57x57", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon@2x.png", |
| | | "filename" : "徿 -114.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "60x60", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon-60@2x.png", |
| | | "filename" : "徿 -121.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "60x60", |
| | | "idiom" : "iphone", |
| | | "filename" : "Icon-60@3x.png", |
| | | "filename" : "徿 -180.png", |
| | | "scale" : "3x" |
| | | }, |
| | | { |
| | | "size" : "20x20", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-Notification.png", |
| | | "filename" : "徿 -100ç坿¬-2.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "size" : "20x20", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-Notification@2x-1.png", |
| | | "filename" : "徿 -41.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "29x29", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-Small-1.png", |
| | | "filename" : "徿 -30.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "size" : "29x29", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-Small@2x-1.png", |
| | | "filename" : "徿 -59.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "40x40", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-Small-40.png", |
| | | "filename" : "徿 -42.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "size" : "40x40", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-Small-40@2x-1.png", |
| | | "filename" : "徿 -81.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "50x50", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-Small-50.png", |
| | | "filename" : "徿 -50.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "size" : "50x50", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-Small-50@2x.png", |
| | | "filename" : "徿 -100.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "72x72", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-72.png", |
| | | "filename" : "徿 -72.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "size" : "72x72", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-72@2x.png", |
| | | "filename" : "徿 -144.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "76x76", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-76.png", |
| | | "filename" : "徿 -76.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "size" : "76x76", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-76@2x.png", |
| | | "filename" : "徿 -152.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "83.5x83.5", |
| | | "idiom" : "ipad", |
| | | "filename" : "Icon-83.5@2x.png", |
| | | "filename" : "徿 -100ç坿¬.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "size" : "1024x1024", |
| | | "idiom" : "ios-marketing", |
| | | "filename" : "1024.png", |
| | | "filename" : "徿 -1024.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "iphone", |
| | | "extent" : "full-screen", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "iphone", |
| | | "extent" : "full-screen", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "iphone", |
| | | "extent" : "full-screen", |
| | | "subtype" : "retina4", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "to-status-bar", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "landscape", |
| | | "idiom" : "ipad", |
| | | "extent" : "to-status-bar", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "landscape", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "to-status-bar", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "landscape", |
| | | "idiom" : "ipad", |
| | | "extent" : "to-status-bar", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "landscape", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "extent" : "full-screen", |
| | | "idiom" : "iphone", |
| | | "subtype" : "736h", |
| | | "filename" : "1242-2208.png", |
| | | "filename" : "1242x2208.png", |
| | | "minimum-system-version" : "8.0", |
| | | "orientation" : "portrait", |
| | | "scale" : "3x" |
| | |
| | | "extent" : "full-screen", |
| | | "idiom" : "iphone", |
| | | "subtype" : "667h", |
| | | "filename" : "750-1334.png", |
| | | "filename" : "750x1334.png", |
| | | "minimum-system-version" : "8.0", |
| | | "orientation" : "portrait", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "minimum-system-version" : "8.0", |
| | | "subtype" : "1366h", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "iphone", |
| | | "filename" : "640-960.png", |
| | | "filename" : "640x960.png", |
| | | "extent" : "full-screen", |
| | | "minimum-system-version" : "7.0", |
| | | "scale" : "2x" |
| | |
| | | "extent" : "full-screen", |
| | | "idiom" : "iphone", |
| | | "subtype" : "retina4", |
| | | "filename" : "640-1136.png", |
| | | "filename" : "640x1136.png", |
| | | "minimum-system-version" : "7.0", |
| | | "orientation" : "portrait", |
| | | "scale" : "2x" |
| | |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "filename" : "768-1024.png", |
| | | "filename" : "768x1024.png", |
| | | "extent" : "full-screen", |
| | | "minimum-system-version" : "7.0", |
| | | "scale" : "1x" |
| | |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "filename" : "1536-2048.png", |
| | | "filename" : "1536x2048.png", |
| | | "extent" : "full-screen", |
| | | "minimum-system-version" : "7.0", |
| | | "scale" : "2x" |
| | |
| | | "extent" : "full-screen", |
| | | "minimum-system-version" : "7.0", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "iphone", |
| | | "extent" : "full-screen", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "iphone", |
| | | "extent" : "full-screen", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "iphone", |
| | | "extent" : "full-screen", |
| | | "subtype" : "retina4", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "to-status-bar", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "landscape", |
| | | "idiom" : "ipad", |
| | | "extent" : "to-status-bar", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "landscape", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "to-status-bar", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "landscape", |
| | | "idiom" : "ipad", |
| | | "extent" : "to-status-bar", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "landscape", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "orientation" : "portrait", |
| | | "idiom" : "ipad", |
| | | "extent" : "full-screen", |
| | | "minimum-system-version" : "8.0", |
| | | "subtype" : "1366h", |
| | | "scale" : "2x" |
| | | } |
| | | ], |
| | | "info" : { |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "Camera-æ·è´.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "Camera.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "Desktop-æ·è´.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "Desktop.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "Home-æ·è´.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "Home.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "Navigation-æ·è´.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "Navigation.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "User-æ·è´.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "User.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "copyright@2016-2019-yingshidaquan.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "mylogo.png", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "主æ.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "ä¹è.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "ä½è².png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "卿¼«.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "头æ¡.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "娱ä¹.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "æç´¢.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "æ¤å-7-æ·è´-2.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "游æ.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "ç¬å®¶.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "çæ´».png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "çµå½±.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "çµè§å§.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "ç§æ.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "ç»-1.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "综èº.png", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
New file |
| | |
| | | { |
| | | "images" : [ |
| | | { |
| | | "idiom" : "universal", |
| | | "filename" : "å è½½ä¸.jpg", |
| | | "scale" : "1x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "2x" |
| | | }, |
| | | { |
| | | "idiom" : "universal", |
| | | "scale" : "3x" |
| | | } |
| | | ], |
| | | "info" : { |
| | | "version" : 1, |
| | | "author" : "xcode" |
| | | } |
| | | } |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM"> |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> |
| | | <device id="retina4_7" orientation="portrait"> |
| | | <adaptation id="fullscreen"/> |
| | | </device> |
| | | <dependencies> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/> |
| | | <deployment identifier="iOS"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> |
| | | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| | | </dependencies> |
| | | <scenes> |
| | | <!--View Controller--> |
| | |
| | | <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/> |
| | | </layoutGuides> |
| | | <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> |
| | | <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> |
| | | <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> |
| | | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
| | | <animations/> |
| | | <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> |
| | | <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | </view> |
| | | </viewController> |
| | | <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> |
New file |
| | |
| | | // |
| | | // BaseViewController.h |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import <UIKit/UIKit.h> |
| | | |
| | | @interface BaseViewController : UIViewController |
| | | |
| | | @end |
New file |
| | |
| | | // |
| | | // BaseViewController.m |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import "BaseViewController.h" |
| | | #import "LookNoteController.h" |
| | | #import "searchViewController.h" |
| | | @interface BaseViewController () |
| | | @property (nonatomic , strong) NSMutableArray *dataHot;//çé¨æç´¢ |
| | | @property (nonatomic , strong) UITextField *searchText;//æç´¢æ¡ |
| | | |
| | | @end |
| | | |
| | | @implementation BaseViewController |
| | | |
| | | - (void)viewDidLoad { |
| | | [super viewDidLoad]; |
| | | self.dataHot = @[].mutableCopy; |
| | | [self getHotSearch]; |
| | | [self loadNavigationbar]; |
| | | } |
| | | |
| | | -(void)loadNavigationbar{ |
| | | //廿titlie |
| | | UIView *tview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0.01, 0.01)]; |
| | | self.navigationItem.titleView = tview; |
| | | |
| | | [[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault]; |
| | | [[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]]; |
| | | // å建ä¸ä¸ªé«20çåç¶ææ |
| | | UIView *statusBarView = [[UIView alloc] initWithFrame:CGRectMake(0, -20, KScreenW, 20)]; |
| | | // 设置é¢è² |
| | | statusBarView.backgroundColor=kGlobalMainColor; |
| | | [self.navigationController.navigationBar setBackgroundColor:kGlobalMainColor]; |
| | | [self.navigationController.navigationBar addSubview:statusBarView]; |
| | | //æç´¢ |
| | | UIView *seachView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KScreenW / 5 * 4, 30)]; |
| | | self.searchText = [[UITextField alloc]initWithFrame:CGRectMake(0, 0,seachView.frame.size.width, seachView.frame.size.height)]; |
| | | self.searchText.backgroundColor = [UIColor colorWithWhite:0.7 alpha:0.2]; |
| | | self.searchText.layer.cornerRadius = self.searchText.frame.size.height / 2; |
| | | |
| | | self.searchText.textColor = [UIColor whiteColor]; |
| | | self.searchText.font = [UIFont systemFontOfSize:14]; |
| | | UIView *leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 45, 25)]; |
| | | UIImageView *imageview = [[UIImageView alloc]initWithFrame:CGRectMake(10, 3, 19, 19)]; |
| | | imageview.image = [UIImage imageNamed:@"æç´¢"]; |
| | | [leftView addSubview:imageview]; |
| | | self.searchText.leftView = leftView; |
| | | self.searchText.leftViewMode = UITextFieldViewModeAlways; |
| | | UIButton *textButton = [UIButton buttonWithType:UIButtonTypeCustom]; |
| | | textButton.frame = CGRectMake(0, 0,seachView.frame.size.width, seachView.frame.size.height); |
| | | [textButton addTarget:self action:@selector(JumpToSearchView) forControlEvents:UIControlEventTouchUpInside]; |
| | | [seachView addSubview:self.searchText]; |
| | | |
| | | [seachView addSubview:textButton]; |
| | | UIBarButtonItem *searchItem = [[UIBarButtonItem alloc] initWithCustomView:seachView]; |
| | | |
| | | //è§çè®°å½ |
| | | UIButton *recordBtn=[[UIButton alloc] initWithFrame:CGRectMake(0, 0, 25, 25)]; |
| | | [recordBtn setImage:[UIImage imageNamed:@"åå²è®°å½"] forState:UIControlStateNormal]; |
| | | [recordBtn addTarget:self action:@selector(JumpToRecordView) forControlEvents:UIControlEventTouchUpInside]; |
| | | UIBarButtonItem *recordBarItem=[[UIBarButtonItem alloc] initWithCustomView:recordBtn]; |
| | | // //ä¸è½½ |
| | | // UIButton *downLoadBtn=[[UIButton alloc] initWithFrame:CGRectMake(0, 0, 25, 25)]; |
| | | // downLoadBtn.imageEdgeInsets = UIEdgeInsetsMake(0, 4, 0, 4); |
| | | // [downLoadBtn setImage:[UIImage imageNamed:@"ç¼å"] forState:UIControlStateNormal]; |
| | | // [downLoadBtn addTarget:self action:@selector(JumpToDownloadView) forControlEvents:UIControlEventTouchUpInside]; |
| | | // UIBarButtonItem *downLoadBarItem=[[UIBarButtonItem alloc] initWithCustomView:downLoadBtn]; |
| | | //æç´¢ |
| | | // UIButton *SearchBtn=[[UIButton alloc] initWithFrame:CGRectMake(0, 0, 25, 25)]; |
| | | // [SearchBtn setImage:[UIImage imageNamed:@"æç´¢"] forState:UIControlStateNormal]; |
| | | // [SearchBtn addTarget:self action:@selector(JumpToSearchView) forControlEvents:UIControlEventTouchUpInside]; |
| | | // UIBarButtonItem *SearchBarItem=[[UIBarButtonItem alloc] initWithCustomView:SearchBtn]; |
| | | //空ç½é´è· |
| | | UILabel *WhiteLabel=[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 8, 10)]; |
| | | WhiteLabel.backgroundColor=[UIColor clearColor]; |
| | | UIBarButtonItem *WhiteBarItem=[[UIBarButtonItem alloc] initWithCustomView:WhiteLabel]; |
| | | |
| | | UILabel *WhiteLabel1=[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 20, 10)]; |
| | | WhiteLabel1.backgroundColor=[UIColor clearColor]; |
| | | UIBarButtonItem *WhiteBarItem1=[[UIBarButtonItem alloc] initWithCustomView:WhiteLabel1]; |
| | | |
| | | //æ·»å è§çè®°å½/ä¸è½½/æç´¢ å°å¯¼èªæ |
| | | self.navigationItem.rightBarButtonItems=[[NSArray alloc] initWithObjects:recordBarItem,searchItem,WhiteBarItem,nil]; |
| | | } |
| | | /** |
| | | * 跳转å°åå²è®°å½ |
| | | */ |
| | | -(void)JumpToRecordView{ |
| | | LookNoteController *LookNoteLookNoteVC=[[LookNoteController alloc] init]; |
| | | [LookNoteLookNoteVC setHidesBottomBarWhenPushed:YES]; |
| | | |
| | | [self.navigationController pushViewController:LookNoteLookNoteVC animated:YES]; |
| | | } |
| | | |
| | | /** |
| | | * è·³è½¬å°æç´¢ |
| | | */ |
| | | -(void)JumpToSearchView{ |
| | | searchViewController *searchVC=[[searchViewController alloc] init]; |
| | | [searchVC setHidesBottomBarWhenPushed:YES]; |
| | | |
| | | [self.navigationController pushViewController:searchVC animated:YES]; |
| | | } |
| | | |
| | | - (void)getHotSearch{ |
| | | [[YTHNetInterface startInterface] getHotSerachWithUid:[YTHsharedManger startManger].Uid withSystem:@"1" withblock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *dic = (NSDictionary *)result; |
| | | if (!_dataHot) { |
| | | _dataHot = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | } |
| | | [_dataHot removeAllObjects]; |
| | | NSArray *ar = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | for (int i =0; i<ar.count; i++) { |
| | | [_dataHot addObject:[ar objectAtIndex:i]]; |
| | | } |
| | | NSLog(@"////%@'''''",_dataHot); |
| | | if ([YTHsharedManger startManger].searchTitle.length == 0) { |
| | | NSInteger rand = arc4random()%self.dataHot.count ; |
| | | self.searchText.text = self.dataHot[rand]; |
| | | [YTHsharedManger startManger].searchTitle = self.searchText.text; |
| | | }else{ |
| | | self.searchText.text = [YTHsharedManger startManger].searchTitle; |
| | | } |
| | | //å·æ°çé¨æç´¢ |
| | | }else{ |
| | | //æ¾ç¤ºç½ç»è¿æ¥å¤±è´¥ |
| | | } |
| | | }]; |
| | | } |
| | | |
| | | |
| | | - (void)didReceiveMemoryWarning { |
| | | [super didReceiveMemoryWarning]; |
| | | // Dispose of any resources that can be recreated. |
| | | } |
| | | |
| | | |
| | | @end |
| | |
| | | //æ´å¤ä¸é¢ |
| | | -(void)Clicklable:(id)sender{ |
| | | AllSpecialController * allcontroller = [AllSpecialController new]; |
| | | [_mycontroller.navigationController pushViewController:allcontroller animated:YES]; |
| | | [allcontroller setHidesBottomBarWhenPushed:YES]; |
| | | [[self viewController].navigationController pushViewController:allcontroller animated:YES]; |
| | | } |
| | | |
| | | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { |
| | | [super setSelected:selected animated:animated]; |
| | | |
| | | } |
| | | |
| | | +(float)getsdcheight{ |
| | |
| | | return KScreenW*7 /16 + 27; |
| | | } |
| | | |
| | | - (UIViewController *)viewController { |
| | | for (UIView* next = [self superview]; next; next = next.superview) { |
| | | UIResponder *nextResponder = [next nextResponder]; |
| | | if ([nextResponder isKindOfClass:[UIViewController class]]) { |
| | | return (UIViewController *)nextResponder; |
| | | } |
| | | } |
| | | return nil; |
| | | } |
| | | |
| | | @end |
| | |
| | | å建é项æ |
| | | */ |
| | | -(void)createSegmentedControl{ |
| | | segmentedControl = [[HMSegmentedControl alloc] initWithSectionTitles:@[@"è§é¢", @"åå"]]; |
| | | segmentedControl = [[HMSegmentedControl alloc] initWithSectionTitles:@[@"å½±è§æ¶è", @"ååæ¶è"]]; |
| | | [segmentedControl setFrame:CGRectMake(0, 64, KScreenW, 48)]; |
| | | segmentedControl.selectionIndicatorHeight = 4.0f; |
| | | segmentedControl.backgroundColor = KGlobalLightGreyColor_255; |
| | |
| | | å建å表 |
| | | */ |
| | | -(void)createTableView{ |
| | | mytableview = [[UITableView alloc]initWithFrame:CGRectMake(10, segmentedControl.frame.size.height+segmentedControl.frame.origin.y + 1, KScreenW - 20, KScreenH - 117) style:UITableViewStyleGrouped]; |
| | | mytableview = [[UITableView alloc]initWithFrame:CGRectMake(0,CGRectGetMaxY(segmentedControl.frame) , KScreenW, KScreenH - 117) style:UITableViewStylePlain]; |
| | | mytableview.delegate = self; |
| | | mytableview.dataSource = self; |
| | | mytableview.backgroundColor = kGlobalBackgroundColor; |
| | | mytableview.showsVerticalScrollIndicator = NO; |
| | | |
| | | mytableview.separatorStyle = UITableViewCellSeparatorStyleNone; |
| | | //æ³¨åæ¶èè§é¢çcell |
| | | [mytableview registerNib:[UINib nibWithNibName:@"NoteCell" bundle:nil] forCellReuseIdentifier:@"NoteCell"]; |
| | | |
| | |
| | | } |
| | | |
| | | - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{ |
| | | return 5; |
| | | return CGFLOAT_MIN; |
| | | } |
| | | |
| | | - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{ |
| | |
| | | #define MESSAGE [DocumentsDirectory stringByAppendingPathComponent:@"Message.plist"] |
| | | |
| | | //è®°å½å享 |
| | | |
| | | #define SHARE [DocumentsDirectory stringByAppendingPathComponent:@"Share.plist"] |
| | | |
| | | |
| | | //åç°é¡µé¢ |
| | | #define DISCOVERSDY [DocumentsDirectory stringByAppendingPathComponent:@"discoverSDY.plist"] |
| | |
| | | #define kStatusBarH 20 |
| | | |
| | | // 5.å
¨å±é¢è² |
| | | #define kGlobalMainColor YTHColor(48, 39, 37)//åºç¨ç主è²è° |
| | | //#define kGlobalMainColor YTHColor(48, 39, 37)//åºç¨ç主è²è° |
| | | #define kGlobalMainColor [UIColor blackColor]//åºç¨ç主è²è° |
| | | |
| | | |
| | | #define kGlobalBackgroundColor YTHColor(243, 243, 243) |
| | | #define kGlobalYellowColor YTHColor(254, 232, 77) |
| | | |
| | | #define kGlobaLineColor YTHColor(200, 200, 200) |
| | | #define KGlobalTileColor YTHColor(66, 66, 66) |
| | | #define kGlobalDeepGreyColor YTHColor(51, 51, 51) |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <device id="retina4_7" orientation="portrait"> |
| | | <adaptation id="fullscreen"/> |
| | | </device> |
| | | <dependencies> |
| | | <deployment identifier="iOS"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> |
| | | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| | | </dependencies> |
| | | <objects> |
| | |
| | | </constraints> |
| | | </imageView> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="å¿«ç" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="riZ-1h-p5y"> |
| | | <rect key="frame" x="55" y="10" width="100" height="30"/> |
| | | <rect key="frame" x="55" y="10" width="160" height="30"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="100" id="CGP-ta-6Of"/> |
| | | <constraint firstAttribute="width" constant="160" id="CGP-ta-6Of"/> |
| | | </constraints> |
| | | <fontDescription key="fontDescription" type="system" pointSize="15"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Dgw-rj-P3L"> |
| | | <button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Dgw-rj-P3L"> |
| | | <rect key="frame" x="250" y="13" width="50" height="25"/> |
| | | <color key="backgroundColor" red="0.81568627450980391" green="0.81568627450980391" blue="0.81568627450980391" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <constraints> |
| | |
| | | <key>CFBundlePackageType</key> |
| | | <string>APPL</string> |
| | | <key>CFBundleShortVersionString</key> |
| | | <string>2.6.6</string> |
| | | <string>2.6.7</string> |
| | | <key>CFBundleSignature</key> |
| | | <string>????</string> |
| | | <key>CFBundleURLTypes</key> |
| | |
| | | </dict> |
| | | </array> |
| | | <key>CFBundleVersion</key> |
| | | <string>24</string> |
| | | <string>25</string> |
| | | <key>LSApplicationQueriesSchemes</key> |
| | | <array> |
| | | <string>tmall</string> |
| | |
| | | <string>åæå¸ä¸¸å½±è§å¤§å
¨å®ä½åï¼</string> |
| | | <key>NSPhotoLibraryUsageDescription</key> |
| | | <string>åæå¸ä¸¸å½±è§å¤§å
¨ä½¿ç¨ç¸ååï¼</string> |
| | | <key>UIMainStoryboardFile</key> |
| | | <string>Main</string> |
| | | <key>UIRequiredDeviceCapabilities</key> |
| | | <array> |
| | | <string>armv7</string> |
New file |
| | |
| | | // |
| | | // JYNetWorking.h |
| | | // CrowdFunding |
| | | // |
| | | // Created by JY on 2017/3/21. |
| | | // Copyright © 2017年 qyc. All rights reserved. |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import "AFNetworking.h" |
| | | |
| | | typedef void (^NetBlock)(NSDictionary *object); |
| | | typedef void (^ErrorBlock)(id object); |
| | | typedef void (^ProgressBlock)(int64_t completedUnitCount, int64_t totalUnitCount); |
| | | |
| | | @interface JYNetWorking : NSObject |
| | | |
| | | /** |
| | | Get |
| | | |
| | | @param url 请æ±é¾æ¥ |
| | | @param successBlock æååè° |
| | | @param errorBlock 失败åè° |
| | | */ |
| | | + (void)Get:(NSString *)url |
| | | parameters:(NSDictionary *)parameters |
| | | success:(NetBlock)successBlock |
| | | fail:(ErrorBlock)errorBlock; |
| | | |
| | | /** |
| | | Post |
| | | |
| | | @param url 请æ±é¾æ¥ |
| | | @param param åæ° |
| | | @param successBlock æååè° |
| | | @param errorBlock 失败åè° |
| | | */ |
| | | + (void)Post:(NSString *)url |
| | | param:(NSDictionary *)param |
| | | success:(NetBlock )successBlock |
| | | fail:(ErrorBlock )errorBlock; |
| | | |
| | | |
| | | /** |
| | | ä¸ä¼ å¾ç |
| | | |
| | | @param url 请æ±é¾æ¥ |
| | | @param param åæ° |
| | | @param name ä¸ä¼ åç§° |
| | | @param imageArray å¾çæ°ç» |
| | | @param progressBlock è¿åº¦åè° |
| | | @param successBlock æååè° |
| | | @param errorBlock 失败åè° |
| | | */ |
| | | + (void)UploadImage:(NSString *)url |
| | | param:(NSDictionary *)param |
| | | name:(NSString *)name |
| | | imageArray:(NSArray *)imageArray |
| | | progress:(ProgressBlock )progressBlock |
| | | success:(NetBlock )successBlock |
| | | error:(ErrorBlock )errorBlock; |
| | | |
| | | |
| | | + (void)UploadImages:(NSString *)url |
| | | param:(NSDictionary *)param |
| | | names:(NSArray *)names |
| | | imageArray:(NSArray *)imageArray |
| | | progress:(ProgressBlock)progressBlock |
| | | success:(NetBlock)successBlock |
| | | error:(ErrorBlock)errorBlock; |
| | | |
| | | /** |
| | | ä¸ä¼ æä»¶ |
| | | |
| | | @param url 请æ±é¾æ¥ |
| | | @param fileName æä»¶å |
| | | @param name ä¸ä¼ åç§° |
| | | @param param åæ° |
| | | @param progressBlock è¿åº¦åè° |
| | | @param successBlock æååè° |
| | | @param errorBlock 失败åè° |
| | | */ |
| | | + (void)UploadFile:(NSString *)url |
| | | fileName:(NSString *)fileName |
| | | name:(NSString *)name |
| | | param:(NSDictionary *)param |
| | | progress:(ProgressBlock )progressBlock |
| | | success:(NetBlock )successBlock |
| | | error:(ErrorBlock )errorBlock; |
| | | |
| | | /** |
| | | ä¸è½½æä»¶ |
| | | |
| | | @param url 请æ±é¾æ¥ |
| | | @param progressBlock è¿åº¦åè° |
| | | @param successBlock æååè° |
| | | @param errorBlock 失败åè° |
| | | */ |
| | | + (void)Download:(NSString *)url |
| | | progress:(ProgressBlock )progressBlock |
| | | success:(NetBlock )successBlock |
| | | error:(ErrorBlock )errorBlock; |
| | | |
| | | |
| | | |
| | | + (void)Post:(NSString *)url |
| | | paramStr:(NSString *)paramStr |
| | | success:(NetBlock)successBlock |
| | | fail:(ErrorBlock)errorBlock; |
| | | |
| | | |
| | | //è§£æjsonå符串 |
| | | + (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString; |
| | | |
| | | @end |
New file |
| | |
| | | // |
| | | // JYNetWorking.m |
| | | // CrowdFunding |
| | | // |
| | | // Created by JY on 2017/3/21. |
| | | // Copyright © 2017年 qyc. All rights reserved. |
| | | // |
| | | |
| | | #import "JYNetWorking.h" |
| | | |
| | | @implementation JYNetWorking |
| | | |
| | | + (void)Get:(NSString *)url parameters:(NSDictionary *)parameters success:(NetBlock)successBlock fail:(ErrorBlock)errorBlock |
| | | { |
| | | url=[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; |
| | | AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; |
| | | manager.responseSerializer = [AFJSONResponseSerializer serializer]; |
| | | manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html",nil]; |
| | | [manager GET:url parameters:parameters progress:^(NSProgress * _Nonnull downloadProgress) { |
| | | |
| | | } success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { |
| | | if (successBlock) { |
| | | successBlock(responseObject); |
| | | } |
| | | } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { |
| | | if (errorBlock) { |
| | | errorBlock(error); |
| | | } |
| | | }]; |
| | | } |
| | | |
| | | + (void)Post:(NSString *)url param:(NSDictionary *)param success:(NetBlock)successBlock fail:(ErrorBlock)errorBlock |
| | | { |
| | | url=[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; |
| | | AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; |
| | | //设置è¶
æ¶æ¶é´ |
| | | manager.requestSerializer.timeoutInterval = 15; |
| | | manager.responseSerializer = [AFHTTPResponseSerializer serializer]; |
| | | manager.responseSerializer = [AFJSONResponseSerializer serializer]; |
| | | manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html",@"text/json",@"text/javascript", nil]; |
| | | [manager POST:url parameters:param progress:^(NSProgress * _Nonnull uploadProgress) { |
| | | |
| | | } success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { |
| | | |
| | | if (successBlock) |
| | | { |
| | | successBlock(responseObject); |
| | | } |
| | | |
| | | } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { |
| | | if (errorBlock) |
| | | { |
| | | errorBlock(error); |
| | | } |
| | | }]; |
| | | |
| | | } |
| | | |
| | | + (void)Post:(NSString *)url paramStr:(NSString *)paramStr success:(NetBlock)successBlock fail:(ErrorBlock)errorBlock |
| | | { |
| | | url=[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; |
| | | AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; |
| | | //设置è¶
æ¶æ¶é´ |
| | | manager.requestSerializer.timeoutInterval = 10; |
| | | manager.responseSerializer = [AFJSONResponseSerializer serializer]; |
| | | |
| | | manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"]; |
| | | |
| | | [manager POST:url parameters:paramStr progress:^(NSProgress * _Nonnull uploadProgress) { |
| | | |
| | | } success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { |
| | | |
| | | if (successBlock) |
| | | { |
| | | successBlock(responseObject); |
| | | } |
| | | |
| | | } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { |
| | | if (errorBlock) |
| | | { |
| | | errorBlock(error); |
| | | } |
| | | }]; |
| | | |
| | | } |
| | | |
| | | + (void)UploadImages:(NSString *)url param:(NSDictionary *)param names:(NSArray *)names imageArray:(NSArray *)imageArray progress:(ProgressBlock)progressBlock success:(NetBlock)successBlock error:(ErrorBlock)errorBlock |
| | | { |
| | | AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; |
| | | manager.responseSerializer = [AFJSONResponseSerializer serializer]; |
| | | manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"]; |
| | | [manager POST:url parameters:param constructingBodyWithBlock:^(id<AFMultipartFormData> _Nonnull formData) { |
| | | for (int i = 0; i < names.count; i ++) { |
| | | NSArray *images = imageArray[i]; |
| | | for (int j = 0; j < images.count; j ++) { |
| | | UIImage *image =[images objectAtIndex:j]; |
| | | NSData *fileData = UIImageJPEGRepresentation(image, 0.1); |
| | | |
| | | NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; |
| | | // 设置æ¶é´æ ¼å¼ |
| | | formatter.dateFormat = @"yyyyMMddHHmmss"; |
| | | NSString *str = [formatter stringFromDate:[NSDate date]]; |
| | | NSString *fileName = [NSString stringWithFormat:@"%@.png", str]; |
| | | |
| | | if (fileData != NULL) { |
| | | [formData appendPartWithFileData:fileData name:names[i] fileName:fileName mimeType:@"image/png"]; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } progress:^(NSProgress * _Nonnull uploadProgress) { |
| | | if (progressBlock) { |
| | | progressBlock(uploadProgress.completedUnitCount, uploadProgress.totalUnitCount); |
| | | } |
| | | } success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { |
| | | if (successBlock) { |
| | | successBlock(responseObject); |
| | | } |
| | | } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { |
| | | if (errorBlock) |
| | | { |
| | | errorBlock(error); |
| | | } |
| | | |
| | | }]; |
| | | |
| | | } |
| | | |
| | | |
| | | + (void)UploadImage:(NSString *)url param:(NSDictionary *)param name:(NSString *)name imageArray:(NSArray *)imageArray progress:(ProgressBlock)progressBlock success:(NetBlock)successBlock error:(ErrorBlock)errorBlock |
| | | { |
| | | AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; |
| | | manager.responseSerializer = [AFJSONResponseSerializer serializer]; |
| | | manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"text/html",@"application/json", nil]; |
| | | [manager POST:url parameters:param constructingBodyWithBlock:^(id<AFMultipartFormData> _Nonnull formData) { |
| | | for (int i=0; i<imageArray.count; i++) { |
| | | |
| | | UIImage *image =[imageArray objectAtIndex:i]; |
| | | NSData *fileData = UIImageJPEGRepresentation(image, 0.1); |
| | | |
| | | NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; |
| | | // 设置æ¶é´æ ¼å¼ |
| | | formatter.dateFormat = @"yyyyMMddHHmmss"; |
| | | NSString *str = [formatter stringFromDate:[NSDate date]]; |
| | | NSString *fileName = [NSString stringWithFormat:@"%@.png", str]; |
| | | |
| | | if (fileData != NULL) { |
| | | [formData appendPartWithFileData:fileData name:name fileName:fileName mimeType:@"image/png"]; |
| | | } |
| | | } |
| | | } progress:^(NSProgress * _Nonnull uploadProgress) { |
| | | if (progressBlock) { |
| | | progressBlock(uploadProgress.completedUnitCount, uploadProgress.totalUnitCount); |
| | | } |
| | | } success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { |
| | | if (successBlock) { |
| | | successBlock(responseObject); |
| | | } |
| | | } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { |
| | | if (errorBlock) |
| | | { |
| | | errorBlock(error); |
| | | } |
| | | |
| | | }]; |
| | | |
| | | } |
| | | + (void)UploadFile:(NSString *)url fileName:(NSString *)fileName name:(NSString *)name param:(NSDictionary *)param progress:(ProgressBlock)progressBlock success:(NetBlock)successBlock error:(ErrorBlock)errorBlock |
| | | { |
| | | NSArray *arr = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); |
| | | NSString *documentPath = [arr objectAtIndex:0]; |
| | | NSString *path = [documentPath stringByAppendingString:fileName]; |
| | | NSString *filePath = path; |
| | | |
| | | AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; |
| | | manager.responseSerializer = [AFJSONResponseSerializer serializer]; |
| | | |
| | | [manager POST:url parameters:param constructingBodyWithBlock:^(id<AFMultipartFormData> _Nonnull formData) { |
| | | [formData appendPartWithFileURL:[NSURL URLWithString:filePath] name:name error:nil]; |
| | | } progress:^(NSProgress * _Nonnull uploadProgress) { |
| | | if (progressBlock) { |
| | | progressBlock(uploadProgress.completedUnitCount, uploadProgress.totalUnitCount); |
| | | } |
| | | } success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { |
| | | |
| | | if (successBlock) { |
| | | successBlock(responseObject); |
| | | } |
| | | } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { |
| | | if (errorBlock) |
| | | { |
| | | errorBlock(error); |
| | | } |
| | | }]; |
| | | |
| | | } |
| | | + (void)Download:(NSString *)url progress:(ProgressBlock)progressBlock success:(NetBlock)successBlock error:(ErrorBlock)errorBlock |
| | | { |
| | | AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; |
| | | manager.responseSerializer = [AFJSONResponseSerializer serializer]; |
| | | |
| | | [manager GET:url parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) { |
| | | progressBlock(downloadProgress.completedUnitCount, downloadProgress.totalUnitCount); |
| | | } success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { |
| | | NSLog(@"ä¸è½½æå"); |
| | | if (successBlock) { |
| | | successBlock(responseObject); |
| | | } |
| | | } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { |
| | | NSLog(@"ä¸è½½å¤±è´¥"); |
| | | if (errorBlock) |
| | | { |
| | | errorBlock(error); |
| | | } |
| | | }]; |
| | | } |
| | | |
| | | //+ (void)startRequest:(NSString *)urlString parameters:(NSDictionary *)parameters { |
| | | // |
| | | // AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; |
| | | // //设置è¶
æ¶æ¶é´ |
| | | // manager.requestSerializer.timeoutInterval = 10; |
| | | // manager.responseSerializer = [AFJSONResponseSerializer serializer]; |
| | | // manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"]; |
| | | // |
| | | // NSURLSessionDataTask *dataTask = [manager POST:urlString parameters:parameters progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { |
| | | // NSLog(@"%@", responseObject); |
| | | // |
| | | // |
| | | // } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { |
| | | // NSLog(@"%@", error.localizedDescription); |
| | | // |
| | | // }]; |
| | | //} |
| | | |
| | | |
| | | /** |
| | | è·åæ¶é´æ³å符串ï¼ç§ï¼ |
| | | @param seconds ä»å½åå»¶åçç§æ° |
| | | @return æ¶é´æ³ |
| | | */ |
| | | -(NSString * )getTimeStringWithDelay:(NSInteger)seconds{ |
| | | NSDate * date = [NSDate date]; |
| | | NSInteger time = (NSInteger)date.timeIntervalSince1970+seconds; |
| | | return [NSString stringWithFormat:@"%ld",(long)time]; |
| | | } |
| | | |
| | | // éæºå符串 |
| | | + (NSString *)random32String { |
| | | char data[32]; |
| | | for (int x=0;x<32;data[x++] = (char)('A' + (arc4random_uniform(26)))); |
| | | return [[NSString alloc] initWithBytes:data length:32 encoding:NSUTF8StringEncoding]; |
| | | } |
| | | |
| | | //è§£æjsonå符串 |
| | | + (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString { |
| | | |
| | | if (jsonString == nil) { |
| | | return nil; |
| | | } |
| | | NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; |
| | | NSError *err; |
| | | NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:&err]; |
| | | if(err) { |
| | | NSLog(@"jsonè§£æå¤±è´¥ï¼%@",err); |
| | | return nil; |
| | | } |
| | | return dic; |
| | | } |
| | | |
| | | @end |
| | |
| | | - (void)awakeFromNib { |
| | | [super awakeFromNib]; |
| | | // Initialization code |
| | | _Line.backgroundColor=kGlobalLightGreyColor_210; |
| | | // _Line.backgroundColor=kGlobalLightGreyColor_210; |
| | | } |
| | | |
| | | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12120" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <device id="retina4_7" orientation="portrait"> |
| | | <adaptation id="fullscreen"/> |
| | | </device> |
| | | <dependencies> |
| | | <deployment identifier="iOS"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> |
| | | <capability name="Constraints to layout margins" minToolsVersion="6.0"/> |
| | | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| | | </dependencies> |
| | |
| | | <autoresizingMask key="autoresizingMask"/> |
| | | <subviews> |
| | | <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="v79-gc-l0z"> |
| | | <rect key="frame" x="23" y="15" width="25" height="25"/> |
| | | <rect key="frame" x="21" y="15" width="25" height="25"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="25" id="fry-uF-Q9A"/> |
| | | <constraint firstAttribute="height" constant="25" id="nVr-1f-2f1"/> |
| | | </constraints> |
| | | </imageView> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OzK-Xn-oiw"> |
| | | <rect key="frame" x="68" y="8" width="202" height="38"/> |
| | | <rect key="frame" x="66" y="8" width="219" height="38"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="38" id="XkF-km-t8T"/> |
| | | </constraints> |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="arrow---right-坿¬-2" translatesAutoresizingMaskIntoConstraints="NO" id="8Dq-2Y-JCV"> |
| | | <rect key="frame" x="270" y="18" width="9" height="14"/> |
| | | <rect key="frame" x="285" y="18" width="9" height="14"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="14" id="0C2-HO-WAc"/> |
| | | <constraint firstAttribute="width" constant="9" id="Bjc-Xj-I5q"/> |
| | | </constraints> |
| | | </imageView> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="l3H-yw-Epb"> |
| | | <rect key="frame" x="63" y="53" width="224" height="1"/> |
| | | <color key="backgroundColor" red="0.81568627450980391" green="0.81568627450980391" blue="0.81568627450980391" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <rect key="frame" x="71" y="51" width="183" height="1"/> |
| | | <color key="backgroundColor" red="0.81568627450980391" green="0.81568627450980391" blue="0.81568627450980391" alpha="0.32066031678082191" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="1" id="ncE-ym-a4g"/> |
| | | </constraints> |
| | | <fontDescription key="fontDescription" type="system" pointSize="17"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | | <color key="textColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
| | | <color key="highlightedColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
| | | </label> |
| | | </subviews> |
| | | <constraints> |
| | | <constraint firstItem="OzK-Xn-oiw" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="147-Lu-qYL"/> |
| | | <constraint firstAttribute="trailingMargin" secondItem="l3H-yw-Epb" secondAttribute="trailing" constant="25" id="4bo-dy-hv8"/> |
| | | <constraint firstAttribute="trailingMargin" secondItem="l3H-yw-Epb" secondAttribute="trailing" constant="50" id="4bo-dy-hv8"/> |
| | | <constraint firstItem="l3H-yw-Epb" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="55" id="B7b-vT-Lhe"/> |
| | | <constraint firstItem="v79-gc-l0z" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Bee-ZU-22r"/> |
| | | <constraint firstItem="8Dq-2Y-JCV" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" constant="-2" id="HfO-1k-9OX"/> |
| | | <constraint firstItem="v79-gc-l0z" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="15" id="PXe-qO-xFl"/> |
| | | <constraint firstItem="v79-gc-l0z" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="5" id="PXe-qO-xFl"/> |
| | | <constraint firstItem="8Dq-2Y-JCV" firstAttribute="leading" secondItem="OzK-Xn-oiw" secondAttribute="trailing" id="Zjr-yK-P8y"/> |
| | | <constraint firstAttribute="bottomMargin" secondItem="l3H-yw-Epb" secondAttribute="bottom" constant="-7" id="b1h-bh-a6V"/> |
| | | <constraint firstItem="OzK-Xn-oiw" firstAttribute="leading" secondItem="v79-gc-l0z" secondAttribute="trailing" constant="20" id="rBv-RU-m3B"/> |
| | | <constraint firstAttribute="trailingMargin" secondItem="8Dq-2Y-JCV" secondAttribute="trailing" constant="33" id="zsF-8N-BGU"/> |
| | | <constraint firstAttribute="trailingMargin" secondItem="8Dq-2Y-JCV" secondAttribute="trailing" constant="10" id="zsF-8N-BGU"/> |
| | | </constraints> |
| | | </tableViewCellContentView> |
| | | <connections> |
| | |
| | | |
| | | #import <UIKit/UIKit.h> |
| | | |
| | | @interface LeftViewController : UIViewController |
| | | @interface LeftViewController : BaseViewController |
| | | |
| | | @end |
| | |
| | | |
| | | @implementation LeftViewController |
| | | |
| | | - (instancetype)init { |
| | | self = [super init]; |
| | | if (self) { |
| | | self.title = @"æç"; |
| | | UITabBarItem *item = [[UITabBarItem alloc]initWithTitle:self.title image:[UIImage imageNamed:@"User-æ·è´"] selectedImage:[UIImage imageNamed:@"User"]]; |
| | | item.titlePositionAdjustment = UIOffsetMake(0, -5); |
| | | self.tabBarItem = item; |
| | | } |
| | | return self; |
| | | } |
| | | |
| | | - (void)viewDidLoad { |
| | | [super viewDidLoad]; |
| | | self.view.backgroundColor=[UIColor whiteColor]; |
| | |
| | | self.LeftbackgroundH.constant=141; |
| | | //头åç»å |
| | | self.LeftImageIcon.layer.cornerRadius=self.LeftImageIcon.frame.size.height/2; |
| | | |
| | | self.LeftImageIcon.layer.masksToBounds= YES; |
| | | //tabelViewçé
ç½® |
| | | _LeftTableView.delegate=self; |
| | | _LeftTableView.dataSource=self; |
| | | |
| | | //éèCellä¹é´ç线 |
| | | _LeftTableView.separatorStyle = UITableViewCellSelectionStyleNone; |
| | | |
| | | _LeftTableView.scrollEnabled = NO; |
| | | //注åtableViewCell |
| | | [_LeftTableView registerNib:[UINib nibWithNibName:@"LeftTableViewCell" bundle:nil] forCellReuseIdentifier:@"LeftTableViewCellId"]; |
| | | |
| | |
| | | [self creatData]; |
| | | |
| | | //è®¾ç½®ä¾§æ»æ çå¤´èæ¯ |
| | | _LeftBackGroundView.image=[UIImage imageNamed:@"å¾å±-2"]; |
| | | // _LeftBackGroundView.image=[UIImage imageNamed:@"å¾å±-2"]; |
| | | |
| | | //设置ç«å³ç»å½çbutton |
| | | [_LeftLoginBtn setTitleColor:kGlobalYellowColor forState:UIControlStateNormal]; |
| | |
| | | _iconArr=[NSArray arrayWithObjects:@"æçæ¶è",@"è§çè®°å½",@"æçå
³æ³¨",@"æçæ¶æ¯",@"å享åºå»",@"帮å©ååé¦",@"设置", nil]; |
| | | } |
| | | if (!_dataArr) { |
| | | _dataArr=[NSArray arrayWithObjects:@"æçæ¶è",@"è§çè®°å½",@"æçå
³æ³¨",@"æçæ¶æ¯",@"å享åºå»",@"帮å©ä¸åé¦",@"设置", nil]; |
| | | _dataArr=[NSArray arrayWithObjects:@"æçæ¶è",@"è§çè®°å½",@"æçå
³æ³¨",@"æçæ¶æ¯",@"å享软件",@"帮å©ä¸åé¦",@"设置", nil]; |
| | | } |
| | | } |
| | | /** |
| | |
| | | */ |
| | | -(void)LoginWithThird{ |
| | | //é¦å
ï¼å¦æç¨æ·å·²ç»æ¯ç»å½ç¶æï¼é£ä¹å°±è¯¥è·³è½¬å°è®¾ç½®çé¢ï¼è®©ç¨æ·å¯ä»¥éæ©éåºç»å½ï¼å¦ææ¯æªç»å½çç¶æï¼å°±è·³è½¬å°ç»å½çé¢ |
| | | UINavigationController *nav = (UINavigationController *)self.slideMenuController.mainViewController; |
| | | //é¦å
è·åç»å½ç¶æ |
| | | _userOnLine= [[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]; |
| | | |
| | | if(_userOnLine){//è·³å
¥ä¸ªäººä¸å¿ï¼ç®åæªå®ç°ï¼æä¸ç©ºç |
| | | Personal_informationViewController *Personal_informationVC=[[Personal_informationViewController alloc] init]; |
| | | [nav pushViewController:Personal_informationVC animated:YES]; |
| | | [self.navigationController pushViewController:Personal_informationVC animated:YES]; |
| | | }else{//è·³å
¥ç»å½çé¢ |
| | | LoggingViewController *loginVC=[[LoggingViewController alloc] init]; |
| | | [nav pushViewController:loginVC animated:YES]; |
| | | [self.navigationController pushViewController:loginVC animated:YES]; |
| | | } |
| | | [self.slideMenuController closeLeft]; |
| | | } |
| | | |
| | | #pragma Mark -UITableViewDelegate |
| | | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ |
| | | return 50; |
| | | return 45; |
| | | } |
| | | |
| | | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ |
| | | [tableView deselectRowAtIndexPath:indexPath animated:YES]; |
| | | UINavigationController *nav = (UINavigationController *)self.slideMenuController.mainViewController; |
| | | |
| | | switch (indexPath.row) { |
| | | case 0:{ |
| | | CollectionController * cc = [CollectionController new]; |
| | | [nav pushViewController:cc animated:YES]; |
| | | [cc setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:cc animated:YES]; |
| | | } |
| | | break; |
| | | case 1:{ |
| | | LookNoteController * note = [LookNoteController new]; |
| | | [nav pushViewController:note animated:YES]; |
| | | [note setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:note animated:YES]; |
| | | |
| | | } |
| | | break; |
| | | case 2:{ |
| | | if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){//å¤æç¨æ·æ¯å¦ç»å½ |
| | | MyRegardController * nr = [MyRegardController new]; |
| | | [nav pushViewController:nr animated:YES]; |
| | | [nr setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:nr animated:YES]; |
| | | }else{ |
| | | LoggingViewController *loginVC=[LoggingViewController new]; |
| | | [nav pushViewController:loginVC animated:YES]; |
| | | [loginVC setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:loginVC animated:YES]; |
| | | } |
| | | } |
| | | break; |
| | | case 3:{ |
| | | if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){//å¤æç¨æ·æ¯å¦ç»å½ |
| | | MymessageContrlloer *message = [MymessageContrlloer new]; |
| | | [nav pushViewController:message animated:YES]; |
| | | [message setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:message animated:YES]; |
| | | }else{ |
| | | LoggingViewController *loginVC=[LoggingViewController new]; |
| | | [nav pushViewController:loginVC animated:YES]; |
| | | [loginVC setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:loginVC animated:YES]; |
| | | } |
| | | } |
| | | break; |
| | | case 4:{//å享 |
| | | [Share shareAPP:nav]; |
| | | [Share shareAPP:self.navigationController]; |
| | | } |
| | | break; |
| | | // case 5:{//åå¸ä¸è¥¿ |
| | |
| | | case 5:{ |
| | | //帮å©ä¸åé¦ |
| | | HelpViewController *Help = [HelpViewController new]; |
| | | [nav pushViewController:Help animated:YES]; |
| | | [Help setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:Help animated:YES]; |
| | | } |
| | | break; |
| | | case 6:{ |
| | | //设置 |
| | | SettingController * setting = [SettingController new]; |
| | | [nav pushViewController:setting animated:YES]; |
| | | [setting setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:setting animated:YES]; |
| | | } |
| | | break; |
| | | } |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1004" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <device id="retina4_7" orientation="portrait"> |
| | | <adaptation id="fullscreen"/> |
| | | </device> |
| | | <dependencies> |
| | | <deployment identifier="iOS"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> |
| | | <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/> |
| | | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| | | </dependencies> |
| | | <objects> |
| | |
| | | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
| | | <subviews> |
| | | <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="QEM-mP-3cf"> |
| | | <rect key="frame" x="0.0" y="0.0" width="248" height="140"/> |
| | | <rect key="frame" x="0.0" y="40" width="375" height="120"/> |
| | | <color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="140" id="UPy-jU-CfA"/> |
| | | <constraint firstAttribute="height" constant="120" id="UPy-jU-CfA"/> |
| | | </constraints> |
| | | </imageView> |
| | | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fYV-gT-8iA"> |
| | | <rect key="frame" x="50" y="30" width="50" height="50"/> |
| | | <rect key="frame" x="15" y="75" width="65" height="65"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="50" id="MbL-bF-yYP"/> |
| | | <constraint firstAttribute="width" constant="50" id="sBe-WI-GgE"/> |
| | | <constraint firstAttribute="width" constant="65" id="5J4-ZM-XWr"/> |
| | | <constraint firstAttribute="height" constant="65" id="HOE-lD-ycV"/> |
| | | </constraints> |
| | | <state key="normal" image="ç¨æ·é»è®¤"/> |
| | | <userDefinedRuntimeAttributes> |
| | |
| | | </userDefinedRuntimeAttributes> |
| | | </button> |
| | | <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="9lj-t4-Re2"> |
| | | <rect key="frame" x="4" y="150" width="244" height="517"/> |
| | | <rect key="frame" x="4" y="170" width="371" height="497"/> |
| | | <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <color key="sectionIndexBackgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | </tableView> |
| | | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vJq-5r-coT"> |
| | | <rect key="frame" x="25" y="98" width="100" height="30"/> |
| | | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vJq-5r-coT"> |
| | | <rect key="frame" x="85" y="100" width="187.5" height="30"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="100" id="G5R-uc-EXC"/> |
| | | <constraint firstAttribute="height" constant="30" id="sDU-NC-Qxv"/> |
| | | <constraint firstAttribute="height" constant="30" id="cJu-rD-mvM"/> |
| | | </constraints> |
| | | <fontDescription key="fontDescription" type="system" pointSize="15"/> |
| | | <state key="normal" title="ç«å³ç»å½"/> |
| | |
| | | </subviews> |
| | | <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <constraints> |
| | | <constraint firstItem="vJq-5r-coT" firstAttribute="leading" secondItem="fYV-gT-8iA" secondAttribute="trailing" constant="5" id="259-n6-96L"/> |
| | | <constraint firstItem="9lj-t4-Re2" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="4" id="LTi-Lj-Vck"/> |
| | | <constraint firstItem="fYV-gT-8iA" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="50" id="QE4-Xw-35x"/> |
| | | <constraint firstItem="QEM-mP-3cf" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="U1o-hc-1Qp"/> |
| | | <constraint firstItem="QEM-mP-3cf" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="40" id="U1o-hc-1Qp"/> |
| | | <constraint firstItem="9lj-t4-Re2" firstAttribute="top" secondItem="QEM-mP-3cf" secondAttribute="bottom" constant="10" id="ZTh-BC-nOZ"/> |
| | | <constraint firstItem="vJq-5r-coT" firstAttribute="top" secondItem="QEM-mP-3cf" secondAttribute="bottom" constant="-42" id="buD-7m-Efk"/> |
| | | <constraint firstAttribute="trailing" secondItem="QEM-mP-3cf" secondAttribute="trailing" constant="127" id="dki-s9-h4v"/> |
| | | <constraint firstItem="vJq-5r-coT" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="25" id="e1c-pR-LX2"/> |
| | | <constraint firstItem="vJq-5r-coT" firstAttribute="bottom" secondItem="fYV-gT-8iA" secondAttribute="bottom" constant="-10" id="Zxk-3Z-WLW"/> |
| | | <constraint firstItem="vJq-5r-coT" firstAttribute="width" secondItem="QEM-mP-3cf" secondAttribute="width" multiplier="1:2" id="cwS-2c-CWy"/> |
| | | <constraint firstAttribute="trailing" secondItem="QEM-mP-3cf" secondAttribute="trailing" id="dki-s9-h4v"/> |
| | | <constraint firstAttribute="bottom" secondItem="9lj-t4-Re2" secondAttribute="bottom" id="fiW-ny-tg7"/> |
| | | <constraint firstItem="9lj-t4-Re2" firstAttribute="width" secondItem="QEM-mP-3cf" secondAttribute="width" constant="-4" id="haf-el-vIK"/> |
| | | <constraint firstItem="vJq-5r-coT" firstAttribute="top" secondItem="fYV-gT-8iA" secondAttribute="bottom" constant="18" id="tKn-0z-gao"/> |
| | | <constraint firstItem="9lj-t4-Re2" firstAttribute="top" secondItem="fYV-gT-8iA" secondAttribute="bottom" constant="30" id="oZ7-ap-nKJ"/> |
| | | <constraint firstItem="fYV-gT-8iA" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="xEE-Rt-gwj"/> |
| | | <constraint firstItem="QEM-mP-3cf" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="xxp-Ty-abf"/> |
| | | </constraints> |
| | | <point key="canvasLocation" x="326.5" y="272.5"/> |
| | |
| | | å建å表 |
| | | */ |
| | | -(void)createTableView{ |
| | | mytableview = [[UITableView alloc]initWithFrame:CGRectMake(10, 5, KScreenW-20, KScreenH-5) style:UITableViewStyleGrouped]; |
| | | mytableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 5, KScreenW, KScreenH-5) style:UITableViewStylePlain]; |
| | | mytableview.delegate = self; |
| | | mytableview.dataSource = self; |
| | | mytableview.backgroundColor = kGlobalBackgroundColor; |
| | | mytableview.showsVerticalScrollIndicator = NO; |
| | | mytableview.separatorStyle = UITableViewCellSeparatorStyleNone; |
| | | [self.view addSubview:mytableview]; |
| | | [mytableview registerNib:[UINib nibWithNibName:@"NoteCell" bundle:nil] forCellReuseIdentifier:@"NoteCell"]; |
| | | } |
| | |
| | | } |
| | | |
| | | - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{ |
| | | return 5; |
| | | return CGFLOAT_MIN; |
| | | } |
| | | |
| | | - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{ |
| | |
| | | #import "MymessageContrlloer.h" |
| | | #import "OnlySpecialController.h" |
| | | |
| | | |
| | | @interface MainViewController ()<UIScrollViewDelegate>{ |
| | | recommendView *_recommend; |
| | | liveOnLineView *_liveOnLine; |
| | |
| | | @property (nonatomic, strong) HMSegmentedControl *segmentedControl; |
| | | @property (nonatomic, assign) BOOL userOnLine;//ç¨æ·æ¯å¦ç»å½ |
| | | @property (nonatomic, strong) UIView *Point; //æç¤ºçº¢ç¹ |
| | | @property (nonatomic, strong) NSMutableArray *dataClass;//ååºæ°æ® |
| | | |
| | | |
| | | @end |
| | | |
| | |
| | | |
| | | - (void)viewDidLoad { |
| | | [super viewDidLoad]; |
| | | _dataClass = @[].mutableCopy; |
| | | //å è½½å¯¼èªæ |
| | | [self loadNavigationbar]; |
| | | //æ£æ¥å½åç¨æ·æ¯å¦ç»å½ |
| | | [self whetherLogin]; |
| | | //æ·»å 主è§å¾çsegment |
| | | [self creatSegmentView]; |
| | | |
| | | //æ·»å éç¥ |
| | | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pushMessageVC:) name:@"pushMessageNotification" object:nil]; |
| | | } |
| | |
| | | * æ·»å 主è§å¾çsegment |
| | | */ |
| | | -(void)creatSegmentView{ |
| | | |
| | | |
| | | |
| | | self.segmentedControl = [[HMSegmentedControl alloc] initWithSectionTitles:@[@"æ¨è ", @"ååº ", @"åç° ", @"å
³æ³¨ "]]; |
| | | [self.segmentedControl setFrame:CGRectMake(0, kNavigationBarH, KScreenW, 40)]; |
| | | [self.segmentedControl setFrame:CGRectMake(0, KScreenH - 40, KScreenW, 40)]; |
| | | self.segmentedControl.selectionIndicatorHeight = 2.0f; |
| | | self.segmentedControl.backgroundColor = kGlobalMainColor; |
| | | self.segmentedControl.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName :[UIFont systemFontOfSize:15]}; |
| | |
| | | [self.view addSubview:self.segmentedControl]; |
| | | |
| | | //é
ç½®æ»å¨è§å¾ |
| | | self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, kNavigationBarH+40, KScreenW, KScreenH-kNavigationBarH-40)]; |
| | | self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, kNavigationBarH, KScreenW, KScreenH-kNavigationBarH-40)]; |
| | | self.scrollView.pagingEnabled = YES; |
| | | self.scrollView.showsHorizontalScrollIndicator = NO; |
| | | self.scrollView.contentSize = CGSizeMake(KScreenW * 4, KScreenH-kNavigationBarH-40); |
| | |
| | | [self.segmentedControl addSubview:_Point]; |
| | | } |
| | | |
| | | |
| | | //å±å¼ä¾§è¾¹æ |
| | | -(void)presentLeftMenuViewController{ |
| | | [self.slideMenuController openLeft]; |
New file |
| | |
| | | // |
| | | // MineViewController.h |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import <UIKit/UIKit.h> |
| | | |
| | | @interface MineViewController : BaseViewController |
| | | |
| | | @end |
New file |
| | |
| | | // |
| | | // MineViewController.m |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import "MineViewController.h" |
| | | #import "attentionView.h" |
| | | @interface MineViewController () |
| | | @property (nonatomic,strong)attentionView *atteVC ; |
| | | |
| | | @end |
| | | |
| | | @implementation MineViewController |
| | | - (instancetype)init { |
| | | self = [super init]; |
| | | if (self) { |
| | | self.title = @"æç"; |
| | | UITabBarItem *item = [[UITabBarItem alloc]initWithTitle:self.title image:[UIImage imageNamed:@"User-æ·è´"] selectedImage:[UIImage imageNamed:@"User"]]; |
| | | self.tabBarItem = item; |
| | | } |
| | | return self; |
| | | } |
| | | - (void)viewDidLoad { |
| | | [super viewDidLoad]; |
| | | [self.view addSubview:self.atteVC]; |
| | | } |
| | | - (attentionView *)atteVC{ |
| | | if (_atteVC) { |
| | | return _atteVC; |
| | | } |
| | | _atteVC = [[attentionView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; |
| | | return _atteVC; |
| | | } |
| | | |
| | | - (void)didReceiveMemoryWarning { |
| | | [super didReceiveMemoryWarning]; |
| | | // Dispose of any resources that can be recreated. |
| | | } |
| | | |
| | | /* |
| | | #pragma mark - Navigation |
| | | |
| | | // In a storyboard-based application, you will often want to do a little preparation before navigation |
| | | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { |
| | | // Get the new view controller using [segue destinationViewController]. |
| | | // Pass the selected object to the new view controller. |
| | | } |
| | | */ |
| | | |
| | | @end |
| | |
| | | } |
| | | |
| | | -(void)initlist{ |
| | | mytableview = [[UITableView alloc]initWithFrame:CGRectMake(10, 5, KScreenW-20, KScreenH-5) style:UITableViewStyleGrouped]; |
| | | mytableview = [[UITableView alloc]initWithFrame:CGRectMake(10, 74, KScreenW - 20 , KScreenH-5) style:UITableViewStylePlain]; |
| | | mytableview.delegate = self; |
| | | mytableview.dataSource = self; |
| | | |
| | | mytableview.separatorStyle = UITableViewCellSeparatorStyleNone; |
| | | mytableview.showsVerticalScrollIndicator = NO; |
| | | mytableview.backgroundColor = [UIColor clearColor]; |
| | | //注åcell |
| | | [mytableview registerNib:[UINib nibWithNibName:@"RegardCell" bundle:nil] forCellReuseIdentifier:@"RegardCell"]; |
| | | //䏿巿° |
| | | mytableview.mj_header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)]; |
| | | mytableview.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadOldData)]; |
| | | [mytableview.mj_header beginRefreshing]; |
| | | |
| | | [self.view addSubview:mytableview]; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ |
| | | // return ListDataArray.count; |
| | | return 1; |
| | | } |
| | | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ |
| | | return ListDataArray.count; |
| | | } |
| | | |
| | | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ |
| | | RegardCell * cell = [tableView dequeueReusableCellWithIdentifier:@"RegardCell"]; |
| | | NSDictionary * dic = [ListDataArray[indexPath.row] objectForKey:@"VideoInfo"]; |
| | | NSDictionary * dic = [ListDataArray[indexPath.section] objectForKey:@"VideoInfo"]; |
| | | cell.selectionStyle = UITableViewCellSelectionStyleNone; |
| | | //åç§° |
| | | cell.Name.text = [dic objectForKey:@"Name"]; |
| | |
| | | [cell.button setSelected:YES]; |
| | | |
| | | //设置tagçå¼ |
| | | cell.button.tag = indexPath.row; |
| | | cell.expandbutton.tag=indexPath.row; |
| | | cell.button.tag = indexPath.section + 1000; |
| | | cell.expandbutton.tag=indexPath.section + 1000; |
| | | NSLog(@"%ld",(long)indexPath.row); |
| | | |
| | | [cell.button addTarget:self action:@selector(ClickButton:) forControlEvents:UIControlEventTouchUpInside]; |
| | | [cell.expandbutton addTarget:self action:@selector(ClickButton:) forControlEvents:UIControlEventTouchUpInside]; |
| | | |
| | | return cell; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{ |
| | | return 5; |
| | | return CGFLOAT_MIN; |
| | | } |
| | | |
| | | - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{ |
| | | return 5; |
| | | return 10; |
| | | } |
| | | |
| | | -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath{ |
| | |
| | | |
| | | }]; |
| | | } |
| | | |
| | | - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{ |
| | | UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KScreenW, 20)]; |
| | | view.backgroundColor = [UIColor clearColor]; |
| | | return view; |
| | | } |
| | | /** |
| | | * éåºå¹¶åæå¡å¨ååºæ°çå
³æ³¨æ°ä¿¡æ¯ |
| | | */ |
| | |
| | | */ |
| | | -(void)ClickButton:(UIButton *)sender{ |
| | | UIButton *button = [sender.superview subviews][1]; |
| | | // UIButton *button = sender; |
| | | |
| | | if([button isSelected]){//åæ¶å
³æ³¨çæä½ |
| | | [button setSelected:NO]; |
| | | button.backgroundColor = kGlobalYellowColor; |
| | | button.tintColor=kGlobalYellowColor; |
| | | |
| | | NSString *str=[[ListDataArray[sender.tag] objectForKey:@"VideoInfo"]objectForKey:@"Id"]; |
| | | NSString *str=[[ListDataArray[sender.tag - 1000] objectForKey:@"VideoInfo"]objectForKey:@"Id"]; |
| | | NSLog(@"%@",ListDataArray[sender.tag - 1000]); |
| | | NSLog(@"%@",[[ListDataArray[sender.tag - 1000] objectForKey:@"VideoInfo"]objectForKey:@"Name"]); |
| | | |
| | | NSLog(@"%ld",(long)sender.tag); |
| | | |
| | | [[YTHNetInterface startInterface] cancelAttentionWithUid:[YTHsharedManger startManger].Uid WithVideoId:str WithLoginUid:[[NSUserDefaults standardUserDefaults] objectForKey:@"LoginUid"] WithSystem:@"1" WithBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if(isSuccessful){ |
| | | NSNotification *notification = [NSNotification notificationWithName:@"RELOAD_DATA" object:nil userInfo:nil]; |
| | |
| | | button.backgroundColor = kGlobalLightGreyColor_210; |
| | | button.tintColor=kGlobalLightGreyColor_210; |
| | | |
| | | NSString *str=[NSString stringWithFormat:@"%@,",[[ListDataArray[sender.tag] objectForKey:@"VideoInfo"]objectForKey:@"Id"]]; |
| | | NSString *str=[NSString stringWithFormat:@"%@,",[[ListDataArray[sender.tag - 1000] objectForKey:@"VideoInfo"]objectForKey:@"Id"]]; |
| | | NSLog(@"%ld",(long)sender.tag); |
| | | |
| | | [[YTHNetInterface startInterface] addAttentionWithUid:[YTHsharedManger startManger].Uid WithVideoId:str WithLoginUid:[[NSUserDefaults standardUserDefaults] objectForKey:@"LoginUid"] WithSystem:@"1" WithBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1004" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <device id="retina4_7" orientation="portrait"> |
| | | <adaptation id="fullscreen"/> |
| | | </device> |
| | | <dependencies> |
| | | <deployment identifier="iOS"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> |
| | | <capability name="Constraints to layout margins" minToolsVersion="6.0"/> |
| | | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| | | </dependencies> |
| | |
| | | <rect key="frame" x="0.0" y="0.0" width="300" height="97"/> |
| | | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
| | | <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> |
| | | <rect key="frame" x="0.0" y="0.0" width="300" height="97"/> |
| | | <rect key="frame" x="0.0" y="0.0" width="300" height="96.5"/> |
| | | <autoresizingMask key="autoresizingMask"/> |
| | | <subviews> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" verticalCompressionResistancePriority="751" text="" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="a26-eQ-nl8"> |
| | | <rect key="frame" x="133" y="14" width="159" height="36"/> |
| | | <rect key="frame" x="151" y="17" width="133" height="36"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="36" id="xa4-N9-sMB"/> |
| | | </constraints> |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ecy-hF-k8Y"> |
| | | <rect key="frame" x="133" y="58" width="159" height="28"/> |
| | | <rect key="frame" x="151" y="61" width="133" height="0.0"/> |
| | | <fontDescription key="fontDescription" type="system" pointSize="14"/> |
| | | <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="3bR-ww-4vH"> |
| | | <rect key="frame" x="8" y="10" width="120" height="75"/> |
| | | <rect key="frame" x="21" y="13" width="120" height="75"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="75" id="863-JR-VRn"/> |
| | | <constraint firstAttribute="width" constant="120" id="GBa-3c-CPq"/> |
| | | </constraints> |
| | | </imageView> |
| | | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="u8q-1R-WIP"> |
| | | <rect key="frame" x="0.0" y="73.5" width="300" height="1"/> |
| | | <color key="backgroundColor" white="0.67000000000000004" alpha="0.5" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="1" id="oS9-Q2-Je9"/> |
| | | </constraints> |
| | | </view> |
| | | </subviews> |
| | | <constraints> |
| | | <constraint firstAttribute="bottomMargin" secondItem="ecy-hF-k8Y" secondAttribute="bottom" constant="3" id="1ax-0f-Q37"/> |
| | | <constraint firstItem="3bR-ww-4vH" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" id="6hV-D6-6MJ"/> |
| | | <constraint firstItem="3bR-ww-4vH" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="5" id="6hV-D6-6MJ"/> |
| | | <constraint firstItem="3bR-ww-4vH" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="EE9-gc-Eu0"/> |
| | | <constraint firstItem="u8q-1R-WIP" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="EJB-YX-A9W"/> |
| | | <constraint firstAttribute="trailing" secondItem="u8q-1R-WIP" secondAttribute="trailing" id="Eri-cY-6bw"/> |
| | | <constraint firstItem="3bR-ww-4vH" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="2" id="OuY-ua-svP"/> |
| | | <constraint firstAttribute="bottom" secondItem="u8q-1R-WIP" secondAttribute="bottom" id="QRE-kE-uT8"/> |
| | | <constraint firstAttribute="trailingMargin" secondItem="a26-eQ-nl8" secondAttribute="trailing" id="SeZ-Fc-u3m"/> |
| | | <constraint firstItem="ecy-hF-k8Y" firstAttribute="trailing" secondItem="a26-eQ-nl8" secondAttribute="trailing" id="cnQ-PR-MsG"/> |
| | | <constraint firstItem="ecy-hF-k8Y" firstAttribute="top" secondItem="a26-eQ-nl8" secondAttribute="bottom" constant="8" id="gcC-ck-b1t"/> |
| | | <constraint firstItem="a26-eQ-nl8" firstAttribute="leading" secondItem="3bR-ww-4vH" secondAttribute="trailing" constant="5" id="hHs-DW-LCV"/> |
| | | <constraint firstItem="a26-eQ-nl8" firstAttribute="leading" secondItem="3bR-ww-4vH" secondAttribute="trailing" constant="10" id="hHs-DW-LCV"/> |
| | | <constraint firstItem="ecy-hF-k8Y" firstAttribute="leading" secondItem="a26-eQ-nl8" secondAttribute="leading" id="iWx-oC-XAH"/> |
| | | <constraint firstItem="a26-eQ-nl8" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="6" id="lRg-Kq-kpG"/> |
| | | </constraints> |
| | |
| | | } |
| | | |
| | | cell.title.text = [titledic objectForKey:@"Name"]; |
| | | |
| | | cell.lable.text = [titledic objectForKey:@"Introduction"]; |
| | | return cell; |
| | | |
| | | }else{ |
| | | |
| | | OnlySpecialThere * cell = [tableView dequeueReusableCellWithIdentifier:@"OnlySpecialThere" forIndexPath:indexPath]; |
| | | cell.selectionStyle = UITableViewCellSelectionStyleNone; |
| | | NSDictionary *dic = dataarr[indexPath.row]; |
| | | NSLog(@"%@",dic); |
| | | cell.backgroundColor = kGlobalBackgroundColor; |
| | | [cell.image setYthImageWithURL:[dic objectForKey:@"Hpicture"] placeholderImage:[UIImage imageNamed:@"é»è®¤å è½½å¾ç"]]; |
| | | // CGFloat score = [[dic objectForKey:@"Score"]doubleValue]; |
| | | // if (score != 0) { |
| | | // cell.grade.text = [NSString stringWithFormat:@"è¯åï¼%.1f",score]; |
| | | // } |
| | | cell.grade.text = [dic objectForKey:@"Tag"]; |
| | | cell.title.text = [dic objectForKey:@"Name"]; |
| | | cell.playnum.text = [dic objectForKey:@"WatchCount"]; |
| | | NSNumber *number = [dic objectForKey:@"CommentCount"]; |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11201" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <device id="retina4_7" orientation="portrait"> |
| | | <adaptation id="fullscreen"/> |
| | | </device> |
| | | <dependencies> |
| | | <deployment identifier="iOS"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/> |
| | | <capability name="Constraints to layout margins" minToolsVersion="6.0"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> |
| | | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| | | </dependencies> |
| | | <objects> |
| | |
| | | <rect key="frame" x="0.0" y="0.0" width="320" height="120"/> |
| | | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
| | | <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> |
| | | <frame key="frameInset" width="320" height="119"/> |
| | | <rect key="frame" x="0.0" y="0.0" width="320" height="119.5"/> |
| | | <autoresizingMask key="autoresizingMask"/> |
| | | <subviews> |
| | | <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="ZFN-Bw-nbu"> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="120" id="b1p-Nj-kbQ"/> |
| | | </constraints> |
| | | <rect key="frame" x="0.0" y="0.0" width="320" height="119.5"/> |
| | | </imageView> |
| | | </subviews> |
| | | <constraints> |
| | | <constraint firstItem="ZFN-Bw-nbu" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="-8" id="No1-fx-16O"/> |
| | | <constraint firstAttribute="trailingMargin" secondItem="ZFN-Bw-nbu" secondAttribute="trailing" constant="-8" id="c8I-LX-zZQ"/> |
| | | <constraint firstItem="ZFN-Bw-nbu" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="-8" id="fD1-ZB-RTv"/> |
| | | <constraint firstItem="ZFN-Bw-nbu" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="5cZ-sP-3zT"/> |
| | | <constraint firstAttribute="bottom" secondItem="ZFN-Bw-nbu" secondAttribute="bottom" id="N0W-pM-KrF"/> |
| | | <constraint firstItem="ZFN-Bw-nbu" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="eDt-lD-3Dn"/> |
| | | <constraint firstAttribute="trailing" secondItem="ZFN-Bw-nbu" secondAttribute="trailing" id="w5Z-tQ-3EP"/> |
| | | </constraints> |
| | | </tableViewCellContentView> |
| | | <connections> |
| | | <outlet property="image" destination="ZFN-Bw-nbu" id="i0n-X8-IhM"/> |
| | | <outlet property="imageheight" destination="b1p-Nj-kbQ" id="zAf-vU-f8n"/> |
| | | </connections> |
| | | <point key="canvasLocation" x="380" y="364"/> |
| | | </tableViewCell> |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11201" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <device id="retina4_7" orientation="portrait"> |
| | | <adaptation id="fullscreen"/> |
| | | </device> |
| | | <dependencies> |
| | | <deployment identifier="iOS"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> |
| | | <capability name="Constraints to layout margins" minToolsVersion="6.0"/> |
| | | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| | | </dependencies> |
| | |
| | | <rect key="frame" x="0.0" y="0.0" width="320" height="95"/> |
| | | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
| | | <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> |
| | | <frame key="frameInset" width="320" height="94"/> |
| | | <rect key="frame" x="0.0" y="0.0" width="320" height="94.5"/> |
| | | <autoresizingMask key="autoresizingMask"/> |
| | | <subviews> |
| | | <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="5aF-Ep-qtm"> |
| | | <rect key="frame" x="16" y="11" width="139" height="75"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="139" id="NFt-Kp-UlR"/> |
| | | </constraints> |
| | | </imageView> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cCa-li-8ST"> |
| | | <rect key="frame" x="169" y="50" width="90" height="17"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="65" id="Gy1-Bf-zQn"/> |
| | | <constraint firstAttribute="width" constant="90" id="Gy1-Bf-zQn"/> |
| | | <constraint firstAttribute="height" constant="17" id="KrU-wb-x4S"/> |
| | | </constraints> |
| | | <fontDescription key="fontDescription" type="system" pointSize="14"/> |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ææ¾æ¬¡æ°" translatesAutoresizingMaskIntoConstraints="NO" id="3qg-Ph-BUM"> |
| | | <rect key="frame" x="169" y="72" width="16" height="12"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="12" id="8Cb-OK-kxp"/> |
| | | <constraint firstAttribute="width" constant="16" id="U3W-1Y-yzH"/> |
| | | </constraints> |
| | | </imageView> |
| | | <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="è¯è®ºæ¬¡æ°" translatesAutoresizingMaskIntoConstraints="NO" id="EQm-O5-wDk"> |
| | | <rect key="frame" x="237" y="72" width="15" height="12"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="12" id="32c-tS-iaD"/> |
| | | <constraint firstAttribute="width" constant="15" id="y9H-ZH-yvb"/> |
| | | </constraints> |
| | | </imageView> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1fI-CB-HJe"> |
| | | <rect key="frame" x="189" y="71" width="45" height="14"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="14" id="Lgm-GJ-kMs"/> |
| | | <constraint firstAttribute="width" constant="45" id="WbP-rL-JGj"/> |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uqk-C4-oHd"> |
| | | <rect key="frame" x="256" y="71" width="45" height="14"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="14" id="3Y4-o0-ceP"/> |
| | | <constraint firstAttribute="width" constant="45" id="pbt-nf-94h"/> |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="è´éæ¥ï¼åæ¥ä½ å¨è¿" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gdd-hm-odk"> |
| | | <rect key="frame" x="169" y="16" width="126" height="36"/> |
| | | <fontDescription key="fontDescription" type="system" pointSize="15"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11201" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <device id="retina4_7" orientation="portrait"> |
| | | <adaptation id="fullscreen"/> |
| | | </device> |
| | | <dependencies> |
| | | <deployment identifier="iOS"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> |
| | | <capability name="Constraints to layout margins" minToolsVersion="6.0"/> |
| | | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| | | </dependencies> |
| | | <objects> |
| | | <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> |
| | | <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> |
| | | <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="RegardCell"> |
| | | <rect key="frame" x="0.0" y="0.0" width="300" height="64"/> |
| | | <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="87" id="KGk-i7-Jjw" customClass="RegardCell"> |
| | | <rect key="frame" x="0.0" y="0.0" width="316" height="87"/> |
| | | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
| | | <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> |
| | | <frame key="frameInset" width="300" height="63"/> |
| | | <rect key="frame" x="0.0" y="0.0" width="316" height="86.5"/> |
| | | <autoresizingMask key="autoresizingMask"/> |
| | | <subviews> |
| | | <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="6qD-vQ-d0L"> |
| | | <rect key="frame" x="21" y="11" width="96" height="54"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="96" id="c0D-6E-0wL"/> |
| | | <constraint firstAttribute="height" constant="54" id="hVH-Kt-BaW"/> |
| | | </constraints> |
| | | </imageView> |
| | | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HPe-iw-saK"> |
| | | <rect key="frame" x="236" y="20" width="64" height="30"/> |
| | | <color key="backgroundColor" red="0.81568627450980391" green="0.81568627450980391" blue="0.81568627450980391" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="64" id="1Fg-lr-KHL"/> |
| | |
| | | </state> |
| | | </button> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ulz-ms-0Sg"> |
| | | <rect key="frame" x="122" y="43" width="101" height="17"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="17" id="4RC-pa-elw"/> |
| | | </constraints> |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Aaa-R8-Z9O"> |
| | | <rect key="frame" x="122" y="12" width="101" height="21"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="21" id="KWB-Qd-gRL"/> |
| | | </constraints> |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zlc-kH-vzR"> |
| | | <rect key="frame" x="232" y="0.0" width="84" height="63"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="84" id="clc-5b-kXl"/> |
| | | <constraint firstAttribute="height" constant="63" id="ua6-xs-63b"/> |
| | |
| | | <constraint firstItem="ulz-ms-0Sg" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="32" id="3zh-AL-mwi"/> |
| | | <constraint firstAttribute="trailingMargin" secondItem="HPe-iw-saK" secondAttribute="trailing" id="4e9-iR-3Qy"/> |
| | | <constraint firstItem="HPe-iw-saK" firstAttribute="leading" secondItem="Aaa-R8-Z9O" secondAttribute="trailing" constant="13" id="GnN-x0-MXj"/> |
| | | <constraint firstItem="6qD-vQ-d0L" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="-3" id="MR0-PR-gqe"/> |
| | | <constraint firstItem="6qD-vQ-d0L" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" id="MR0-PR-gqe"/> |
| | | <constraint firstItem="Aaa-R8-Z9O" firstAttribute="leading" secondItem="6qD-vQ-d0L" secondAttribute="trailing" constant="5" id="PNH-Mf-Uaw"/> |
| | | <constraint firstItem="HPe-iw-saK" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="9" id="VcN-rh-D1R"/> |
| | | <constraint firstItem="6qD-vQ-d0L" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="-3" id="cdw-jC-tag"/> |
| | | <constraint firstItem="6qD-vQ-d0L" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="5" id="cdw-jC-tag"/> |
| | | <constraint firstItem="Aaa-R8-Z9O" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="1" id="eQC-F3-tAo"/> |
| | | <constraint firstItem="HPe-iw-saK" firstAttribute="leading" secondItem="ulz-ms-0Sg" secondAttribute="trailing" constant="13" id="mRf-sa-agb"/> |
| | | <constraint firstItem="ulz-ms-0Sg" firstAttribute="leading" secondItem="6qD-vQ-d0L" secondAttribute="trailing" constant="5" id="p49-cf-uzL"/> |
| | |
| | | <outlet property="expandbutton" destination="zlc-kH-vzR" id="eTp-Jd-SE5"/> |
| | | <outlet property="image" destination="6qD-vQ-d0L" id="27L-Zh-6X2"/> |
| | | </connections> |
| | | <point key="canvasLocation" x="41" y="70.5"/> |
| | | </tableViewCell> |
| | | </objects> |
| | | </document> |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> |
| | | <device id="retina4_7" orientation="portrait"> |
| | | <adaptation id="fullscreen"/> |
| | | </device> |
| | | <dependencies> |
| | | <deployment identifier="iOS"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/> |
| | | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> |
| | | <capability name="Constraints to layout margins" minToolsVersion="6.0"/> |
| | | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| | | </dependencies> |
| | |
| | | <rect key="frame" x="0.0" y="0.0" width="308" height="48"/> |
| | | <autoresizingMask key="autoresizingMask"/> |
| | | <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="hxS-ku-prd" id="zsK-NQ-es0"> |
| | | <frame key="frameInset" width="308" height="47"/> |
| | | <rect key="frame" x="0.0" y="0.0" width="308" height="47.5"/> |
| | | <autoresizingMask key="autoresizingMask"/> |
| | | <subviews> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="ææºåå¨:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="65E-UE-SGP"> |
| | | <rect key="frame" x="21" y="13.5" width="84" height="20.5"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="84" id="cii-bg-PVY"/> |
| | | </constraints> |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="æ»éï¼" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AXi-KE-4Ek"> |
| | | <rect key="frame" x="106" y="18" width="39" height="14.5"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" constant="39" id="YBZ-gN-by8"/> |
| | | </constraints> |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="120.56" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lR6-jc-ImR"> |
| | | <rect key="frame" x="138" y="18" width="38.5" height="14.5"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" relation="lessThanOrEqual" constant="40" id="2iq-At-Dwx"/> |
| | | <constraint firstAttribute="width" relation="lessThanOrEqual" constant="60" id="2iq-At-Dwx"/> |
| | | </constraints> |
| | | <fontDescription key="fontDescription" type="system" pointSize="12"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="å¯ç¨ï¼" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9h4-IH-alq"> |
| | | <rect key="frame" x="194" y="18" width="37" height="14.5"/> |
| | | <fontDescription key="fontDescription" type="system" pointSize="12"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="102.66" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Dhj-ZD-g8y"> |
| | | <rect key="frame" x="224" y="18" width="39" height="14.5"/> |
| | | <constraints> |
| | | <constraint firstAttribute="width" relation="lessThanOrEqual" constant="39" id="b5m-Gq-33R"/> |
| | | <constraint firstAttribute="width" relation="lessThanOrEqual" constant="60" id="b5m-Gq-33R"/> |
| | | </constraints> |
| | | <fontDescription key="fontDescription" type="system" pointSize="12"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="G" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jeZ-l7-lnS"> |
| | | <rect key="frame" x="263" y="18" width="9" height="14.5"/> |
| | | <fontDescription key="fontDescription" type="system" pointSize="12"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="G" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nDB-3p-Y6P"> |
| | | <rect key="frame" x="176.5" y="18" width="9" height="14.5"/> |
| | | <fontDescription key="fontDescription" type="system" pointSize="12"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | |
| | | [self.scrollView scrollRectToVisible:CGRectMake(0, 0, KScreenW, KScreenH-kNavigationBarH-40) animated:NO]; |
| | | [self.view addSubview:self.scrollView]; |
| | | |
| | | //æ¨è页é¢çè§å¾ |
| | | if (!recommendation) { |
| | | UICollectionViewFlowLayout *flow = [[UICollectionViewFlowLayout alloc]init]; |
| | | //æå®å¸å±æ¹å¼ä¸ºåç´ |
| | | flow.scrollDirection = UICollectionViewScrollDirectionVertical; |
| | | flow.minimumLineSpacing = 10;//æå°è¡é´è·(å½åç´å¸å±æ¶æ¯è¡é´è·ï¼å½æ°´å¹³å¸å±æ¶å¯ä»¥ç解为åé´è·) |
| | | flow.minimumInteritemSpacing = 10;//两个åå
æ ¼ä¹é´çæå°é´è· |
| | | recommendation=[[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, KScreenW, KScreenH-kNavigationBarH-40) collectionViewLayout:flow]; |
| | | } |
| | | recommendation.delegate=self; |
| | | recommendation.dataSource=self; |
| | | recommendation.backgroundColor=kGlobalBackgroundColor; |
| | | //注åcell |
| | | [recommendation registerNib:[UINib nibWithNibName:@"recommentCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"recommentCollectionViewCell"]; |
| | | //设置轮æå¾çhead |
| | | [recommendation registerNib:[UINib nibWithNibName:@"shufflingCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"shufflingCollectionReusableView"]; |
| | | //设置å类头çhead |
| | | [recommendation registerNib:[UINib nibWithNibName:@"HeaderCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"HeaderCollectionReusableView"]; |
| | | |
| | | //æ¨èè§å¾ |
| | | [self.scrollView addSubview:recommendation]; |
| | | //ç»collectionViewè®¾ç½®ä¸æå·æ° |
| | | recommendation.mj_header=[MJRefreshNormalHeader headerWithRefreshingBlock:^{ |
| | | //å¼å§å·æ° |
| | | [recommendation.mj_header beginRefreshing]; |
| | | //ç½ç»è¯·æ± |
| | | [self getVideoBanner]; |
| | | [self VideoList]; |
| | | }]; |
| | | |
| | | // //æ¨è页é¢çè§å¾ |
| | | // if (!recommendation) { |
| | | // UICollectionViewFlowLayout *flow = [[UICollectionViewFlowLayout alloc]init]; |
| | | // //æå®å¸å±æ¹å¼ä¸ºåç´ |
| | | // flow.scrollDirection = UICollectionViewScrollDirectionVertical; |
| | | // flow.minimumLineSpacing = 10;//æå°è¡é´è·(å½åç´å¸å±æ¶æ¯è¡é´è·ï¼å½æ°´å¹³å¸å±æ¶å¯ä»¥ç解为åé´è·) |
| | | // flow.minimumInteritemSpacing = 10;//两个åå
æ ¼ä¹é´çæå°é´è· |
| | | // recommendation=[[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, KScreenW, KScreenH-kNavigationBarH-40) collectionViewLayout:flow]; |
| | | // } |
| | | // recommendation.delegate=self; |
| | | // recommendation.dataSource=self; |
| | | // recommendation.backgroundColor=kGlobalBackgroundColor; |
| | | // //注åcell |
| | | // [recommendation registerNib:[UINib nibWithNibName:@"recommentCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"recommentCollectionViewCell"]; |
| | | // //设置轮æå¾çhead |
| | | // [recommendation registerNib:[UINib nibWithNibName:@"shufflingCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"shufflingCollectionReusableView"]; |
| | | // //设置å类头çhead |
| | | // [recommendation registerNib:[UINib nibWithNibName:@"HeaderCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"HeaderCollectionReusableView"]; |
| | | // |
| | | // //æ¨èè§å¾ |
| | | // [self.scrollView addSubview:recommendation]; |
| | | // //ç»collectionViewè®¾ç½®ä¸æå·æ° |
| | | // recommendation.mj_header=[MJRefreshNormalHeader headerWithRefreshingBlock:^{ |
| | | // //å¼å§å·æ° |
| | | // [recommendation.mj_header beginRefreshing]; |
| | | // //ç½ç»è¯·æ± |
| | | // [self getVideoBanner]; |
| | | // [self VideoList]; |
| | | // }]; |
| | | // |
| | | //鿍èçé¢è§å¾ |
| | | for (int i=1; i<_SpeciesAry.count; i++) { |
| | | for (int i=0; i<_SpeciesAry.count; i++) { |
| | | UITableView *scollerTableView=[[UITableView alloc] initWithFrame:CGRectMake(KScreenW*i, 40, KScreenW, KScreenH-kNavigationBarH-80) style:UITableViewStylePlain]; |
| | | scollerTableView.tag=800+i; |
| | | scollerTableView.delegate=self; |
| | |
| | | [self.scrollView addSubview:scollerTableView]; |
| | | } |
| | | //馿¬¡å è½½è§å¾æ¶ï¼éè¦å è½½é¦é¡µçæ°æ® |
| | | [recommendation.mj_header beginRefreshing]; |
| | | // [recommendation.mj_header beginRefreshing]; |
| | | SpeciesNumber = 0; |
| | | UITableView *tableview = [self.view viewWithTag:800 + SpeciesNumber ]; |
| | | _Species = [NSString stringWithFormat:@"%@",[[_SpeciesAry objectAtIndex:SpeciesNumber] objectForKey:@"Id"]]; |
| | | typeNumber=1; |
| | | [self.view bringSubviewToFront:_segView]; |
| | | [tableview.mj_header beginRefreshing]; |
| | | } |
| | | |
| | | /** |
| | |
| | | //è·ååç±» |
| | | NSMutableArray *ar = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | for (int i = 0; i<_SpeciesAry.count; i++) { |
| | | if (i == 0) { |
| | | _Species = [[_SpeciesAry objectAtIndex:i] objectForKey:@"Id"]; |
| | | } |
| | | [ar addObject:[[_SpeciesAry objectAtIndex:i] objectForKey:@"Name"]]; |
| | | NSLog(@"%@",[[_SpeciesAry objectAtIndex:i] objectForKey:@"Name"]); |
| | | } |
| | | NSLog(@"%@",ar); |
| | | |
| | | _segmentedControl= [[HMSegmentedControl alloc] initWithSectionTitles:ar]; |
| | | _segmentedControl.backgroundColor=kGlobalMainColor; |
| | | _segmentedControl.selectionIndicatorHeight = 2.0f; |
| | |
| | | weakSelf.segView.selectedSegmentIndex=0; |
| | | weakSelf.Species = [NSString stringWithFormat:@"%@",[[weakSelf.SpeciesAry objectAtIndex:SpeciesNumber] objectForKey:@"Id"]]; |
| | | [weakSelf.scrollView scrollRectToVisible:CGRectMake(KScreenW * index, kNavigationBarH+40, KScreenW, KScreenH-kNavigationBarH-40) animated:YES]; |
| | | if (index==0) { |
| | | [self.view sendSubviewToBack:_segView]; |
| | | if (_CycleScrollData==nil&&_hotListData==nil) { |
| | | //æ°æ®ä¸åå¨,è¯·æ±æ°æ® |
| | | [recommendation.mj_header beginRefreshing]; |
| | | }else{ |
| | | //æ°æ®åå¨ï¼ç´æ¥å è½½,ä¸éè¦å¤ç |
| | | } |
| | | }else{ |
| | | // if (index==0) { |
| | | // [self.view sendSubviewToBack:_segView]; |
| | | // if (_CycleScrollData==nil&&_hotListData==nil) { |
| | | // //æ°æ®ä¸åå¨,è¯·æ±æ°æ® |
| | | // [recommendation.mj_header beginRefreshing]; |
| | | // }else{ |
| | | // //æ°æ®åå¨ï¼ç´æ¥å è½½,ä¸éè¦å¤ç |
| | | // } |
| | | // }else{ |
| | | [self.view bringSubviewToFront:_segView]; |
| | | UITableView *tableView=[self.view viewWithTag:800+SpeciesNumber]; |
| | | NSString *str=[NSString stringWithFormat:@"ValueX%@Y%ldZ%ld",weakSelf.Species,(long)SpeciesNumber,(long)typeNumber]; |
| | |
| | | //å¦ææ°æ®ä¸åå¨å°±è¯·æ±æ°æ® |
| | | [tableView.mj_header beginRefreshing]; |
| | | } |
| | | } |
| | | // } |
| | | }]; |
| | | [self.view addSubview:_segmentedControl]; |
| | | |
| | |
| | | /** |
| | | * 请æ±åç±» |
| | | */ |
| | | |
| | | - (void)getDataFirstChildType{ |
| | | [[YTHNetInterface startInterface] getFirstChildTypeWithUid:[YTHsharedManger startManger].Uid withParentId:self.Id withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | |
| | | _SpeciesAry = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | } |
| | | _SpeciesAry = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | [_SpeciesAry removeObjectAtIndex:0]; |
| | | NSLog(@"%@",_SpeciesAry); |
| | | _Species = [NSString stringWithFormat:@"%@",[[_SpeciesAry objectAtIndex:0] objectForKey:@"Id"]]; |
| | | _CategoryType=[NSString stringWithFormat:@"%@",[[_SpeciesAry objectAtIndex:0] objectForKey:@"CategoryType"]]; |
| | | //ç§ç±»å¸å± |
| | | |
| | | [self getaddView]; |
| | | }else{ |
| | | //æ¥é |
| | |
| | | } |
| | | /** |
| | | * è·å大åç±»æ¨èBanner |
| | | */ |
| | | **/ |
| | | -(void)getVideoBanner{ |
| | | [[YTHNetInterface startInterface] getRecommendCategoryVideoBannerWithUid:[YTHsharedManger startManger].Uid withVideoType:self.Id withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | |
| | | }]; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * è·å大åç±»æ¨èçæ¦ |
| | | */ |
| | | |
| | | -(void)VideoList{ |
| | | [[YTHNetInterface startInterface] getRecommendCategoryVideoListWithUid:[YTHsharedManger startManger].Uid withVideoType:self.Id withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | |
| | | } |
| | | } |
| | | NSString *str=[NSString stringWithFormat:@"ValueX%@Y%ldZ%ld",_Species,(long)SpeciesNumber,(long)typeNumber]; |
| | | NSArray *_dataAry=[_dataDic objectForKey:str]; |
| | | NSArray *_dataAry; |
| | | searchTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"searchTableViewCellID"]; |
| | | |
| | | if ([str isEqual:[NSNull null]]) { |
| | | str = @""; |
| | | return cell; |
| | | }else{ |
| | | _dataAry=[_dataDic objectForKey:str]; |
| | | if (indexPath.row >= _dataAry.count) { |
| | | return cell; |
| | | } |
| | | } |
| | | //è·åå°è¯¥cellçæ°æ® |
| | | XYRVideoInfoModel *model; |
| | | if(LoadGoogleAD){//å è½½äºè°·æå¹¿åç |
| | |
| | | @property (nonatomic, strong) NSString *showurl; //PPTVæ¥æº |
| | | @property (nonatomic, assign) CGRect playerFrame; |
| | | @property (nonatomic, assign) CGRect cloudPlayerFrame; |
| | | |
| | | @property (nonatomic, strong) NSDate *startTime; |
| | | @end |
| | | |
| | | @implementation XYRDetailViewController |
| | |
| | | |
| | | - (void)viewDidLoad { |
| | | [super viewDidLoad]; |
| | | self.startTime = [NSDate date]; |
| | | //å®ç°ç½ç»çæ§ç代ç |
| | | ApplicationDelegate.YNetdelegateRecommend = self; |
| | | //å®ç°åºå»åºç¨æè
åå°åºç¨çå¤ç |
| | |
| | | */ |
| | | - (IBAction)backToMainViewController:(id)sender { |
| | | [self backToRootView]; |
| | | } |
| | | |
| | | |
| | | - (void)viewWillLayoutSubviews{ |
| | | [super viewWillLayoutSubviews]; |
| | | [self.collectionView.collectionViewLayout invalidateLayout]; |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * åå§å详æ
è§å¾ |
| | | */ |
| | | |
| | | -(void)detailedInformationView{ |
| | | UICollectionViewFlowLayout *flow = [[UICollectionViewFlowLayout alloc]init]; |
| | | //æå®å¸å±æ¹å¼ä¸ºåç´ |
| | |
| | | |
| | | //å建CollectionViewå¹¶æå®å¸å±å¯¹è±¡ |
| | | if ([UIScreen mainScreen].bounds.size.height>480.0f) {//iphone4sä»¥ä¸ |
| | | self.collectionView = [[UICollectionView alloc]initWithFrame:CGRectMake(0, 0, KScreenW, _scrollView.frame.size.height) collectionViewLayout:flow]; |
| | | self.collectionView = [[UICollectionView alloc]initWithFrame:CGRectMake(0, 0, KScreenW, _scrollView.frame.size.height ) collectionViewLayout:flow]; |
| | | }else{ |
| | | self.collectionView = [[UICollectionView alloc]initWithFrame:CGRectMake(0, 0, KScreenW, _scrollView.frame.size.height-50) collectionViewLayout:flow]; |
| | | } |
| | |
| | | _MuneBar.delegate = self; |
| | | _MuneBar.center = CGPointMake(((KScreenW/3)-80)/2, 22); |
| | | |
| | | [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]]; |
| | | // [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]]; |
| | | [self.collectionView reloadData]; |
| | | |
| | | } |
| | | } |
| | | //é»è®¤ç½ç»æ
åµ |
| | |
| | | NSLog(@"ééæ´å¤"); |
| | | _gather++; |
| | | //å·æ°è§å¾ |
| | | [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | // [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | [self.collectionView reloadData]; |
| | | |
| | | }else {//广ç¹é广å |
| | | GDTNativeAdData * info =nativeArray[sender.tag-523]; |
| | | [_nativeAd clickAd:info]; |
| | |
| | | * è§é¢çææ¾é¡µé¢è¢«è§¦åï¼è·³è½¬å°å
¨å±ï¼éè¿ç½é¡µè§çå½±ç |
| | | */ |
| | | -(void)loadWebView:(UIButton *)sender{//è¿éè¿éè¦å¤ææ¯å¦å·²ç»è·åå°ææ¾é¡µé¢çè¯¦ç»æ°æ® |
| | | NSDate *date = [NSDate date]; |
| | | NSTimeInterval seconds = [date timeIntervalSinceDate:self.startTime]; |
| | | NSLog(@"%f",seconds); |
| | | if (seconds < 1.5) { |
| | | return; |
| | | } |
| | | self.startTime = date; |
| | | //åæ¶textfieldç第ä¸ååº |
| | | [_textField resignFirstResponder]; |
| | | if(isCollectNum == 0){ |
| | |
| | | targetIndex = temp; |
| | | } |
| | | } |
| | | [_collectionView reloadItemsAtIndexPaths:@[targetIndex]]; |
| | | // [_collectionView reloadItemsAtIndexPaths:@[targetIndex]]; |
| | | [_collectionView reloadData]; |
| | | } |
| | | } |
| | | |
| | |
| | | if (selfweak.DetailModel.Data.ShowType==1) { //æ¯ç»¼èº |
| | | if (selfweak.VideoDetailList.count>6*_gather && isCollectNum > 6*_gather) { |
| | | _gather++; |
| | | [selfweak.collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | // [selfweak.collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | [self.collectionView reloadData]; |
| | | |
| | | } |
| | | }else{ //䏿¯ç»¼èº |
| | | if (selfweak.VideoDetailList.count>10*_gather && isCollectNum >= 10*_gather) { |
| | | _gather++; |
| | | [selfweak.collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | // [selfweak.collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | [self.collectionView reloadData]; |
| | | |
| | | } |
| | | } |
| | | if(isCollectNum < selfweak.VideoDetailList.count){ |
| | |
| | | lastIndex = temp; |
| | | } |
| | | } |
| | | [selfweak.collectionView reloadItemsAtIndexPaths:@[targetIndex,lastIndex]]; |
| | | // [selfweak.collectionView reloadItemsAtIndexPaths:@[targetIndex,lastIndex]]; |
| | | [_collectionView reloadData]; |
| | | |
| | | [selfweak PPTVplay:[NSString stringWithFormat:@"%d",isCollectNum-1] WithBoolInit:selfweak.isPPTVSuccess]; |
| | | } |
| | | return isCollectNum-1; |
| | |
| | | }; |
| | | |
| | | _pptvview.rload = ^(){ |
| | | [selfweak.collectionView reloadData]; |
| | | dispatch_async(dispatch_get_main_queue(), ^{ |
| | | [selfweak.collectionView reloadData]; |
| | | }); |
| | | }; |
| | | |
| | | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(selfchose:) name:@"selfchose" object:nil]; |
| | |
| | | [self PPTVplay:[NSString stringWithFormat:@"%d",isCollectNum-1] WithBoolInit:_isPPTVSuccess]; |
| | | }else if([self.NewResource intValue]==18){ //ä¹è§ææ¾å¨ |
| | | [self YKPlay:[NSString stringWithFormat:@"%d",isCollectNum-1]]; |
| | | [_collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | // [_collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | [self.collectionView reloadData]; |
| | | |
| | | }else{ |
| | | [self startToPlay:[NSString stringWithFormat:@"%d",isCollectNum-1]]; |
| | | } |
| | |
| | | * @param resourceId 第å é |
| | | */ |
| | | -(void)getVideoDetailViewWithMovieId:(NSString *)movieid WithThirdType:(NSString *)thirdtype WithResourceId:(NSString *)resourceId{ |
| | | NSLog(@"%@",self.Model); |
| | | //æç¤ºæ°æ®å è½½ |
| | | [SVProgressHUD showWithStatus:@"å è½½ä¸"]; |
| | | [[YTHNetInterface startInterface] getVoideoDetailWithUid:[YTHsharedManger startManger].Uid withLoginUid:[[NSUserDefaults standardUserDefaults] objectForKey:@"LoginUid"] withId:movieid withThirdType:thirdtype withSystem:@"1" WithResourceId:resourceId withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | |
| | | }else{ |
| | | displayInsIntroduction=NO; |
| | | } |
| | | [self.collectionView reloadData]; |
| | | dispatch_async(dispatch_get_main_queue(), ^{ |
| | | [self.collectionView reloadData]; |
| | | |
| | | }); |
| | | //夿Modelæ¯å¦å·²ç»å è½½äºæä¸é¢å¾ç |
| | | if(self.Model.Hpicture==nil){ |
| | | [self.image setYthImageWithURL:self.DetailModel.Data.Hpicture placeholderImage:[UIImage imageNamed:@"é»è®¤å è½½å¾ç"]]; |
| | |
| | | //æ°æ®å è½½æå |
| | | [SVProgressHUD dismiss]; |
| | | }else{ |
| | | NSLog(@"%@",error); |
| | | //æç¤ºç¨æ·é误 |
| | | [SVProgressHUD showErrorWithStatus:@"å 载失败ï¼"]; |
| | | |
| | | } |
| | | }]; |
| | | } |
| | |
| | | //ä¼é
·å 载为noï¼ |
| | | self.YKloadSuccess=NO; |
| | | } |
| | | [_collectionView reloadData]; |
| | | dispatch_async(dispatch_get_main_queue(), ^{ |
| | | [_collectionView reloadData]; |
| | | |
| | | }); |
| | | |
| | | //æç¤ºè§é¢æºåæ¢æå |
| | | [SVProgressHUD dismiss]; |
| | | }else{ |
| | |
| | | * è·åè§é¢çç¸å
³è§é¢ä¿¡æ¯ |
| | | * |
| | | * @param MovieId è§é¢çid |
| | | */ |
| | | */ |
| | | -(void)getRelativeVideosWithVideoId:(NSString *)MovieId{ |
| | | [[YTHNetInterface startInterface] getRelativeVideosWithUid:[YTHsharedManger startManger].Uid withVideoId:MovieId withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | _RelativeVideos=[[(NSDictionary*)result objectForKey:@"Data"] objectForKey:@"data"]; |
| | | //å·æ°ç叿µ |
| | | [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:3]]; |
| | | // dispatch_sync(dispatch_get_main_queue(), ^{ |
| | | // [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:3]]; |
| | | [self.collectionView reloadData]; |
| | | // }); |
| | | }else{ |
| | | |
| | | } |
| | |
| | | if (isSuccessful) { |
| | | _GuessYoulike=[[(NSDictionary*)result objectForKey:@"Data"] objectForKey:@"data"]; |
| | | //å·æ°ç叿µ |
| | | [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:4]]; |
| | | // dispatch_sync(dispatch_get_main_queue(), ^{ |
| | | // [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:4]]; |
| | | [self.collectionView reloadData]; |
| | | |
| | | // }); |
| | | }else{ |
| | | |
| | | } |
| | |
| | | if (isSuccessful) { |
| | | _PeopleSeeVideo=[[(NSDictionary*)result objectForKey:@"Data"] objectForKey:@"data"]; |
| | | //å·æ°ç叿µ |
| | | [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:5]]; |
| | | // dispatch_sync(dispatch_get_main_queue(), ^{ |
| | | // [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:5]]; |
| | | [self.collectionView reloadData]; |
| | | |
| | | |
| | | // }); |
| | | }else{ |
| | | } |
| | | }]; |
| | |
| | | if (isSuccessful) { |
| | | [_textField setText:@""]; |
| | | [_textField resignFirstResponder]; |
| | | [self reloadCommentView]; |
| | | [_commenttableview setContentOffset:CGPointMake(0, 0) animated:YES]; |
| | | [self reloadCommentView]; |
| | | |
| | | [SVProgressHUD showSuccessWithStatus:@"è¯è®ºæå"]; |
| | | |
| | | }else{ |
| | | [SVProgressHUD showErrorWithStatus:@"åé失败ï¼"]; |
| | | } |
| | |
| | | commentPage=commentPage+(tempArr.count)%30; |
| | | } |
| | | //å·æ°è¯è®º |
| | | [_commenttableview reloadData]; |
| | | dispatch_async(dispatch_get_main_queue(), ^{ |
| | | [_commenttableview reloadData]; |
| | | }); |
| | | //å·æ°è¯è®ºæé®ä¸çè¯è®ºæ° |
| | | NSString *commentNub=[NSString stringWithFormat:@"è¯ è®º(%ld)",(long)_DetailModel.Data.CommentCount]; |
| | | self.segmentedControl.sectionTitles = @[@"详 æ
", commentNub]; |
| | |
| | | NSInteger page = scrollView.contentOffset.x / KScreenW; |
| | | |
| | | [self.scrollView scrollRectToVisible:CGRectMake(KScreenW * page, KScreenW/48*27+35, KScreenW, KScreenH-(KScreenW/48*27)-35) animated:YES]; |
| | | |
| | | [self.segmentedControl setSelectedSegmentIndex:page animated:YES]; |
| | | |
| | | //èèå°ç¨æ·å¨è¾å
¥çæ¶åçªç¶åæ¢å°è¯¦æ
ï¼è¿ä¸ªæ¶åå°±éè¦åæ¶è¯è®ºæ¡ç第ä¸ååº |
| | | if(page==0){ |
| | | [_textField resignFirstResponder]; |
| | |
| | | } |
| | | isCollectNum=(int)indexPath.row +1; |
| | | if(lastIndex.row == 0 || indexPath.row == 0 || !lastIndex){ //å¨iphone6以ä¸å·æ°row==0æ¶æ æçç¹æ®å¤ç |
| | | [_collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | // [_collectionView reloadSections:[NSIndexSet indexSetWithIndex:1]]; |
| | | [self.collectionView reloadData]; |
| | | |
| | | }else{ |
| | | [_collectionView reloadItemsAtIndexPaths:indexPatharr]; |
| | | // [_collectionView reloadItemsAtIndexPaths:indexPatharr]; |
| | | [_collectionView reloadData]; |
| | | |
| | | } |
| | | |
| | | //å·æ°ææ¾å¨ |
| | |
| | | case 0:{ |
| | | newADCollectionViewCell *cell; |
| | | cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"newADCollectionViewCell" forIndexPath:indexPath]; |
| | | if (nativeArray.count <= 3) { |
| | | return cell; |
| | | } |
| | | GDTNativeAdData *info=nativeArray[3]; |
| | | cell.ADtitle.text=[info.properties objectForKey:GDTNativeAdDataKeyTitle]; |
| | | cell.ADtitle.backgroundColor=[UIColor clearColor]; |
| | |
| | | break; |
| | | case 1:{ |
| | | GroupCollectionViewCell *cell; |
| | | if (_VideoDetailList.count <= indexPath.row) { |
| | | return cell; |
| | | } |
| | | cell.tag=indexPath.row+2000; |
| | | cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"GroupCellID" forIndexPath:indexPath]; |
| | | cell.selectCollect.titleLabel.lineBreakMode=NSLineBreakByTruncatingTail; |
| | |
| | | } |
| | | break; |
| | | default:{ |
| | | |
| | | GuessYouLikeCollectionViewCell *cell; |
| | | if (indexPath.section==3) { |
| | | //ç¸å
³è§é¢ |
| | | if (indexPath.row >= _RelativeVideos.count) { |
| | | return cell; |
| | | } |
| | | VideosDataModel=[XYRVideoInfoModel yy_modelWithDictionary:_RelativeVideos[indexPath.row]]; |
| | | }else if (indexPath.section==4){ |
| | | if (indexPath.row >= _GuessYoulike.count) { |
| | | return cell; |
| | | } |
| | | //çä½ åæ¬¢ |
| | | VideosDataModel=[XYRVideoInfoModel yy_modelWithDictionary:_GuessYoulike[indexPath.row]]; |
| | | }else{ |
| | | if (indexPath.row >= _PeopleSeeVideo.count) { |
| | | return cell; |
| | | } |
| | | //大家é½å¨ç |
| | | VideosDataModel=[XYRVideoInfoModel yy_modelWithDictionary:_PeopleSeeVideo[indexPath.row]]; |
| | | } |
| | | GuessYouLikeCollectionViewCell *cell; |
| | | cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"GuessYouLikeCollectionViewCell" forIndexPath:indexPath]; |
| | | cell.backgroundColor=[UIColor whiteColor]; |
| | | cell.MovieImage.clipsToBounds=YES; |
| | |
| | | }else{ |
| | | [nativeArray addObjectsFromArray:nativeAdDataArray]; |
| | | } |
| | | [self.collectionView reloadData]; |
| | | dispatch_async(dispatch_get_main_queue(), ^{ |
| | | [self.collectionView reloadData]; |
| | | }); |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 顶鍿¨è广å |
| | | */ |
| | | - (void)getHomeAdWithUid:(NSString *)uid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block; |
| | | |
| | | - (void)getHomeAdWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block; |
| | | - (void)getRecommendCategoryVideoBannerWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block; |
| | | /* |
| | | //é¦é¡µåºé¨ææ |
| | | */ |
| | | -(void)getHotStarMainList:(NSString *)uid WithSystem:(NSString *)system WithBlock:(YthNetWorkBlock)block; |
| | | /** |
| | | * æ¨èåç±» |
| | | */ |
| | | - (void)getHomeTypeWithUid:(NSString *)uid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block; |
| | | - (void)getHomeTypeWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block; |
| | | |
| | | /** |
| | | * ç¹å»ä¸ä¼ åç°é¡µé¢ç广å |
| | |
| | | */ |
| | | -(void)getCollectListWithUid:(NSString *)uid WithSystem:(NSString *)system withPage:(NSString *)page withBlock:(YthNetWorkBlock)block; |
| | | |
| | | |
| | | //ç²¾é |
| | | -(void)getVideoClassWithUid:(NSString *)uid WithSystem:(NSString *)system withBlock:(YthNetWorkBlock)block; |
| | | |
| | | @end |
| | |
| | | - (void)postClassRequestDataWith:(NSMutableDictionary *)dic withBlock:(YthNetWorkBlock)block{ |
| | | |
| | | NSString *url = [NSString stringWithFormat:@"%@/class",domainHTTP]; |
| | | |
| | | NSLog(@"%@",url); |
| | | [self mangerPostWithURL:url WithMutableDictionary:dic withBlock:block]; |
| | | } |
| | | |
| | |
| | | - (void)postshopRequestDataWith:(NSMutableDictionary *)dic withBlock:(YthNetWorkBlock)block{ |
| | | |
| | | NSString *url = [NSString stringWithFormat:@"%@/shop",domainHTTP]; |
| | | |
| | | [self mangerPostWithURL:url WithMutableDictionary:dic withBlock:block]; |
| | | } |
| | | - (void)postVideoClassRequestDataWith:(NSMutableDictionary *)dic withBlock:(YthNetWorkBlock)block{ |
| | | |
| | | NSString *url = [NSString stringWithFormat:@"%@/class",domainHTTP]; |
| | | |
| | | [self mangerPostWithURL:url WithMutableDictionary:dic withBlock:block]; |
| | | } |
| | |
| | | |
| | | |
| | | #pragma mark 顶鍿¨è广å |
| | | - (void)getHomeAdWithUid:(NSString *)uid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block{ |
| | | NSMutableDictionary *dic = [YTHNetdata HomeAdWithUid:uid withSystem:system ]; |
| | | - (void)getHomeAdWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block{ |
| | | NSMutableDictionary *dic = [YTHNetdata HomeAdWithUid:uid vtid:vtid withSystem:system ]; |
| | | |
| | | [self postRecommendRequestDataWith:dic withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | |
| | | } |
| | | }]; |
| | | } |
| | | |
| | | |
| | | //getRecommendCategoryVideoBanner |
| | | - (void)getRecommendCategoryVideoBannerWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block{ |
| | | NSMutableDictionary *dic = [YTHNetdata getRecommendCategoryVideoBannerWithUid:uid vtid:vtid withSystem:system ]; |
| | | |
| | | [self postClassRequestDataWith:dic withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *data = (NSDictionary *)result; |
| | | |
| | | block(TRUE , data , nil); |
| | | |
| | | }else{ |
| | | |
| | | block(FALSE , nil , error); |
| | | } |
| | | }]; |
| | | } |
| | | #pragma mark æ¨èåç±» |
| | | - (void)getHomeTypeWithUid:(NSString *)uid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block{ |
| | | NSMutableDictionary *dic = [YTHNetdata HomeTypeWithUid:uid withSystem:system ]; |
| | | - (void)getHomeTypeWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system withBlock:(YthNetWorkBlock)block{ |
| | | NSMutableDictionary *dic = [YTHNetdata HomeTypeWithUid:uid vtid:vtid withSystem:system ]; |
| | | |
| | | [self postRecommendRequestDataWith:dic withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | |
| | | } |
| | | }]; |
| | | } |
| | | #pragma mark - é¦é¡µåºé¨ææ |
| | | -(void)getHotStarMainList:(NSString *)uid WithSystem:(NSString *)system WithBlock:(YthNetWorkBlock)block{ |
| | | |
| | | NSMutableDictionary *dic=[YTHNetdata getHotStarMainList:uid WithSystem:system]; |
| | | [self postFoundHomeRequestDataWith:dic withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *data = (NSDictionary *)result; |
| | | block(TRUE , data , nil); |
| | | }else{ |
| | | block(FALSE , nil , error); |
| | | } |
| | | }]; |
| | | } |
| | | |
| | | #pragma mark è·å¾ åç° ç徿 |
| | | -(void)getFoundHomeMapchar:(NSString *)uid WithSystem:(NSString *)system WithBlock:(YthNetWorkBlock)block{ |
| | |
| | | } |
| | | }]; |
| | | } |
| | | |
| | | #pragma mark - ç²¾é |
| | | -(void)getVideoClassWithUid:(NSString *)uid WithSystem:(NSString *)system withBlock:(YthNetWorkBlock)block{ |
| | | NSMutableDictionary *dic = [YTHNetdata videoClassWithUid:uid withSystem:system]; |
| | | [self postFoundSpecialRequestDataWith:dic withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *data = (NSDictionary *)result; |
| | | block(TRUE , data , nil); |
| | | }else{ |
| | | block(FALSE , nil , error); |
| | | } |
| | | }]; |
| | | |
| | | |
| | | // [self postVideoClassRequestDataWith:dic withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | // if (isSuccessful) { |
| | | // NSDictionary *data = (NSDictionary *)result; |
| | | // block(TRUE , data , nil); |
| | | // }else{ |
| | | // block(FALSE , nil , error); |
| | | // } |
| | | // }]; |
| | | } |
| | | @end |
| | |
| | | /** |
| | | * 顶鍿¨è广å |
| | | */ |
| | | + (NSMutableDictionary *)HomeAdWithUid:(NSString *)uid withSystem:(NSString *)system; |
| | | |
| | | + (NSMutableDictionary *)HomeAdWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system; |
| | | + (NSMutableDictionary *)getRecommendCategoryVideoBannerWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system; |
| | | /** |
| | | * æ¨èåç±» |
| | | */ |
| | | + (NSMutableDictionary *)HomeTypeWithUid:(NSString *)uid withSystem:(NSString *)system; |
| | | |
| | | + (NSMutableDictionary *)HomeTypeWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system; |
| | | //é¦é¡µåºé¨ææ |
| | | +(NSMutableDictionary *)getHotStarMainList:(NSString *)uid WithSystem:(NSString *)system; |
| | | |
| | | /** |
| | | * æ´å¤è§é¢ |
| | |
| | | */ |
| | | +(NSMutableDictionary *)getCollectListWithUid:(NSString *)uid WithSystem:(NSString *)system withPage:(NSString *)page; |
| | | |
| | | //é¦é¡µç²¾é |
| | | + (NSMutableDictionary *)videoClassWithUid:(NSString *)uid withSystem:(NSString *)system; |
| | | |
| | | @end |
| | |
| | | //===================================== |
| | | |
| | | #pragma mark 顶鍿¨è广å |
| | | + (NSMutableDictionary *)HomeAdWithUid:(NSString *)uid withSystem:(NSString *)system{ |
| | | + (NSMutableDictionary *)HomeAdWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system{ |
| | | NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithCapacity:0]; |
| | | |
| | | [dic setObject:GetHomeAd forKey:@"Method"]; |
| | |
| | | }else{ |
| | | sign = [NSString stringWithFormat:@"%@%@%@",GetHomeAd,[[UIDevice currentDevice].identifierForVendor UUIDString],system]; |
| | | } |
| | | |
| | | [dic setObject:vtid forKey:@"Vtid"]; |
| | | [dic setObject:Version forKey:@"Version"]; |
| | | [dic setObject:Package forKey:@"Package"]; |
| | | [dic setObject:system forKey:@"System"]; |
| | | [dic setObject:[NSString md5:sign] forKey:@"Sign"]; |
| | | [dic setObject:[[UIDevice currentDevice].identifierForVendor UUIDString] forKey:@"Device"]; |
| | | NSLog(@"%@",dic); |
| | | return dic; |
| | | } |
| | | //getRecommendCategoryVideoBanner |
| | | + (NSMutableDictionary *)getRecommendCategoryVideoBannerWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system{ |
| | | NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithCapacity:0]; |
| | | |
| | | [dic setObject:@"getRecommendCategoryVideoBanner" forKey:@"Method"]; |
| | | [dic setObject:@"ios" forKey:@"Platform"]; |
| | | NSString *sign; |
| | | if (uid!=nil) { |
| | | [dic setObject:uid forKey:@"Uid"]; |
| | | sign = [NSString stringWithFormat:@"%@%@%@",@"getRecommendCategoryVideoBanner",uid,system]; |
| | | }else{ |
| | | sign = [NSString stringWithFormat:@"%@%@%@",@"getRecommendCategoryVideoBanner",[[UIDevice currentDevice].identifierForVendor UUIDString],system]; |
| | | } |
| | | [dic setObject:vtid forKey:@"Type"]; |
| | | [dic setObject:Version forKey:@"Version"]; |
| | | [dic setObject:Package forKey:@"Package"]; |
| | | [dic setObject:system forKey:@"System"]; |
| | | [dic setObject:[NSString md5:sign] forKey:@"Sign"]; |
| | | [dic setObject:[[UIDevice currentDevice].identifierForVendor UUIDString] forKey:@"Device"]; |
| | | NSLog(@"%@",dic); |
| | | return dic; |
| | | } |
| | | |
| | | |
| | | #pragma mark æ¨èåç±» |
| | | + (NSMutableDictionary *)HomeTypeWithUid:(NSString *)uid withSystem:(NSString *)system{ |
| | | + (NSMutableDictionary *)HomeTypeWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system{ |
| | | NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithCapacity:0]; |
| | | |
| | | [dic setObject:GetHomeType forKey:@"Method"]; |
| | |
| | | [dic setObject:Version forKey:@"Version"]; |
| | | [dic setObject:Package forKey:@"Package"]; |
| | | [dic setObject:system forKey:@"System"]; |
| | | [dic setObject:vtid forKey:@"Vtid"]; |
| | | NSString *sign; |
| | | if (uid!=nil) { |
| | | [dic setObject:uid forKey:@"Uid"]; |
| | |
| | | } |
| | | [dic setObject:[NSString md5:sign] forKey:@"Sign"]; |
| | | [dic setObject:[[UIDevice currentDevice].identifierForVendor UUIDString] forKey:@"Device"]; |
| | | NSLog(@"%@",dic); |
| | | return dic; |
| | | } |
| | | |
| | |
| | | [dic setObject:ResourceId forKey:@"ResourceId"]; |
| | | } |
| | | [dic setObject:[[UIDevice currentDevice].identifierForVendor UUIDString] forKey:@"Device"]; |
| | | NSLog(@"%@",dic); |
| | | return dic; |
| | | } |
| | | |
| | |
| | | [dic setObject:system forKey:@"System"]; |
| | | [dic setObject:[NSString md5:sign] forKey:@"Sign"]; |
| | | [dic setObject:[[UIDevice currentDevice].identifierForVendor UUIDString] forKey:@"Device"]; |
| | | return dic; |
| | | } |
| | | //ç²¾é |
| | | + (NSMutableDictionary *)videoClassWithUid:(NSString *)uid withSystem:(NSString *)system{ |
| | | NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithCapacity:0]; |
| | | |
| | | [dic setObject:@"getVideoClass" forKey:@"Method"]; |
| | | [dic setObject:@"ios" forKey:@"Platform"]; |
| | | NSString *sign; |
| | | if (uid!=nil) { |
| | | [dic setObject:uid forKey:@"Uid"]; |
| | | sign = [NSString stringWithFormat:@"%@%@%@",@"getVideoClass",uid,system]; |
| | | }else{ |
| | | sign = [NSString stringWithFormat:@"%@%@%@",@"getVideoClass",[[UIDevice currentDevice].identifierForVendor UUIDString],system]; |
| | | } |
| | | [dic setObject:Version forKey:@"Version"]; |
| | | [dic setObject:Package forKey:@"Package"]; |
| | | [dic setObject:system forKey:@"System"]; |
| | | [dic setObject:[NSString md5:sign] forKey:@"Sign"]; |
| | | [dic setObject:[[UIDevice currentDevice].identifierForVendor UUIDString] forKey:@"Device"]; |
| | | NSLog(@"%@",dic); |
| | | return dic; |
| | | } |
| | | |
| | |
| | | [dic setObject:[[UIDevice currentDevice].identifierForVendor UUIDString] forKey:@"Device"]; |
| | | return dic; |
| | | } |
| | | |
| | | #pragma mark - é¦é¡µåºé¨ææ |
| | | +(NSMutableDictionary *)getHotStarMainList:(NSString *)uid WithSystem:(NSString *)system{ |
| | | NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithCapacity:0]; |
| | | [dic setObject:@"getHotStarMainList" forKey:@"Method"]; |
| | | NSString *sign; |
| | | if (uid!=nil) { |
| | | [dic setObject:uid forKey:@"Uid"]; |
| | | sign = [NSString stringWithFormat:@"%@%@%@",@"getHotStarMainList",uid,system]; |
| | | }else{ |
| | | sign = [NSString stringWithFormat:@"%@%@%@",@"getHotStarMainList",[[UIDevice currentDevice].identifierForVendor UUIDString],system]; |
| | | } |
| | | [dic setObject:system forKey:@"System"]; |
| | | [dic setObject:[NSString md5:sign] forKey:@"Sign"]; |
| | | [dic setObject:@"ios" forKey:@"Platform"]; |
| | | [dic setObject:Version forKey:@"Version"]; |
| | | [dic setObject:Package forKey:@"Package"]; |
| | | [dic setObject:[[UIDevice currentDevice].identifierForVendor UUIDString] forKey:@"Device"]; |
| | | return dic; |
| | | } |
| | | #pragma mark åç°é¦é¡µç徿 |
| | | +(NSMutableDictionary *)getFoundHomeMapchar:(NSString *)uid WithSystem:(NSString *)system{ |
| | | NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithCapacity:0]; |
| | |
| | | * ç½ç»ç¶æ 1ï¼ä¸å¯ç¨ 2ï¼2gæ3g 3ï¼wifiç¯å¢ |
| | | */ |
| | | @property (nonatomic , assign) NSInteger NetworkStatus; |
| | | |
| | | @property (nonatomic , strong) NSString *searchTitle; |
| | | + (YTHsharedManger *)startManger; |
| | | |
| | | |
| | |
| | | //è¿åæé® |
| | | UIButton *backButton=[[UIButton alloc] initWithFrame:CGRectMake(2, 25, 70, 30)]; |
| | | [backButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; |
| | | [backButton setTitle:@"<è¿å" forState:UIControlStateNormal]; |
| | | [backButton.titleLabel setFont:[UIFont systemFontOfSize:18]]; |
| | | // [backButton setTitle:@"<è¿å" forState:UIControlStateNormal]; |
| | | // [backButton.titleLabel setFont:[UIFont systemFontOfSize:18]]; |
| | | [backButton setImage:[UIImage imageNamed:@"è¿å"] forState:UIControlStateNormal]; |
| | | [backButton addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside]; |
| | | [headerView addSubview:backButton]; |
| | | |
| | |
| | | |
| | | /** |
| | | 跳转å°è¯è®ºé¡µé¢ |
| | | |
| | | @param sender æé® |
| | | */ |
| | | -(void)clickCommitBtn:(UIButton *)sender{ |
| | | NSLog(@"%ld",(long)sender.tag); |
| | | allCommentsViewController *allCommentVC=[[allCommentsViewController alloc] init]; |
| | | allCommentVC.goodsId=[_dataGoodsList[sender.tag-100] objectForKey:@"Id"]; |
| | | [allCommentVC setHidesBottomBarWhenPushed:YES]; |
| | | [[self viewController].navigationController pushViewController:allCommentVC animated:YES]; |
| | | } |
| | | |
| | |
| | | discoverGoodsDetailViewController *goodsDetailVC=[[discoverGoodsDetailViewController alloc] init]; |
| | | goodsDetailVC.goodsId=[_dataGoodsList[indexPath.row] objectForKey:@"Id"]; |
| | | goodsDetailVC.goodspic_url=[[_dataGoodsList[indexPath.row] objectForKey:@"Item"] objectForKey:@"Pict_url"]; |
| | | [goodsDetailVC setHidesBottomBarWhenPushed:YES]; |
| | | [[self viewController].navigationController pushViewController:goodsDetailVC animated:YES]; |
| | | } |
| | | |
| | |
| | | }else{ //跳转å
é¨ |
| | | OnlySpecialController * oscontroller = [OnlySpecialController new]; |
| | | oscontroller.Id = ((NSString*)[dic objectForKey:@"Id"]).intValue; |
| | | [_mycontroller.navigationController pushViewController:oscontroller animated:YES]; |
| | | [oscontroller setHidesBottomBarWhenPushed:YES]; |
| | | [[self viewController].navigationController pushViewController:oscontroller animated:YES]; |
| | | } |
| | | } |
| | | |
New file |
| | |
| | | // |
| | | // discoverViewController.h |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import <UIKit/UIKit.h> |
| | | |
| | | @interface discoverViewController : BaseViewController |
| | | |
| | | @end |
New file |
| | |
| | | // |
| | | // discoverViewController.m |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import "discoverViewController.h" |
| | | #import "discoverView.h" |
| | | @interface discoverViewController () |
| | | @property (nonatomic,strong) discoverView *discVC; |
| | | |
| | | @end |
| | | |
| | | @implementation discoverViewController |
| | | - (instancetype)init { |
| | | self = [super init]; |
| | | if (self) { |
| | | self.title = @"åç°"; |
| | | UITabBarItem *item = [[UITabBarItem alloc]initWithTitle:self.title image:[UIImage imageNamed:@"Navigation-æ·è´"] selectedImage:[UIImage imageNamed:@"Navigation"]]; |
| | | item.titlePositionAdjustment = UIOffsetMake(0, -5); |
| | | self.tabBarItem = item; |
| | | } |
| | | return self; |
| | | } |
| | | |
| | | |
| | | |
| | | - (void)viewDidLoad { |
| | | [super viewDidLoad]; |
| | | |
| | | [self.view addSubview:self.discVC]; |
| | | } |
| | | |
| | | - (discoverView *)discVC { |
| | | if (_discVC) { |
| | | return _discVC; |
| | | } |
| | | _discVC = [[discoverView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; |
| | | return _discVC; |
| | | } |
| | | - (void)didReceiveMemoryWarning { |
| | | [super didReceiveMemoryWarning]; |
| | | // Dispose of any resources that can be recreated. |
| | | } |
| | | |
| | | /* |
| | | #pragma mark - Navigation |
| | | |
| | | // In a storyboard-based application, you will often want to do a little preparation before navigation |
| | | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { |
| | | // Get the new view controller using [segue destinationViewController]. |
| | | // Pass the selected object to the new view controller. |
| | | } |
| | | */ |
| | | |
| | | @end |
| | |
| | | NSMutableArray *_HotLive;//è·åçé¨ç´æ |
| | | NSMutableArray *_AllLiveType;//ç´æç±»å« |
| | | NSMutableArray *_LiveList;//ç´æå表 |
| | | |
| | | UITableView *_livetableView;//ç´æå表 |
| | | |
| | | int nowPage;//ææ°ç´æè¯·æ±å¤å°é¡µ |
| | | } |
| | | |
| | |
| | | nowPage = 1; |
| | | if (!_livetableView) { |
| | | _livetableView=[[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height) style:UITableViewStyleGrouped]; |
| | | |
| | | _livetableView.delegate=self; |
| | | _livetableView.dataSource=self; |
| | | |
| | | [_livetableView registerNib:[UINib nibWithNibName:@"HotLiveTableViewCell" bundle:nil] forCellReuseIdentifier:@"HotLiveTableViewCell"]; |
| | | [_livetableView registerNib:[UINib nibWithNibName:@"AllLiveTypeTableViewCell" bundle:nil] forCellReuseIdentifier:@"AllLiveTypeTableViewCell"]; |
| | | [_livetableView registerNib:[UINib nibWithNibName:@"LiveListTableViewCell" bundle:nil] forCellReuseIdentifier:@"LiveListTableViewCell"]; |
| | |
| | | nowPage = 1; |
| | | [self reloadHotLiveData]; |
| | | }]; |
| | | |
| | | //䏿å è½½æ´å¤ |
| | | _livetableView.mj_footer=[MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{ |
| | | [self reloadLiveList]; |
| | |
| | | [_livetableView.mj_header beginRefreshing]; |
| | | } |
| | | } |
| | | |
| | | return self; |
| | | } |
| | | |
| | |
| | | |
| | | #import "LXAlertView.h"//å¼¹çªè§å¾ |
| | | #import "GDTNativeAd.h"//广ç¹éåç广å |
| | | |
| | | #import "YTHNetdata.h" |
| | | #define collectTag 270 |
| | | @import GoogleMobileAds; |
| | | |
| | | @interface recommendView()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,SDCycleScrollViewDelegate,GADNativeAppInstallAdLoaderDelegate, GADNativeContentAdLoaderDelegate,GDTNativeAdDelegate>{ |
| | | @interface recommendView()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,SDCycleScrollViewDelegate,GADNativeAppInstallAdLoaderDelegate, GADNativeContentAdLoaderDelegate,GDTNativeAdDelegate,UIScrollViewDelegate>{ |
| | | |
| | | UICollectionView *_recommentCollectionView;//è¦çæ´ä¸ªViewçç叿µ |
| | | // UICollectionView *_recommentCollectionView;//è¦çæ´ä¸ªViewçç叿µ |
| | | SDCycleScrollView *_cycleScrollView;//头é¨çæ¨èè½®æå¾ |
| | | WeiKouAdView *_adView;//头é¨å°å¹¿å |
| | | |
| | |
| | | //广ç¹éåç广å |
| | | GDTNativeAd *_nativeAd; //åç广åå®ä¾ |
| | | NSMutableArray *nativeArray;//åå¨è¯·æ±ä¸æ¥çåç广åä¿¡æ¯ |
| | | NSString *_type_id; |
| | | NSString *_type_title; |
| | | NSInteger maintypeNumber;//ç§ç±»çä½ç½® |
| | | NSInteger typeNumber;//ç»åç±» |
| | | BOOL _isrefresh; |
| | | |
| | | } |
| | | |
| | | @property (nonatomic , strong) NSMutableArray *dataAdverti;//é¡¶é¨å¹¿åæ°æ® |
| | |
| | | |
| | | @property(nonatomic,strong) NSMutableArray *dataStar;//ææ |
| | | |
| | | @property (nonatomic, strong) HMSegmentedControl *vidioGmentControl; |
| | | |
| | | @property (nonatomic, strong)UIScrollView *scrollView; |
| | | @property (nonatomic ,strong)NSMutableArray *collectArray; |
| | | |
| | | @property (nonatomic, strong)NSMutableArray *classArray; |
| | | @property (weak, nonatomic) IBOutlet UISegmentedControl *segView; |
| | | @property (nonatomic , strong) NSString *Species;//ç§ç±» |
| | | @property (nonatomic , strong) NSMutableArray *SpeciesAry;//ç§ç±» |
| | | @property (nonatomic , strong) NSMutableDictionary *dataDic;//ç§ç±»ä¸çæ°æ®æº |
| | | |
| | | //@property (nonatomic , strong) NSMutableArray *allDataSourece;//æææ°æ®æ°ç» |
| | | |
| | | |
| | | @end |
| | | |
| | | @implementation recommendView |
| | |
| | | - (instancetype)initWithFrame:(CGRect)frame{ |
| | | self = [super initWithFrame:frame]; |
| | | if (self) { |
| | | if (!_recommentCollectionView) { |
| | | UICollectionViewFlowLayout *flow = [[UICollectionViewFlowLayout alloc]init]; |
| | | //æå®å¸å±æ¹å¼ä¸ºåç´ |
| | | flow.scrollDirection = UICollectionViewScrollDirectionVertical; |
| | | flow.minimumLineSpacing = 10;//æå°è¡é´è·(å½åç´å¸å±æ¶æ¯è¡é´è·ï¼å½æ°´å¹³å¸å±æ¶å¯ä»¥ç解为åé´è·) |
| | | flow.minimumInteritemSpacing = 10;//两个åå
æ ¼ä¹é´çæå°é´è· |
| | | |
| | | [_cycleScrollView adjustWhenControllerViewWillAppera]; |
| | | |
| | | _recommentCollectionView=[[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height) collectionViewLayout:flow]; |
| | | } |
| | | _recommentCollectionView.delegate=self; |
| | | _recommentCollectionView.dataSource=self; |
| | | _recommentCollectionView.backgroundColor=kGlobalBackgroundColor; |
| | | //注åcell |
| | | [_recommentCollectionView registerNib:[UINib nibWithNibName:@"recommentCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"recommentCollectionViewCell"]; |
| | | //æ³¨åæ¿è½½ææä¿¡æ¯çcell |
| | | [_recommentCollectionView registerNib:[UINib nibWithNibName:@"StartCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"StartCollectionViewCell"]; |
| | | //设置轮æå¾çhead |
| | | [_recommentCollectionView registerNib:[UINib nibWithNibName:@"shufflingCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"shufflingCollectionReusableView"]; |
| | | //设置å°å¹¿åçfoot |
| | | [_recommentCollectionView registerNib:[UINib nibWithNibName:@"FooterCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionFooter withReuseIdentifier:@"FooterCollectionReusableView"]; |
| | | //设置å类头çhead |
| | | [_recommentCollectionView registerNib:[UINib nibWithNibName:@"HeaderCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"HeaderCollectionReusableView"]; |
| | | //设置尾é¨å¹¿ç¹éåç广åçfoot |
| | | [_recommentCollectionView registerNib:[UINib nibWithNibName:@"ADCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionFooter withReuseIdentifier:@"ADCollectionReusableView"]; |
| | | //设置尾é¨è°·æå¹¿åçfoot |
| | | [_recommentCollectionView registerNib:[UINib nibWithNibName:@"GoogleAdCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionFooter withReuseIdentifier:@"GoogleAdCollectionReusableView"]; |
| | | |
| | | //æ¨èè§å¾ |
| | | [self addSubview:_recommentCollectionView]; |
| | | //å
æ¥æ¶çæ¯å¦ææ§çæ°æ®ï¼å¨ç½ç»å·®çæ¶åä¼å
å è½½æ§çæ°æ® |
| | | [self loadOldData]; |
| | | //ç»collectionViewè®¾ç½®ä¸æå·æ° |
| | | _recommentCollectionView.mj_header=[MJRefreshNormalHeader headerWithRefreshingBlock:^{ |
| | | //å¼å§å·æ° |
| | | [_recommentCollectionView.mj_header beginRefreshing]; |
| | | //ç½ç»è¯·æ± |
| | | [self loadNewData]; |
| | | }]; |
| | | self.classArray = @[].mutableCopy; |
| | | self.collectArray = @[].mutableCopy; |
| | | // maintypeNumber = 0; |
| | | |
| | | [self loadDataFromFile]; |
| | | UIViewController *controller = [self viewController]; |
| | | controller.automaticallyAdjustsScrollViewInsets = NO; |
| | | } |
| | | |
| | | return self; |
| | | //æ·»å éç¥ï¼è¿å
¥è¯¦ç»çé¢ |
| | | } |
| | | //- (void)viewWillLayoutSubviews{ |
| | | // [self viewWillLayoutSubviews]; |
| | | // [self.collectionView.collectionViewLayout invalidateLayout]; |
| | | //} |
| | | |
| | | //create |
| | | - (void)createSegment{ |
| | | // self.classArray = @[@"çµå½±",@"çµè§å§",@"综èº",@"卿¼«",@"娱ä¹",@"游æ",@"çæ´»",@"ç§æ",@"ä½è²",@"å¨è¯¢",@"ä¹è"]; |
| | | NSMutableArray *array = @[].mutableCopy; |
| | | for (NSInteger index = 0; index <self.classArray.count; index ++) { |
| | | NSDictionary *dic = self.classArray[index]; |
| | | [array addObject:dic[@"Name"]]; |
| | | } |
| | | NSLog(@"%@",array); |
| | | self.vidioGmentControl = [[HMSegmentedControl alloc]initWithSectionTitles:array]; |
| | | [self.vidioGmentControl setFrame:CGRectMake(0, 64, KScreenW, 40)]; |
| | | self.vidioGmentControl.selectionIndicatorHeight = 2.0f; |
| | | self.vidioGmentControl.backgroundColor = kGlobalMainColor; |
| | | self.vidioGmentControl.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName :[UIFont systemFontOfSize:15]}; |
| | | self.vidioGmentControl.selectedTitleTextAttributes=@{NSForegroundColorAttributeName : kGlobalYellowColor,NSFontAttributeName :[UIFont systemFontOfSize:15]}; |
| | | self.vidioGmentControl.selectionIndicatorColor = kGlobalYellowColor; |
| | | self.vidioGmentControl.selectionStyle = HMSegmentedControlSelectionStyleTextWidthStripe; |
| | | self.vidioGmentControl.selectedSegmentIndex = HMSegmentedControlNoSegment; |
| | | self.vidioGmentControl.selectionIndicatorLocation = HMSegmentedControlSelectionIndicatorLocationDown; |
| | | self.vidioGmentControl.selectedSegmentIndex=0; |
| | | self.vidioGmentControl.shouldAnimateUserSelection = YES; |
| | | |
| | | __weak typeof(self) weakSelf = self; |
| | | [self.vidioGmentControl setIndexChangeBlock:^(NSInteger index) { |
| | | [weakSelf.scrollView scrollRectToVisible:CGRectMake(KScreenW * index, 0, KScreenW, self.frame.size.height - 40) animated:YES]; |
| | | _type_title = self.classArray[index][@"Name"]; |
| | | _type_id = self.classArray[index][@"Id"]; |
| | | // NSLog(@"<- %@ ->",_type_id); |
| | | maintypeNumber = index; |
| | | [weakSelf loadNewData]; |
| | | }]; |
| | | [self addSubview:self.vidioGmentControl]; |
| | | } |
| | | //å è½½æ°æ® |
| | | -(void)loadDataFromFile{ |
| | | [[YTHNetInterface startInterface] getVideoClassWithUid:[YTHsharedManger startManger].Uid WithSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *dic = (NSDictionary *)result; |
| | | if (!_classArray) { |
| | | _classArray = [[NSMutableArray alloc ] initWithCapacity:0]; |
| | | } |
| | | [_classArray removeAllObjects]; |
| | | NSArray *ar = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | for (int i = 0; i<ar.count; i++) { |
| | | [_classArray addObject:[ar objectAtIndex:i]]; |
| | | NSLog(@"%@%d id= %@",[ar objectAtIndex:i][@"Name"],i,[ar objectAtIndex:i][@"Id"]); |
| | | } |
| | | NSLog(@"*****%@****",ar); |
| | | NSLog(@"ãããã%@ãããã",_classArray); |
| | | // NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_classArray]; |
| | | // [data writeToFile:CHANNELfILE atomically:YES]; |
| | | //å·æ°collectionViewè§å¾ |
| | | // [_collview reloadData]; |
| | | [self createSegment]; |
| | | [self addScrollView]; |
| | | }else{ |
| | | |
| | | } |
| | | }]; |
| | | |
| | | // NSFileManager *fileManager = [NSFileManager defaultManager]; |
| | | // if ([fileManager fileExistsAtPath:CHANNELfILE]) |
| | | // { |
| | | // _classArray = [NSKeyedUnarchiver unarchiveObjectWithData:[NSData dataWithContentsOfFile:CHANNELfILE]]; |
| | | // [self createSegment]; |
| | | // }else{ |
| | | // [self loadNewData]; |
| | | // } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å è½½æ°æ°æ® |
| | | */ |
| | | -(void)loadNewData{ |
| | | NSLog(@"%ld",(long)maintypeNumber); |
| | | NSLog(@"%@",_type_id); |
| | | [[YTHNetInterface startInterface]cancelAll]; |
| | | //è·åè½®æå¾çæ°æ® |
| | | [self getHomeAd]; |
| | | //å°å¹¿åæ¨å¹¿è§å¾ |
| | | [self SpreadRequest]; |
| | | //è·åæ¨èåç±» |
| | | [self getHomeType]; |
| | | // UICollectionView *collectview = [self viewWithTag:900 + SpeciesNumber]; |
| | | // [collectview reloadData]; |
| | | } |
| | | |
| | | /** |
| | |
| | | * è·åè½®æå¾çæ°æ® |
| | | */ |
| | | -(void)getHomeAd{ |
| | | [[YTHNetInterface startInterface] getHomeAdWithUid:[YTHsharedManger startManger].Uid withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *dic = (NSDictionary *)result; |
| | | if (!_dataAdverti) { |
| | | _dataAdverti = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | NSLog(@"%@",_type_id); |
| | | if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | [[YTHNetInterface startInterface] getHomeAdWithUid:[YTHsharedManger startManger].Uid vtid:_type_id withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *dic = (NSDictionary *)result; |
| | | if (!_dataAdverti) { |
| | | _dataAdverti = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | } |
| | | _dataAdverti = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | |
| | | //åå¨è·åå°çæ°æ® |
| | | NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_dataAdverti]; |
| | | [data writeToFile:ADVERTISEFILE atomically:YES]; |
| | | // [_recommentCollectionView reloadData]; |
| | | NSLog(@"<------- %@ --------->",_dataAdverti); |
| | | //ç»æå·æ° |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | // [collectview reloadData]; |
| | | // [self collectLoadNewData]; |
| | | [collectview.mj_header endRefreshing]; |
| | | [self addSliderView]; |
| | | |
| | | }else{ |
| | | //æç¤ºç½ç»ä¸ç¨³å® |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | |
| | | [collectview.mj_header endRefreshing]; |
| | | } |
| | | _dataAdverti = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | |
| | | //åå¨è·åå°çæ°æ® |
| | | NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_dataAdverti]; |
| | | [data writeToFile:ADVERTISEFILE atomically:YES]; |
| | | // [_recommentCollectionView reloadData]; |
| | | [self addSliderView]; |
| | | //ç»æå·æ° |
| | | [_recommentCollectionView.mj_header endRefreshing]; |
| | | }else{ |
| | | //æç¤ºç½ç»ä¸ç¨³å® |
| | | [_recommentCollectionView.mj_header endRefreshing]; |
| | | } |
| | | }]; |
| | | }]; |
| | | }else{ |
| | | //getRecommendCategoryVideoBanne |
| | | [[YTHNetInterface startInterface] getRecommendCategoryVideoBannerWithUid:[YTHsharedManger startManger].Uid vtid:_type_id withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *dic = (NSDictionary *)result; |
| | | if (!_dataAdverti) { |
| | | _dataAdverti = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | } |
| | | _dataAdverti = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | |
| | | //åå¨è·åå°çæ°æ® |
| | | NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_dataAdverti]; |
| | | [data writeToFile:ADVERTISEFILE atomically:YES]; |
| | | // [_recommentCollectionView reloadData]; |
| | | NSLog(@"<------- %@ --------->",_dataAdverti); |
| | | //ç»æå·æ° |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | |
| | | // [collectview reloadData]; |
| | | [self collectLoadNewData]; |
| | | |
| | | [collectview.mj_header endRefreshing]; |
| | | [self addSliderView]; |
| | | }else{ |
| | | //æç¤ºç½ç»ä¸ç¨³å® |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | |
| | | [collectview.mj_header endRefreshing]; |
| | | } |
| | | }]; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | - (void)SpreadRequest{ |
| | | if (!_adView) { |
| | | _adView = [[WeiKouAdView alloc]initWithFrame:CGRectMake(0.0, 0.0, KScreenW, KScreenW/6) withBlock:^(NSString *text) { |
| | | [_recommentCollectionView reloadData]; |
| | | // [_recommentCollectionView reloadData]; |
| | | // UICollectionView *collectView = [self viewWithTag:collectTag +maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | // [collectview reloadData]; |
| | | [self collectLoadNewData]; |
| | | |
| | | }]; |
| | | } |
| | | } |
| | |
| | | * è·åæ¨èåç±» |
| | | */ |
| | | - (void)getHomeType{ |
| | | [[YTHNetInterface startInterface] getHomeTypeWithUid:[YTHsharedManger startManger].Uid withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *dic = (NSDictionary *)result; |
| | | if (!_dataHomeType) { |
| | | _dataHomeType = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | NSLog(@"%@",_type_id); |
| | | if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | [[YTHNetInterface startInterface] getHomeTypeWithUid:[YTHsharedManger startManger].Uid vtid:_type_id withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *dic = (NSDictionary *)result; |
| | | if (!_dataHomeType) { |
| | | _dataHomeType = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | } |
| | | NSMutableArray *arr = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | |
| | | _dataHomeType=arr; |
| | | //è·æ°è§å¾æ°æ® |
| | | // [_recommentCollectionView reloadData]; |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | |
| | | [collectview.mj_header endRefreshing]; |
| | | // [collectview reloadData]; |
| | | [self collectLoadNewData]; |
| | | |
| | | [self loadStarsData]; |
| | | NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_dataHomeType]; |
| | | [data writeToFile:HOMETYPEFILE atomically:YES]; |
| | | NSLog(@"<-ãããã%@ããããã->",_dataHomeType); |
| | | NSLog(@"%ld",(unsigned long)_dataHomeType.count); |
| | | //è¯·æ±ææåç±»ï¼ä¸ºä»ä¹è¦æ¾å¨è¿é?å 为ææåç±»æ¯æ¾å¨æåçï¼ä½ å¿
é¡»ç¥éæ¨èåç±»ç个æ°ï¼æå¥½ç¡®å®ææåç±»çä¸ªæ° |
| | | //ç»æå·æ° |
| | | |
| | | |
| | | //è·å广ç¹éåçå¹¿åæ°æ® |
| | | [self loadAd]; |
| | | //è·åè°·æå¹¿å |
| | | [self loadgoogleAd]; |
| | | }else{ |
| | | //æç¤ºç½ç»ä¸ç¨³å® |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | |
| | | [collectview.mj_header endRefreshing]; |
| | | } |
| | | NSMutableArray *arr = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | |
| | | _dataHomeType=arr; |
| | | //è·æ°è§å¾æ°æ® |
| | | // [_recommentCollectionView reloadData]; |
| | | |
| | | NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_dataHomeType]; |
| | | [data writeToFile:HOMETYPEFILE atomically:YES]; |
| | | |
| | | //è¯·æ±ææåç±»ï¼ä¸ºä»ä¹è¦æ¾å¨è¿é?å 为ææåç±»æ¯æ¾å¨æåçï¼ä½ å¿
é¡»ç¥éæ¨èåç±»ç个æ°ï¼æå¥½ç¡®å®ææåç±»çä¸ªæ° |
| | | [self loadStarsData]; |
| | | //ç»æå·æ° |
| | | [_recommentCollectionView.mj_header endRefreshing]; |
| | | //è·å广ç¹éåçå¹¿åæ°æ® |
| | | [self loadAd]; |
| | | //è·åè°·æå¹¿å |
| | | [self loadgoogleAd]; |
| | | }else{ |
| | | //æç¤ºç½ç»ä¸ç¨³å® |
| | | [_recommentCollectionView.mj_header endRefreshing]; |
| | | } |
| | | }]; |
| | | }]; |
| | | }else{ |
| | | // getRecommendCategoryVideoList |
| | | |
| | | [[YTHNetInterface startInterface] getRecommendCategoryVideoListWithUid:[YTHsharedManger startManger].Uid withVideoType:_type_id withSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if (isSuccessful) { |
| | | NSDictionary *dic = (NSDictionary *)result; |
| | | if (!_dataHomeType) { |
| | | _dataHomeType = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | } |
| | | NSMutableArray *arr = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | _dataHomeType=arr; |
| | | //è·æ°è§å¾æ°æ® |
| | | // [_recommentCollectionView reloadData]; |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | [self collectLoadNewData]; |
| | | |
| | | // [collectview reloadData]; |
| | | |
| | | NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_dataHomeType]; |
| | | [data writeToFile:HOMETYPEFILE atomically:YES]; |
| | | NSLog(@"<-ãããã%@ããããã->",_dataHomeType); |
| | | //è¯·æ±ææåç±»ï¼ä¸ºä»ä¹è¦æ¾å¨è¿é?å 为ææåç±»æ¯æ¾å¨æåçï¼ä½ å¿
é¡»ç¥éæ¨èåç±»ç个æ°ï¼æå¥½ç¡®å®ææåç±»çä¸ªæ° |
| | | [self loadStarsData]; |
| | | //ç»æå·æ° |
| | | |
| | | [collectview.mj_header endRefreshing]; |
| | | //è·å广ç¹éåçå¹¿åæ°æ® |
| | | [self loadAd]; |
| | | //è·åè°·æå¹¿å |
| | | [self loadgoogleAd]; |
| | | }else{ |
| | | //æç¤ºç½ç»ä¸ç¨³å® |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | |
| | | [collectview.mj_header endRefreshing]; |
| | | } |
| | | }]; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å®å¶è½®æå¾ |
| | |
| | | _addrssForshuffling = [[NSMutableArray alloc] initWithCapacity:0]; |
| | | _TitleForshuffling=[[NSMutableArray alloc] initWithCapacity:0]; |
| | | //夿 |
| | | for (int i = 0; i<_dataAdverti.count; i++) { |
| | | [_addrssForshuffling addObject:[[_dataAdverti objectAtIndex:i] objectForKey:@"Picture"]]; |
| | | [_TitleForshuffling addObject:[[[_dataAdverti objectAtIndex:i] objectForKey:@"Video"] objectForKey:@"Name"]]; |
| | | NSLog(@"%@",_dataAdverti); |
| | | NSLog(@"%ld",(unsigned long)_dataAdverti.count); |
| | | |
| | | if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | for (int i = 0; i<_dataAdverti.count; i++) { |
| | | NSLog(@"%@",[_dataAdverti objectAtIndex:i]); |
| | | [_addrssForshuffling addObject:[[_dataAdverti objectAtIndex:i] objectForKey:@"Picture"]]; |
| | | // [_TitleForshuffling addObject:[[[_dataAdverti objectAtIndex:i] objectForKey:@"Video"] objectForKey:@"Name"]]; |
| | | } |
| | | }else{ |
| | | for (int i = 0; i<_dataAdverti.count; i++) { |
| | | NSLog(@"%@",[_dataAdverti objectAtIndex:i]); |
| | | [_addrssForshuffling addObject:[[_dataAdverti objectAtIndex:i] objectForKey:@"Picture"]]; |
| | | // [_TitleForshuffling addObject:[[[_dataAdverti objectAtIndex:i] objectForKey:@"VideoType"] objectForKey:@"Name"]]; |
| | | } |
| | | } |
| | | _cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0,KScreenW, KScreenW*7/16) imageURLStringsGroup:_addrssForshuffling]; |
| | | _cycleScrollView.titlesGroup=_TitleForshuffling; |
| | | _cycleScrollView.pageControlAliment = SDCycleScrollViewPageContolAlimentRight; |
| | | |
| | | for (NSInteger index = 0; index < _TitleForshuffling.count; index ++) { |
| | | NSLog(@"ããããã%@ããããã",_TitleForshuffling[index]); |
| | | } |
| | | if ([_type_id integerValue] == 310) { |
| | | _cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0,KScreenW, KScreenH / 3.12) imageURLStringsGroup:_addrssForshuffling]; |
| | | }else{ |
| | | _cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0,KScreenW, KScreenW*7/16) imageURLStringsGroup:_addrssForshuffling]; |
| | | } |
| | | // _cycleScrollView.titlesGroup=_TitleForshuffling; |
| | | _cycleScrollView.pageControlAliment = SDCycleScrollViewPageContolAlimentCenter; |
| | | _cycleScrollView.currentPageDotColor=kGlobalYellowColor; |
| | | _cycleScrollView.delegate = self; |
| | | _cycleScrollView.placeholderImage = [UIImage imageNamed:@"é»è®¤å è½½å¾ç"]; |
| | | // 375 * 667 |
| | | // 320 * 364 |
| | | // 568 / 182 |
| | | } |
| | | |
| | | /** |
| | | è¯·æ±æææ°æ® |
| | | */ |
| | | -(void)loadStarsData{ |
| | | [[YTHNetInterface startInterface] getFoundHomeStars:[YTHsharedManger startManger].Uid WithSystem:@"1" WithBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | // getHotStarMainList |
| | | [[YTHNetInterface startInterface] getHotStarMainList:[YTHsharedManger startManger].Uid WithSystem:@"1" WithBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | if(isSuccessful){ |
| | | NSDictionary *dic = (NSDictionary *)result; |
| | | if(!_dataStar){ |
| | |
| | | _dataStar= [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | |
| | | //å·æ°è§å¾ |
| | | [_recommentCollectionView reloadData]; |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | [self collectLoadNewData]; |
| | | |
| | | // [collectview reloadData]; |
| | | //åå¨è·åå°çæ°æ® |
| | | NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_dataStar]; |
| | | [data writeToFile:DISCOVERSTAR atomically:YES]; |
| | | }else{ |
| | | NSLog(@"%@",error); |
| | | [_recommentCollectionView reloadData]; |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | [self collectLoadNewData]; |
| | | |
| | | // [collectview reloadData]; |
| | | } |
| | | }]; |
| | | // [[YTHNetInterface startInterface] getFoundHomeStars:[YTHsharedManger startManger].Uid WithSystem:@"1" WithBlock:^(BOOL isSuccessful, id result, NSString *error) { |
| | | // if(isSuccessful){ |
| | | // NSDictionary *dic = (NSDictionary *)result; |
| | | // if(!_dataStar){ |
| | | // _dataStar=[NSMutableArray arrayWithCapacity:0]; |
| | | // } |
| | | // _dataStar= [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | // |
| | | // //å·æ°è§å¾ |
| | | // UICollectionView *collectview = [self viewWithTag:900 + SpeciesNumber]; |
| | | // [collectview reloadData]; |
| | | // //åå¨è·åå°çæ°æ® |
| | | // NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_dataStar]; |
| | | // [data writeToFile:DISCOVERSTAR atomically:YES]; |
| | | // }else{ |
| | | // NSLog(@"%@",error); |
| | | // UICollectionView *collectview = [self viewWithTag:900 + SpeciesNumber]; |
| | | // [collectview reloadData]; |
| | | // } |
| | | // }]; |
| | | } |
| | | |
| | | /** |
| | |
| | | info=nativeArray[1]; |
| | | } |
| | | [_nativeAd clickAd:info]; |
| | | } |
| | | |
| | | } |
| | | //å¨ä¸»çº¿ç¨å·æ°collectview,é主线ç¨ä¸è½å·æ° |
| | | - (void)collectLoadNewData{ |
| | | dispatch_async(dispatch_get_main_queue(), ^{ |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | [collectview reloadData]; |
| | | }); |
| | | } |
| | | #pragma mark æjsonæ ¼å¼çå符串转æ¢ä¸ºåå
¸æ ¼å¼ |
| | | - (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString { |
| | | if (jsonString == nil) { |
| | |
| | | } |
| | | |
| | | /**************(以ä¸)åè®®åº******************/ |
| | | #pragma mark -UICollectionViewDataSource |
| | | #pragma mark -UICollection----ViewDataSource |
| | | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{ |
| | | |
| | | if (section==0) { |
| | | return 0; |
| | | }else if(section==_dataHomeType.count+1) { |
| | | return 3; |
| | | }else{ |
| | | if (_dataHomeType.count!=0) { |
| | | NSArray *arr=[_dataHomeType[section-1] objectForKey:@"HomeVideoList"]; |
| | | return arr.count; |
| | | }else |
| | | if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | if (_dataHomeType.count!=0) { |
| | | NSArray *arr=[_dataHomeType[section-1] objectForKey:@"HomeVideoList"]; |
| | | NSLog(@"%@",_dataHomeType); |
| | | return arr.count; |
| | | }else { |
| | | return 0; |
| | | } |
| | | }else{ |
| | | return 0; |
| | | if (_dataHomeType.count!=0) { |
| | | return _dataHomeType.count; |
| | | }else{ |
| | | return 0; |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{ |
| | | if (indexPath.section!=_dataHomeType.count+1) { |
| | | recommentCollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"recommentCollectionViewCell" forIndexPath:indexPath]; |
| | | //设置cellçèæ¯è²ï¼ç½è²ï¼ |
| | | cell.backgroundColor=[UIColor whiteColor]; |
| | | //å¨è¿é对cellè¿è¡è®¾ç½® |
| | | NSArray *HomeVideoList=[_dataHomeType[indexPath.section-1] objectForKey:@"HomeVideoList"]; |
| | | |
| | | NSDictionary *VideoInformation=HomeVideoList[indexPath.row]; |
| | | NSString *picStr=[VideoInformation objectForKey:@"Picture"]; |
| | | NSDictionary *VideoDic=[VideoInformation objectForKey:@"Video"]; |
| | | //设置å¾ç |
| | | cell.recommentImageView.contentMode=UIViewContentModeScaleAspectFill; |
| | | if (picStr.length>1) { |
| | | [cell.recommentImageView setYthImageWithURL:picStr placeholderImage:[UIImage imageNamed:@"é»è®¤å è½½å¾ç"]]; |
| | | }else{ |
| | | picStr=[VideoDic objectForKey:@"Picture"]; |
| | | [cell.recommentImageView setYthImageWithURL:picStr placeholderImage:[UIImage imageNamed:@"é»è®¤å è½½å¾ç"]]; |
| | | } |
| | | //设置çè¯ï¼å¦ææTag就设置Tag,没æTag就设置Scoreï¼ |
| | | NSString *TagStr1=[VideoInformation objectForKey:@"Tag"]; |
| | | NSString *TagStr2=[VideoDic objectForKey:@"Tag"]; |
| | | NSString *Score=[VideoDic objectForKey:@"Score"]; |
| | | if(TagStr1.length>1){ |
| | | cell.recommentReplyLabel.text=TagStr1; |
| | | }else if(TagStr2.length>1){ |
| | | cell.recommentReplyLabel.text=TagStr2; |
| | | }else if([Score intValue]>0){ |
| | | cell.recommentReplyLabel.text=[NSString stringWithFormat:@"è¯å:%@",Score]; |
| | | }else{ |
| | | cell.recommentReplyLabel.text=[NSString stringWithFormat:@"è¯å:æ "]; |
| | | } |
| | | cell.recommentReplyLabel.backgroundColor=[UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.7]; |
| | | //æ é¢ |
| | | cell.recommentTitleLabel.text=[NSString stringWithFormat:@"%@",[VideoDic objectForKey:@"Name"]]; |
| | | //è§çæ°é |
| | | cell.recommentrecommentVV.textColor=kGlobalLightGreyColor_210; |
| | | NSString *recommentStr; |
| | | if([VideoDic objectForKey:@"WatchCount"]==nil||[[VideoDic objectForKey:@"WatchCount"] isEqualToString:@"(null)"]){ |
| | | recommentStr=[NSString stringWithFormat:@"0"]; |
| | | }else if ([[VideoDic objectForKey:@"WatchCount"] intValue]<10000) { |
| | | recommentStr=[VideoDic objectForKey:@"WatchCount"]; |
| | | }else{ |
| | | recommentStr=[NSString stringWithFormat:@"%0.1fä¸",[[VideoDic objectForKey:@"WatchCount"] floatValue]/10000.0]; |
| | | } |
| | | cell.recommentrecommentVV.text=recommentStr; |
| | | //è¯è®ºæ°éCommentCount |
| | | cell.recommentCommentNub.textColor=kGlobalLightGreyColor_210; |
| | | NSString *commentCountStr; |
| | | if ([VideoDic objectForKey:@"CommentCount"]==nil) { |
| | | commentCountStr=[NSString stringWithFormat:@"0"]; |
| | | }else if ([[VideoDic objectForKey:@"CommentCount"] intValue]<10000) { |
| | | commentCountStr=[VideoDic objectForKey:@"CommentCount"]; |
| | | }else{ |
| | | commentCountStr=[NSString stringWithFormat:@"%0.1fä¸",[[VideoDic objectForKey:@"CommentCount"] floatValue]/10000.0]; |
| | | } |
| | | cell.recommentCommentNub.text=[NSString stringWithFormat:@"%@",commentCountStr]; |
| | | |
| | | //æ·»å é´å½± |
| | | cell.layer.masksToBounds = NO; |
| | | cell.layer.contentsScale = [UIScreen mainScreen].scale; |
| | | cell.layer.shadowOpacity = 0.7f; |
| | | cell.layer.shadowRadius = 1.0f; |
| | | cell.layer.shadowOffset = CGSizeMake(0,2); |
| | | cell.layer.shadowPath = [UIBezierPath bezierPathWithRect:cell.bounds].CGPath; |
| | | cell.layer.shadowColor = kGlobalLightGreyColor_223.CGColor; |
| | | //设置ç¼å |
| | | cell.layer.shouldRasterize = YES; |
| | | //设置æé¯é½¿è¾¹ç¼ |
| | | cell.layer.rasterizationScale = [UIScreen mainScreen].scale; |
| | | return cell; |
| | | }else{ |
| | | StartCollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"StartCollectionViewCell" forIndexPath:indexPath]; |
| | | [cell.image setYthImageWithURL:[_dataStar[indexPath.row] objectForKey:@"Portrait"] placeholderImage:[UIImage imageNamed:@"å
³æ³¨é»è®¤å¤´å"]]; |
| | | [cell.name setText:[_dataStar[indexPath.row] objectForKey:@"Name"]]; |
| | | return cell; |
| | | } |
| | | } |
| | | |
| | | - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{ |
| | | if(_dataStar.count>0){ |
| | | return _dataHomeType.count+2; |
| | | }else{ |
| | | |
| | | if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | return _dataHomeType.count+1; |
| | | }else{ |
| | | return 2; |
| | | } |
| | | |
| | | } |
| | | |
| | | /* |
| | | * collectviewå è½½æ°æ® * |
| | | */ |
| | | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{ |
| | | |
| | | if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | if (indexPath.section!=_dataHomeType.count+1) { |
| | | if (indexPath.section >=- _dataHomeType.count) { |
| | | return [recommentCollectionViewCell new]; |
| | | } |
| | | recommentCollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"recommentCollectionViewCell" forIndexPath:indexPath]; |
| | | //设置cellçèæ¯è²ï¼ç½è²ï¼ |
| | | cell.backgroundColor=[UIColor whiteColor]; |
| | | //å¨è¿é对cellè¿è¡è®¾ç½® |
| | | NSArray *HomeVideoList=[_dataHomeType[indexPath.section-1] objectForKey:@"HomeVideoList"]; |
| | | if (indexPath.row >= HomeVideoList.count) { |
| | | return cell; |
| | | } |
| | | |
| | | NSDictionary *VideoInformation=HomeVideoList[indexPath.row]; |
| | | NSString *picStr=[VideoInformation objectForKey:@"Picture"]; |
| | | NSDictionary *VideoDic=[VideoInformation objectForKey:@"Video"]; |
| | | //设置å¾ç |
| | | cell.recommentImageView.contentMode=UIViewContentModeScaleAspectFill; |
| | | if (picStr.length>1) { |
| | | [cell.recommentImageView setYthImageWithURL:picStr placeholderImage:[UIImage imageNamed:@"é»è®¤å è½½å¾ç"]]; |
| | | }else{ |
| | | picStr=[VideoDic objectForKey:@"Picture"]; |
| | | [cell.recommentImageView setYthImageWithURL:picStr placeholderImage:[UIImage imageNamed:@"é»è®¤å è½½å¾ç"]]; |
| | | } |
| | | //设置çè¯ï¼å¦ææTag就设置Tag,没æTag就设置Scoreï¼ |
| | | NSString *TagStr1=[VideoInformation objectForKey:@"Tag"]; |
| | | NSString *TagStr2=[VideoDic objectForKey:@"Tag"]; |
| | | NSString *Score=[VideoDic objectForKey:@"Score"]; |
| | | if(TagStr1.length>1){ |
| | | cell.recommentReplyLabel.text=TagStr1; |
| | | }else if(TagStr2.length>1){ |
| | | cell.recommentReplyLabel.text=TagStr2; |
| | | }else if([Score intValue]>0){ |
| | | cell.recommentReplyLabel.text=[NSString stringWithFormat:@"è¯å:%@",Score]; |
| | | }else{ |
| | | cell.recommentReplyLabel.text=[NSString stringWithFormat:@"è¯å:æ "]; |
| | | } |
| | | cell.recommentReplyLabel.backgroundColor=[UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.7]; |
| | | //æ é¢ |
| | | cell.recommentTitleLabel.text=[NSString stringWithFormat:@"%@",[VideoDic objectForKey:@"Name"]]; |
| | | //è§çæ°é |
| | | cell.recommentrecommentVV.textColor=kGlobalLightGreyColor_210; |
| | | NSString *recommentStr; |
| | | if([VideoDic objectForKey:@"WatchCount"]==nil||[[VideoDic objectForKey:@"WatchCount"] isEqualToString:@"(null)"]){ |
| | | recommentStr=[NSString stringWithFormat:@"0"]; |
| | | }else if ([[VideoDic objectForKey:@"WatchCount"] intValue]<10000) { |
| | | recommentStr=[VideoDic objectForKey:@"WatchCount"]; |
| | | }else{ |
| | | recommentStr=[NSString stringWithFormat:@"%0.1fä¸",[[VideoDic objectForKey:@"WatchCount"] floatValue]/10000.0]; |
| | | } |
| | | cell.recommentrecommentVV.text=recommentStr; |
| | | //è¯è®ºæ°éCommentCount |
| | | cell.recommentCommentNub.textColor=kGlobalLightGreyColor_210; |
| | | NSString *commentCountStr; |
| | | if ([VideoDic objectForKey:@"CommentCount"]==nil) { |
| | | commentCountStr=[NSString stringWithFormat:@"0"]; |
| | | }else if ([[VideoDic objectForKey:@"CommentCount"] intValue]<10000) { |
| | | commentCountStr=[VideoDic objectForKey:@"CommentCount"]; |
| | | }else{ |
| | | commentCountStr=[NSString stringWithFormat:@"%0.1fä¸",[[VideoDic objectForKey:@"CommentCount"] floatValue]/10000.0]; |
| | | } |
| | | cell.recommentCommentNub.text=[NSString stringWithFormat:@"%@",commentCountStr]; |
| | | |
| | | //æ·»å é´å½± |
| | | cell.layer.masksToBounds = NO; |
| | | cell.layer.contentsScale = [UIScreen mainScreen].scale; |
| | | cell.layer.shadowOpacity = 0.7f; |
| | | cell.layer.shadowRadius = 1.0f; |
| | | cell.layer.shadowOffset = CGSizeMake(0,2); |
| | | cell.layer.shadowPath = [UIBezierPath bezierPathWithRect:cell.bounds].CGPath; |
| | | cell.layer.shadowColor = kGlobalLightGreyColor_223.CGColor; |
| | | //设置ç¼å |
| | | cell.layer.shouldRasterize = YES; |
| | | //设置æé¯é½¿è¾¹ç¼ |
| | | cell.layer.rasterizationScale = [UIScreen mainScreen].scale; |
| | | return cell; |
| | | } |
| | | else{ |
| | | StartCollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"StartCollectionViewCell" forIndexPath:indexPath]; |
| | | [cell.image setYthImageWithURL:[_dataStar[indexPath.row] objectForKey:@"Portrait"] placeholderImage:[UIImage imageNamed:@"å
³æ³¨é»è®¤å¤´å"]]; |
| | | [cell.name setText:[_dataStar[indexPath.row] objectForKey:@"Name"]]; |
| | | return cell; |
| | | } |
| | | }else{ |
| | | if (indexPath.row < _dataHomeType.count) { |
| | | recommentCollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"recommentCollectionViewCell" forIndexPath:indexPath]; |
| | | // if (indexPath.row > _dataHomeType.count) { |
| | | // return cell; |
| | | // } |
| | | |
| | | //设置cellçèæ¯è²ï¼ç½è²ï¼ |
| | | cell.backgroundColor=[UIColor whiteColor]; |
| | | //å¨è¿é对cellè¿è¡è®¾ç½® |
| | | // NSArray *HomeVideoList=_dataHomeType[indexPath.row]; |
| | | |
| | | NSDictionary *VideoInformation=_dataHomeType[indexPath.row]; |
| | | NSString *picStr=[VideoInformation objectForKey:@"Picture"]; |
| | | NSDictionary *VideoDic=VideoInformation; |
| | | //设置å¾ç |
| | | cell.recommentImageView.contentMode=UIViewContentModeScaleAspectFill; |
| | | if (picStr.length>1) { |
| | | [cell.recommentImageView setYthImageWithURL:picStr placeholderImage:[UIImage imageNamed:@"é»è®¤å è½½å¾ç"]]; |
| | | }else{ |
| | | picStr=[VideoDic objectForKey:@"Picture"]; |
| | | [cell.recommentImageView setYthImageWithURL:picStr placeholderImage:[UIImage imageNamed:@"é»è®¤å è½½å¾ç"]]; |
| | | } |
| | | //设置çè¯ï¼å¦ææTag就设置Tag,没æTag就设置Scoreï¼ |
| | | NSString *TagStr1=[VideoInformation objectForKey:@"Tag"]; |
| | | NSString *TagStr2=[VideoDic objectForKey:@"Tag"]; |
| | | NSString *Score=[VideoDic objectForKey:@"Score"]; |
| | | NSLog(@"%@ -- %@ -- %@",TagStr1,TagStr2,Score); |
| | | NSLog(@"----%@ ---- %@ ----",VideoDic,_dataHomeType[indexPath.row]); |
| | | if ([TagStr1 isEqual:[NSNull null]]) |
| | | { |
| | | TagStr1 = @""; |
| | | } |
| | | if ([TagStr2 isEqual:[NSNull null]]) |
| | | { |
| | | TagStr2 = @""; |
| | | } |
| | | if ([Score isEqual:[NSNull null]]) |
| | | { |
| | | Score = @""; |
| | | } |
| | | if(TagStr1.length>1){ |
| | | cell.recommentReplyLabel.text=TagStr1; |
| | | }else if(TagStr2.length>1){ |
| | | cell.recommentReplyLabel.text=TagStr2; |
| | | }else if([Score intValue]>0){ |
| | | cell.recommentReplyLabel.text=[NSString stringWithFormat:@"è¯å:%@",Score]; |
| | | cell.recommentReplyLabel.hidden = NO; |
| | | }else{ |
| | | //cell.recommentReplyLabel.text=[NSString stringWithFormat:@"è¯å:æ "]; |
| | | cell.recommentReplyLabel.hidden = YES; |
| | | } |
| | | cell.recommentReplyLabel.backgroundColor=[UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.7]; |
| | | //æ é¢ |
| | | cell.recommentTitleLabel.text=[NSString stringWithFormat:@"%@",[VideoInformation objectForKey:@"Name"]]; |
| | | //è§çæ°é |
| | | cell.recommentrecommentVV.textColor=kGlobalLightGreyColor_210; |
| | | NSString *recommentStr; |
| | | if([VideoDic objectForKey:@"WatchCount"]==nil||[[VideoDic objectForKey:@"WatchCount"] isEqualToString:@"(null)"]){ |
| | | recommentStr=[NSString stringWithFormat:@"0"]; |
| | | }else if ([[VideoDic objectForKey:@"WatchCount"] intValue]<10000) { |
| | | recommentStr=[VideoDic objectForKey:@"WatchCount"]; |
| | | }else{ |
| | | recommentStr=[NSString stringWithFormat:@"%0.1fä¸",[[VideoDic objectForKey:@"WatchCount"] floatValue]/10000.0]; |
| | | } |
| | | cell.recommentrecommentVV.text=recommentStr; |
| | | //è¯è®ºæ°éCommentCount |
| | | cell.recommentCommentNub.textColor=kGlobalLightGreyColor_210; |
| | | NSString *commentCountStr; |
| | | if ([VideoDic objectForKey:@"CommentCount"]==nil) { |
| | | commentCountStr=[NSString stringWithFormat:@"0"]; |
| | | }else if ([[VideoDic objectForKey:@"CommentCount"] intValue]<10000) { |
| | | commentCountStr=[VideoDic objectForKey:@"CommentCount"]; |
| | | }else{ |
| | | commentCountStr=[NSString stringWithFormat:@"%0.1fä¸",[[VideoDic objectForKey:@"CommentCount"] floatValue]/10000.0]; |
| | | } |
| | | cell.recommentCommentNub.text=[NSString stringWithFormat:@"%@",commentCountStr]; |
| | | |
| | | //æ·»å é´å½± |
| | | cell.layer.masksToBounds = NO; |
| | | cell.layer.contentsScale = [UIScreen mainScreen].scale; |
| | | cell.layer.shadowOpacity = 0.7f; |
| | | cell.layer.shadowRadius = 1.0f; |
| | | cell.layer.shadowOffset = CGSizeMake(0,2); |
| | | cell.layer.shadowPath = [UIBezierPath bezierPathWithRect:cell.bounds].CGPath; |
| | | cell.layer.shadowColor = kGlobalLightGreyColor_223.CGColor; |
| | | //设置ç¼å |
| | | cell.layer.shouldRasterize = YES; |
| | | //设置æé¯é½¿è¾¹ç¼ |
| | | cell.layer.rasterizationScale = [UIScreen mainScreen].scale; |
| | | return cell; |
| | | }else{ |
| | | // StartCollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"StartCollectionViewCell" forIndexPath:indexPath]; |
| | | // [cell.image setYthImageWithURL:[_dataStar[indexPath.row] objectForKey:@"Portrait"] placeholderImage:[UIImage imageNamed:@"å
³æ³¨é»è®¤å¤´å"]]; |
| | | // [cell.name setText:[_dataStar[indexPath.row] objectForKey:@"Name"]]; |
| | | // return cell; |
| | | recommentCollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"recommentCollectionViewCell" forIndexPath:indexPath]; |
| | | |
| | | return cell; |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | //å®å¶collectionViewçheadåfoot |
| | |
| | | header.HeaderTitle.text=@"ææåé"; |
| | | header.headerMore.tag=500+indexPath.section; |
| | | [header.headerMore addTarget:self action:@selector(GetMoreInformationAboutClassification:) forControlEvents:UIControlEventTouchUpInside]; |
| | | [header.headerMore setHidden:NO]; |
| | | // [header.headerMore setHidden:NO]; |
| | | return header; |
| | | }else{ |
| | | }else { |
| | | //åç±»æ 头 |
| | | HeaderCollectionReusableView *header=[collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"HeaderCollectionReusableView" forIndexPath:indexPath]; |
| | | [header.headerImage setYthImageWithURL:[_dataHomeType[indexPath.section-1] objectForKey:@"Icon"] placeholderImage:[UIImage imageNamed:@"仿¥çç¹"]]; |
| | | header.HeaderTitle.text=[_dataHomeType[indexPath.section-1] objectForKey:@"Name"]; |
| | | if([[_dataHomeType[indexPath.section-1] objectForKey:@"HasMore"] boolValue]){ |
| | | header.headerMore.tag=500+indexPath.section; |
| | | [header.headerMore addTarget:self action:@selector(GetMoreInformationAboutClassification:) forControlEvents:UIControlEventTouchUpInside]; |
| | | [header.headerMore setHidden:NO]; |
| | | |
| | | if ([_type_id integerValue] == 309 ) { |
| | | [header.headerImage setYthImageWithURL:[_dataHomeType[indexPath.section-1] objectForKey:@"Icon"] placeholderImage:[UIImage imageNamed:@"仿¥çç¹"]]; |
| | | header.HeaderTitle.text=[_dataHomeType[indexPath.section-1] objectForKey:@"Name"]; |
| | | if([[_dataHomeType[indexPath.section-1] objectForKey:@"HasMore"] boolValue]){ |
| | | header.headerMore.tag=500+indexPath.section; |
| | | [header.headerMore addTarget:self action:@selector(GetMoreInformationAboutClassification:) forControlEvents:UIControlEventTouchUpInside]; |
| | | // [header.headerMore setHidden:NO]; |
| | | }else{ |
| | | // [header.headerMore setHidden:YES]; |
| | | } |
| | | return header; |
| | | }else if([_type_id integerValue] == 310){ |
| | | header.headerImage.image = [UIImage imageNamed:@"ææåè¾"]; |
| | | header.HeaderTitle.text=[_dataHomeType[indexPath.section-1] objectForKey:@"Name"]; |
| | | if([[_dataHomeType[indexPath.section-1] objectForKey:@"HasMore"] boolValue]){ |
| | | header.headerMore.tag=500+indexPath.section; |
| | | [header.headerMore addTarget:self action:@selector(GetMoreInformationAboutClassification:) forControlEvents:UIControlEventTouchUpInside]; |
| | | } |
| | | return header; |
| | | }else{ |
| | | [header.headerMore setHidden:YES]; |
| | | // [header.headerMore setHidden:YES]; |
| | | header.headerImage.image = [UIImage imageNamed:@"仿¥çç¹"]; |
| | | header.HeaderTitle.text = @"çææ¨è"; |
| | | return header; |
| | | } |
| | | return header; |
| | | |
| | | } |
| | | } |
| | | if(kind == UICollectionElementKindSectionFooter){ |
| | |
| | | //è¿ç§æ
嵿¯æé¤bannerå¹¿åæªå è½½åºæ¥çæ
åµ |
| | | if(_adView!=nil){ |
| | | [footer addSubview:_adView]; |
| | | footer.hidden = YES; |
| | | return footer; |
| | | }else{ |
| | | return nil; |
| | | } |
| | | }else if (indexPath.section==1) { |
| | | return footer; |
| | | }else |
| | | if (indexPath.section==1) { |
| | | //è¿å广åè§å¾ |
| | | ADCollectionReusableView *groupfootSection = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionFooter withReuseIdentifier:@"ADCollectionReusableView" forIndexPath:indexPath]; |
| | | GDTNativeAdData *info; |
| | |
| | | //é«åº¦ä¸ºåç»å¤´çé«åº¦ |
| | | if(section==0){ |
| | | //设置轮æå¾çé«åº¦ |
| | | return CGSizeMake(0, KScreenW*7/16); |
| | | if ([_type_id integerValue] == 310) { |
| | | return CGSizeMake(0, KScreenH / 3.12); |
| | | }else{ |
| | | return CGSizeMake(0, KScreenW*7/16); |
| | | } |
| | | }else{ |
| | | return CGSizeMake(0, 50); |
| | | } |
| | | } |
| | | - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForFooterInSection:(NSInteger)section{ |
| | | if (section==0) { |
| | | if(_adView!=nil){ |
| | | if(_adView.dataArray.count>0){ |
| | | return CGSizeMake(0, 50); |
| | | }else{ |
| | | return CGSizeMake(0, 0); |
| | | } |
| | | }else{ |
| | | // if(_adView!=nil){ |
| | | // if(_adView.dataArray.count>0){ |
| | | // return CGSizeMake(0, 50); |
| | | // }else{ |
| | | // return CGSizeMake(0, 0); |
| | | // } |
| | | // }else{ |
| | | return CGSizeMake(0, 0); |
| | | } |
| | | // } |
| | | }else if(section==1){ |
| | | if (nativeArray==nil) { |
| | | return CGSizeMake(0, 0); |
| | |
| | | if (self.dataAdverti == nil || self.dataAdverti.count<1) { |
| | | return; |
| | | } |
| | | |
| | | if (indexPath.section==_dataHomeType.count+1) { |
| | | IndividualStarController * IndividualStarVC = [IndividualStarController new]; |
| | | IndividualStarVC.data = _dataStar[indexPath.row]; |
| | |
| | | |
| | | NSString *s = [[_dataHomeType[indexPath.section-1] objectForKey:@"Params"] stringByReplacingOccurrencesOfString:[NSString stringWithFormat:@"%@\"",@"\\"] withString:@"\""]; |
| | | NSDictionary *Params = [self dictionaryWithJsonString:s]; |
| | | // if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | // |
| | | // }else{ |
| | | // |
| | | // } |
| | | |
| | | // NSDictionary *Params = _dataHomeType[indexPath.row]; |
| | | //å 为ç¦å©ç¤¾çæ ·å¼æ¯ä¸å
¶ä»åç±»çæ´å¤ä¿¡æ¯ä¸ä¸æ ·ï¼æä»¥ï¼å¿
é¡»è¦åä¸ä¸ªå¤æ |
| | | NSLog( @"%@",Params); |
| | | NSLog(@"%@",[Params objectForKey:@"Name"]); |
| | | if ([[Params objectForKey:@"Name"] isEqualToString:@"ç¦å©ç¤¾"]) { |
| | | //é¦å
ï¼ä½ éè¦å¤æShowAdæ¯å¦ä¸ºç©º |
| | | NSUserDefaults *uid = [NSUserDefaults standardUserDefaults]; |
| | |
| | | IndividualStarVC.data = _dataStar[indexPath.row]; |
| | | [[self viewController].navigationController pushViewController:IndividualStarVC animated:YES]; |
| | | }else{ |
| | | NSArray *HomeVideoList=[self.dataHomeType[indexPath.section-1] objectForKey:@"HomeVideoList"]; |
| | | XYRDetailViewController *play=[[XYRDetailViewController alloc]init]; |
| | | play.Model = [XYRVideoInfoModel yy_modelWithDictionary:[HomeVideoList[indexPath.row] objectForKey:@"Video"]]; |
| | | [[self viewController] presentViewController:play animated:YES completion:^{ |
| | | |
| | | }]; |
| | | if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | NSArray *HomeVideoList=[self.dataHomeType[indexPath.section-1] objectForKey:@"HomeVideoList"]; |
| | | XYRDetailViewController *play=[[XYRDetailViewController alloc]init]; |
| | | play.Model = [XYRVideoInfoModel yy_modelWithDictionary:[HomeVideoList[indexPath.row] objectForKey:@"Video"]]; |
| | | [[self viewController] presentViewController:play animated:YES completion:^{ |
| | | |
| | | }]; |
| | | }else{ |
| | | NSDictionary *HomeVideoList=self.dataHomeType[indexPath.row]; |
| | | XYRDetailViewController *play=[[XYRDetailViewController alloc]init]; |
| | | play.Model = [XYRVideoInfoModel yy_modelWithDictionary:HomeVideoList]; |
| | | [[self viewController] presentViewController:play animated:YES completion:^{ |
| | | |
| | | }]; |
| | | } |
| | | |
| | | } |
| | | } |
| | | }else{ |
| | | |
| | | NSArray *HomeVideoList=[self.dataHomeType[indexPath.section-1] objectForKey:@"HomeVideoList"]; |
| | | XYRDetailViewController *play=[[XYRDetailViewController alloc]init]; |
| | | play.Model = [XYRVideoInfoModel yy_modelWithDictionary:[HomeVideoList[indexPath.row] objectForKey:@"Video"]]; |
| | | [[self viewController] presentViewController:play animated:YES completion:^{ |
| | | |
| | | }]; |
| | | if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | NSArray *HomeVideoList=[self.dataHomeType[indexPath.section-1] objectForKey:@"HomeVideoList"]; |
| | | XYRDetailViewController *play=[[XYRDetailViewController alloc]init]; |
| | | play.Model = [XYRVideoInfoModel yy_modelWithDictionary:[HomeVideoList[indexPath.row] objectForKey:@"Video"]]; |
| | | [[self viewController] presentViewController:play animated:YES completion:^{ |
| | | }]; |
| | | }else{ |
| | | NSDictionary *HomeVideoList=self.dataHomeType[indexPath.row] ; |
| | | XYRDetailViewController *play=[[XYRDetailViewController alloc]init]; |
| | | play.Model = [XYRVideoInfoModel yy_modelWithDictionary:HomeVideoList]; |
| | | [[self viewController] presentViewController:play animated:YES completion:^{ |
| | | }]; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | NSInteger LinkType = [[self.dataAdverti[index] objectForKey:@"LinkType"] integerValue]; |
| | | if (LinkType == 1) {//æ®éè§é¢è·³è½¬ |
| | | XYRDetailViewController *play=[[XYRDetailViewController alloc]init]; |
| | | play.Model = [XYRVideoInfoModel yy_modelWithDictionary:[self.dataAdverti[index] objectForKey:@"Video"]]; |
| | | NSString *video = @""; |
| | | if ([_type_id integerValue] == 309 || [_type_id integerValue] == 310) { |
| | | video = @"Video"; |
| | | }else{ |
| | | video = @"VideoInfo"; |
| | | } |
| | | NSLog(@"%@",self.dataAdverti[index]); |
| | | play.Model = [XYRVideoInfoModel yy_modelWithDictionary:[self.dataAdverti[index] objectForKey:video]]; |
| | | [[self viewController] presentViewController:play animated:YES completion:^{ |
| | | |
| | | }]; |
| | |
| | | //éç¥è§å¾å è½½èæå¹¿å |
| | | googleNoAdToShow=YES; |
| | | //å·æ°è§å¾ |
| | | [_recommentCollectionView reloadData]; |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag +maintypeNumber]; |
| | | // UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | [self collectLoadNewData]; |
| | | // [collectview reloadData]; |
| | | // [_recommentCollectionView reloadData]; |
| | | } |
| | | |
| | | #pragma mark -GADNativeAppInstallAdLoaderDelegate |
| | |
| | | |
| | | // Add appInstallAdView to the view controller's view. |
| | | self.nativeAdView=appInstallAdView; |
| | | [_recommentCollectionView reloadData]; |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | UICollectionView *collectview = self.collectArray[maintypeNumber]; |
| | | [self collectLoadNewData]; |
| | | |
| | | // [collectview reloadData]; |
| | | // [_recommentCollectionView reloadData]; |
| | | } |
| | | |
| | | // Gets an image representing the number of stars. Returns nil if rating is less than 3.5 stars. |
| | |
| | | }else{ |
| | | [nativeArray addObjectsFromArray:nativeAdDataArray]; |
| | | } |
| | | [_recommentCollectionView reloadData]; |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | [self collectLoadNewData]; |
| | | |
| | | // [collectview reloadData]; |
| | | // [_recommentCollectionView reloadData]; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | #pragma mark -GADNativeContentAdLoaderDelegate |
| | | - (void)adLoader:(GADAdLoader *)adLoader |
| | | didReceiveNativeContentAd:(GADNativeContentAd *)nativeContentAd{ |
| | | - (void)adLoader:(GADAdLoader *)adLoader didReceiveNativeContentAd:(GADNativeContentAd *)nativeContentAd{ |
| | | |
| | | } |
| | | #pragma mark - UIScrollViewDelegate |
| | | - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView { |
| | | CGFloat pageWidth =KScreenW; |
| | | NSInteger page = scrollView.contentOffset.x / pageWidth; |
| | | NSLog(@"%d",scrollView.mj_header.isRefreshing); |
| | | if([scrollView isKindOfClass:[UICollectionView class]]){ |
| | | NSLog(@""); |
| | | }else{ |
| | | if (scrollView.mj_header.isRefreshing) { |
| | | NSLog(@"%d",scrollView.mj_header.isRefreshing); |
| | | }else{ |
| | | maintypeNumber = page; |
| | | _type_id = self.classArray[page][@"Id"]; |
| | | [self.vidioGmentControl setSelectedSegmentIndex:page animated:YES]; |
| | | [self loadNewData]; |
| | | } |
| | | } |
| | | |
| | | } |
| | | //æ·»å 主UIScrollView |
| | | -(void)addScrollView { |
| | | _scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 104, KScreenW, self.frame.size.height-104)]; |
| | | _scrollView.pagingEnabled = YES; |
| | | _scrollView.showsHorizontalScrollIndicator = NO; |
| | | _scrollView.contentSize = CGSizeMake(KScreenW * self.classArray.count , self.frame.size.height-104); |
| | | _scrollView.delegate = self; |
| | | [_scrollView scrollRectToVisible:CGRectMake(0, 0, KScreenW, self.frame.size.height-104) animated:NO]; |
| | | [_cycleScrollView adjustWhenControllerViewWillAppera]; |
| | | [self addSubview:self.scrollView]; |
| | | // _scrollView .alwaysBounceVertical = YES; |
| | | // _scrollView .alwaysBounceHorizontal = YES; |
| | | for (NSInteger index = 0; index <self.classArray.count; index++) { |
| | | UICollectionViewFlowLayout *flow = [[UICollectionViewFlowLayout alloc]init]; |
| | | //æå®å¸å±æ¹å¼ä¸ºåç´ |
| | | flow.scrollDirection = UICollectionViewScrollDirectionVertical; |
| | | flow.minimumLineSpacing = 10;//æå°è¡é´è·(å½åç´å¸å±æ¶æ¯è¡é´è·ï¼å½æ°´å¹³å¸å±æ¶å¯ä»¥ç解为åé´è·) |
| | | flow.minimumInteritemSpacing = 10;//两个åå
æ ¼ä¹é´çæå°é´è· |
| | | |
| | | UICollectionView *collectview = [[UICollectionView alloc]initWithFrame:CGRectMake( KScreenW * index,0, KScreenW, _scrollView.frame.size.height - 49) collectionViewLayout:flow]; |
| | | collectview.tag = collectTag + index; |
| | | collectview.delegate=self; |
| | | collectview.dataSource=self; |
| | | collectview.backgroundColor=kGlobalBackgroundColor; |
| | | //注åcell |
| | | [collectview registerNib:[UINib nibWithNibName:@"recommentCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"recommentCollectionViewCell"]; |
| | | //æ³¨åæ¿è½½ææä¿¡æ¯çcell |
| | | [collectview registerNib:[UINib nibWithNibName:@"StartCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"StartCollectionViewCell"]; |
| | | //设置轮æå¾çhead |
| | | [collectview registerNib:[UINib nibWithNibName:@"shufflingCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"shufflingCollectionReusableView"]; |
| | | //设置å°å¹¿åçfoot |
| | | [collectview registerNib:[UINib nibWithNibName:@"FooterCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionFooter withReuseIdentifier:@"FooterCollectionReusableView"]; |
| | | //设置å类头çhead |
| | | [collectview registerNib:[UINib nibWithNibName:@"HeaderCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"HeaderCollectionReusableView"]; |
| | | //设置尾é¨å¹¿ç¹éåç广åçfoot |
| | | [collectview registerNib:[UINib nibWithNibName:@"ADCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionFooter withReuseIdentifier:@"ADCollectionReusableView"]; |
| | | //设置尾é¨è°·æå¹¿åçfoot |
| | | [collectview registerNib:[UINib nibWithNibName:@"GoogleAdCollectionReusableView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionFooter withReuseIdentifier:@"GoogleAdCollectionReusableView"]; |
| | | //æ¨èè§å¾ |
| | | //å
æ¥æ¶çæ¯å¦ææ§çæ°æ®ï¼å¨ç½ç»å·®çæ¶åä¼å
å è½½æ§çæ°æ® |
| | | //ç»collectionViewè®¾ç½®ä¸æå·æ° |
| | | collectview.mj_header=[MJRefreshNormalHeader headerWithRefreshingBlock:^{ |
| | | NSLog(@"tag %ld === collectTag %ld ",(long)maintypeNumber + collectTag,(long)collectview.tag); |
| | | if (collectview == self.collectArray[maintypeNumber]) { |
| | | // [collectview.mj_header beginRefreshing]; |
| | | [self loadNewData]; |
| | | } |
| | | }]; |
| | | [self.collectArray addObject:collectview]; |
| | | [_scrollView addSubview:collectview]; |
| | | } |
| | | maintypeNumber = 0; |
| | | _type_id = self.classArray[0][@"Id"]; |
| | | // UICollectionView *collectview = [self viewWithTag:collectTag + maintypeNumber]; |
| | | // [collectview.mj_header beginRefreshing]; |
| | | [self loadOldData]; |
| | | // NSInteger rand = arc4random()%300; |
| | | // NSDate *date = [NSDate date]; |
| | | // [[NSUserDefaults standardUserDefaults] setObject:date forKey:@"myworld"]; |
| | | // if (rand < 50) { |
| | | // double time = -[date timeIntervalSinceNow]; |
| | | // if (time > 20) { |
| | | // for (NSInteger index = 0; index < (NSInteger)time;index ++) { |
| | | // [self loadNewData]; |
| | | // } |
| | | // } |
| | | // } |
| | | } |
| | | |
| | | @end |
New file |
| | |
| | | // |
| | | // recommendViewController.h |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import <UIKit/UIKit.h> |
| | | |
| | | @interface recommendViewController :BaseViewController |
| | | |
| | | @end |
New file |
| | |
| | | // |
| | | // recommendViewController.m |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import "recommendViewController.h" |
| | | #import "recommendView.h" |
| | | @interface recommendViewController () |
| | | @property (nonatomic,strong)recommendView *recommendView; |
| | | @end |
| | | |
| | | @implementation recommendViewController |
| | | - (instancetype)init { |
| | | self = [super init]; |
| | | if (self) { |
| | | self.title = @"ç²¾é"; |
| | | UITabBarItem *item = [[UITabBarItem alloc]initWithTitle:self.title image:[UIImage imageNamed:@"Home-æ·è´"] selectedImage:[UIImage imageNamed:@"Home"]]; |
| | | item.titlePositionAdjustment = UIOffsetMake(0, -5); |
| | | // item.imageInsets = UIEdgeInsetsMake(1, 0, 2, 0); |
| | | self.tabBarItem = item; |
| | | } |
| | | return self; |
| | | } |
| | | |
| | | - (void)viewDidLoad { |
| | | [super viewDidLoad]; |
| | | self.automaticallyAdjustsScrollViewInsets = NO; |
| | | [self.view addSubview:self.recommendView]; |
| | | } |
| | | |
| | | #pragma mark - getter |
| | | - (recommendView *)recommendView{ |
| | | if (_recommendView) { |
| | | return _recommendView; |
| | | } |
| | | _recommendView = [[recommendView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; |
| | | return _recommendView; |
| | | } |
| | | |
| | | |
| | | - (void)didReceiveMemoryWarning { |
| | | [super didReceiveMemoryWarning]; |
| | | // Dispose of any resources that can be recreated. |
| | | } |
| | | |
| | | /* |
| | | #pragma mark - Navigation |
| | | |
| | | // In a storyboard-based application, you will often want to do a little preparation before navigation |
| | | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { |
| | | // Get the new view controller using [segue destinationViewController]. |
| | | // Pass the selected object to the new view controller. |
| | | } |
| | | */ |
| | | |
| | | @end |
| | |
| | | |
| | | searchField.delegate = self; |
| | | self.searchField = searchField; |
| | | searchField.layer.cornerRadius =searchField.frame.size.height / 2; |
| | | searchField.layer.masksToBounds = YES; |
| | | searchField.backgroundColor = [UIColor colorWithWhite:0.7 alpha:0.2]; |
| | | |
| | | [titleView addSubview:searchField]; |
| | | self.navigationItem.titleView = titleView; |
| | | //åæ¶è¾å
¥æ¡ç第ä¸ååºäºä»¶ |
| | |
| | | - (void)setNavgtionView{ |
| | | UIView *titleView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, KScreenW-115, 30)]; |
| | | YTHSearchTextField *searchField = [[YTHSearchTextField alloc] initWithFrame:CGRectMake(0, 0, titleView.frame.size.width, titleView.frame.size.height)]; |
| | | |
| | | searchField.layer.cornerRadius =searchField.frame.size.height / 2; |
| | | searchField.layer.masksToBounds = YES; |
| | | searchField.delegate = self; |
| | | searchField.backgroundColor = [UIColor colorWithWhite:0.7 alpha:0.2]; |
| | | self.searchField = searchField; |
| | | [titleView addSubview:searchField]; |
| | | self.navigationItem.titleView = titleView; |
| | | |
| | | [searchField.Field resignFirstResponder]; |
| | | |
| | | searchField.Field.text = self.searchString; |
| | | |
| | | searchField.Field.text = [YTHsharedManger startManger].searchTitle; |
| | | //å®å¶è¿åæé® |
| | | UIButton *backBtn=[[UIButton alloc] initWithFrame:CGRectMake(0, 0, 30, 50)]; |
| | | [backBtn setTitle:@"è¿å" forState:UIControlStateNormal]; |
| | |
| | | for (int i =0; i<ar.count; i++) { |
| | | [_dataHot addObject:[ar objectAtIndex:i]]; |
| | | } |
| | | // self.searchField |
| | | //å·æ°çé¨æç´¢ |
| | | [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]]; |
| | | }else{ |
| | |
| | | |
| | | //å建collectionViewè§å¾ |
| | | if (!_collview) { |
| | | _collview = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, KScreenW,KScreenH-kNavigationBarH-kToolBarH) collectionViewLayout:flowlayout]; |
| | | _collview = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, KScreenW,KScreenH-44) collectionViewLayout:flowlayout]; |
| | | } |
| | | _collview.scrollEnabled = YES; |
| | | _collview.backgroundColor = [UIColor whiteColor]; |
| | |
| | | [_dataClass removeAllObjects]; |
| | | NSArray *ar = [[dic objectForKey:@"Data"] objectForKey:@"data"]; |
| | | for (int i = 0; i<ar.count; i++) { |
| | | if ([[ar objectAtIndex:i][@"Id"]integerValue] == 309 || [[ar objectAtIndex:i][@"Id"]integerValue] == 310) { |
| | | continue; |
| | | } |
| | | NSLog(@"---- %@ ----",[ar objectAtIndex:i]); |
| | | [_dataClass addObject:[ar objectAtIndex:i]]; |
| | | } |
| | | NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_dataClass]; |
| | |
| | | SubregionDetailViewController *subregionVC=[[SubregionDetailViewController alloc] init]; |
| | | subregionVC.Id=[[_dataClass objectAtIndex:indexPath.row] objectForKey:@"Id"]; |
| | | subregionVC.titles=[[_dataClass objectAtIndex:indexPath.row] objectForKey:@"Name"]; |
| | | [subregionVC setHidesBottomBarWhenPushed:YES]; |
| | | |
| | | [[self viewController].navigationController pushViewController:subregionVC animated:YES]; |
| | | } |
| | | |
New file |
| | |
| | | // |
| | | // subregionViewController.h |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import <UIKit/UIKit.h> |
| | | |
| | | @interface subregionViewController : BaseViewController |
| | | |
| | | @end |
New file |
| | |
| | | // |
| | | // subregionViewController.m |
| | | // BuWanVideo2.0 |
| | | // |
| | | // Created by apple on 2018/3/13. |
| | | // Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved. |
| | | // |
| | | |
| | | #import "subregionViewController.h" |
| | | #import "subregionView.h" |
| | | @interface subregionViewController () |
| | | @property (nonatomic,strong) subregionView *subrView; |
| | | @end |
| | | |
| | | @implementation subregionViewController |
| | | - (instancetype)init { |
| | | self = [super init]; |
| | | if (self) { |
| | | self.title = @"åç±»"; |
| | | UITabBarItem *item = [[UITabBarItem alloc]initWithTitle:self.title image:[UIImage imageNamed:@"Camera-æ·è´"] selectedImage:[UIImage imageNamed:@"Camera"]]; |
| | | item.titlePositionAdjustment = UIOffsetMake(0, -5); |
| | | self.tabBarItem = item; |
| | | } |
| | | return self; |
| | | } |
| | | - (void)viewDidLoad { |
| | | [super viewDidLoad]; |
| | | self.view.backgroundColor = [UIColor whiteColor]; |
| | | [self.view addSubview:self.subrView]; |
| | | } |
| | | |
| | | - (subregionView *)subrView { |
| | | if (_subrView) { |
| | | return _subrView; |
| | | } |
| | | _subrView = [[subregionView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; |
| | | return _subrView; |
| | | } |
| | | |
| | | - (void)didReceiveMemoryWarning { |
| | | [super didReceiveMemoryWarning]; |
| | | // Dispose of any resources that can be recreated. |
| | | } |
| | | |
| | | /* |
| | | #pragma mark - Navigation |
| | | |
| | | // In a storyboard-based application, you will often want to do a little preparation before navigation |
| | | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { |
| | | // Get the new view controller using [segue destinationViewController]. |
| | | // Pass the selected object to the new view controller. |
| | | } |
| | | */ |
| | | |
| | | @end |
| | |
| | | #define PrefixHeader_pch |
| | | |
| | | #import "Common.h" |
| | | |
| | | #import "BaseViewController.h" |
| | | #import "JYNetWorking.h" |
| | | #endif /* PrefixHeader_pch */ |
| | | |
| | | #define DEVICE_TYPE_IPAD ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) |
| | | #define DEVICE_TYPE_IPAD ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) |