Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
detail fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bi119aTe5hXk committed Aug 17, 2015
1 parent e9bf748 commit 42ad1af
Show file tree
Hide file tree
Showing 20 changed files with 61 additions and 30 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* 无跟踪
* 无强制评分
* 无捆绑销售
* 支持AppleWatch

[了解更多](http://chii.in/group/topic/32239)

Expand All @@ -24,4 +25,4 @@

[捐助](http://blog.bi119ate5hxk.net/donate/)

@bi119aTe5hXk 2014
@bi119aTe5hXk 2015
13 changes: 9 additions & 4 deletions bangumi WatchKit App/Base.lproj/Interface.storyboard
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder.WatchKit.Storyboard" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="watchKit" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="cui-ud-jnF">
<document type="com.apple.InterfaceBuilder.WatchKit.Storyboard" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="watchKit" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="cui-ud-jnF">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBWatchKitPlugin" version="7701"/>
Expand Down Expand Up @@ -55,10 +55,10 @@
<action selector="backbtn:" destination="XeQ-A9-BRW" id="R1l-IA-TZf"/>
</connections>
</button>
<group width="136" height="369" alignment="left" layout="vertical" id="AAX-sU-FrH">
<group width="136" height="415" alignment="left" layout="vertical" id="AAX-sU-FrH">
<items>
<imageView width="136" height="137" alignment="left" image="bgm38a1024.png" contentMode="scaleAspectFit" id="RGb-l5-fLs"/>
<label width="136" height="64" alignment="left" text="title" textAlignment="center" numberOfLines="3" id="bKK-vU-oP8">
<label width="136" height="52" alignment="left" text="title" textAlignment="center" numberOfLines="3" id="bKK-vU-oP8">
<fontDescription key="font" style="UICTFontTextStyleHeadline"/>
</label>
<label width="136" height="50" alignment="left" text="title_cn" textAlignment="center" numberOfLines="3" id="GT3-v3-EJl">
Expand All @@ -76,6 +76,11 @@
<action selector="watchedbtn:" destination="XeQ-A9-BRW" id="mzM-3G-JD5"/>
</connections>
</button>
<button width="1" alignment="left" title="返回" id="LWB-XL-o1m">
<connections>
<action selector="backbtn:" destination="XeQ-A9-BRW" id="uqw-fA-Nbr"/>
</connections>
</button>
</items>
<edgeInsets key="margins" left="0.0" right="0.0" top="0.0" bottom="0.0"/>
</group>
Expand All @@ -89,7 +94,7 @@
</connections>
</controller>
</objects>
<point key="canvasLocation" x="612" y="191"/>
<point key="canvasLocation" x="612" y="213.25"/>
</scene>
<!--我的追番列表-->
<scene sceneID="ROT-CJ-GUd">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,61 @@
"size" : "24x24",
"idiom" : "watch",
"scale" : "2x",
"filename" : "名称未設定.png",
"role" : "notificationCenter",
"subtype" : "38mm"
},
{
"size" : "27.5x27.5",
"idiom" : "watch",
"scale" : "2x",
"filename" : "名称未設定-1.png",
"role" : "notificationCenter",
"subtype" : "42mm"
},
{
"size" : "29x29",
"idiom" : "watch",
"filename" : "名称未設定-2.png",
"role" : "companionSettings",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "watch",
"filename" : "名称未設定-3.png",
"role" : "companionSettings",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "watch",
"scale" : "2x",
"filename" : "名称未設定-4.png",
"role" : "appLauncher",
"subtype" : "38mm"
},
{
"size" : "44x44",
"idiom" : "watch",
"scale" : "2x",
"filename" : "名称未設定-5.png",
"role" : "longLook",
"subtype" : "42mm"
},
{
"size" : "86x86",
"idiom" : "watch",
"scale" : "2x",
"filename" : "名称未設定-6.png",
"role" : "quickLook",
"subtype" : "38mm"
},
{
"size" : "98x98",
"idiom" : "watch",
"scale" : "2x",
"filename" : "名称未設定-7.png",
"role" : "quickLook",
"subtype" : "42mm"
}
Expand All @@ -59,4 +67,4 @@
"version" : 1,
"author" : "xcode"
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion bangumi WatchKit Extension/DetailWKInterfaceController.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ - (void)didDeactivate {
}
-(void)api:(BGMAPI *)api readyWithList:(NSArray *)list{
if ([request_type isEqualToString:@"EPList"]) {
NSInteger ep_countindex = ep_count - 1;
NSInteger ep_countindex = ep_count;
if ([[list valueForKey:@"eps"] count] > 0 && ep_countindex <= [[list valueForKey:@"eps"] count]) {
NSString *epid = [[[list valueForKey:@"eps"] objectAtIndex:ep_countindex] valueForKey:@"id"];
//NSLog(@"epidd:%@",epid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<key>IDESourceControlProjectIdentifier</key>
<string>86514D91-A320-4ED7-83C5-2EA24605E3AC</string>
<key>IDESourceControlProjectName</key>
<string>bangumi</string>
<string>project</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>B6A9F571146E00F19CE7ED63755DC81300FB21AA</key>
<string>https://github.com/billgateshxk/bangumi</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>bangumi.xcodeproj</string>
<string>bangumi.xcodeproj/project.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>B6A9F571146E00F19CE7ED63755DC81300FB21AA</key>
Expand Down
Binary file not shown.
18 changes: 18 additions & 0 deletions bangumi/Images.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,24 @@
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "名称未設定.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "名称未設定-1.png",
"scale" : "3x"
},
{
"size" : "57x57",
"idiom" : "iphone",
Expand All @@ -35,6 +47,12 @@
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "名称未設定-2.png",
"scale" : "3x"
}
],
"info" : {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion bangumi/WatchingListViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ -(void)api:(BGMAPI *)api readyWithList:(NSArray *)list{

}
if ([request_type isEqualToString:@"EPList"]) {
NSInteger ep_countindex = ep_count - 1;
NSInteger ep_countindex = ep_count;
if ([[list valueForKey:@"eps"] count] > 0 && ep_countindex <= [[list valueForKey:@"eps"] count]) {
NSString *epid = [[[list valueForKey:@"eps"] objectAtIndex:ep_countindex] valueForKey:@"id"];
//NSLog(@"epidd:%@",epid);
Expand Down
39 changes: 19 additions & 20 deletions bangumi/zh-Hans.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="5056" systemVersion="13D65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="c0g-T8-Y24">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="c0g-T8-Y24">
<dependencies>
<deployment defaultVersion="1536" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
</dependencies>
<scenes>
<!--Navigation Controller-->
<scene sceneID="Sbp-Y5-S1w">
<objects>
<navigationController definesPresentationContext="YES" id="c0g-T8-Y24" sceneMemberID="viewController">
<size key="freeformSize" width="320" height="568"/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="5bp-d4-oZv">
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
Expand All @@ -21,7 +19,7 @@
</objects>
<point key="canvasLocation" x="-594" y="-620"/>
</scene>
<!--Login View Controller - Bangumi+-->
<!--Bangumi+-->
<scene sceneID="KjD-8A-Xwv">
<objects>
<viewController id="kKC-iY-qY7" customClass="LoginViewController" sceneMemberID="viewController">
Expand Down Expand Up @@ -77,7 +75,7 @@
</objects>
<point key="canvasLocation" x="-131" y="-620"/>
</scene>
<!--Tabbar View Controller - 进度管理-->
<!--进度管理-->
<scene sceneID="Y1g-BM-zq3">
<objects>
<tabBarController storyboardIdentifier="TabbarViewController" definesPresentationContext="YES" useStoryboardIdentifierAsRestorationIdentifier="YES" id="yv6-Gx-mpd" customClass="TabbarViewController" sceneMemberID="viewController">
Expand All @@ -99,7 +97,7 @@
</objects>
<point key="canvasLocation" x="342" y="-620"/>
</scene>
<!--Search View Controller - 搜索-->
<!--搜索-->
<scene sceneID="y5j-0k-EJV">
<objects>
<tableViewController storyboardIdentifier="SearchViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="bJ7-1j-2Mi" customClass="SearchViewController" sceneMemberID="viewController">
Expand All @@ -117,7 +115,7 @@
</searchBar>
<prototypes>
<tableViewCell contentMode="scaleToFill" restorationIdentifier="NormalCell" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="SearchCell" rowHeight="68" id="i6A-7M-ndd" customClass="NormalCell">
<rect key="frame" x="0.0" y="130" width="320" height="68"/>
<rect key="frame" x="0.0" y="66" width="320" height="68"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="i6A-7M-ndd" id="1qp-pw-Tw4">
<rect key="frame" x="0.0" y="0.0" width="287" height="67"/>
Expand Down Expand Up @@ -193,7 +191,7 @@
</objects>
<point key="canvasLocation" x="881" y="-658"/>
</scene>
<!--Navigation Controller - 进度管理-->
<!--进度管理-->
<scene sceneID="a8s-eJ-c77">
<objects>
<navigationController definesPresentationContext="YES" useStoryboardIdentifierAsRestorationIdentifier="YES" id="J7o-xs-qwP" sceneMemberID="viewController">
Expand All @@ -209,7 +207,7 @@
</objects>
<point key="canvasLocation" x="881" y="-1420"/>
</scene>
<!--Watching List View Controller - 进度管理-->
<!--进度管理-->
<scene sceneID="9Mz-Pi-hSy">
<objects>
<tableViewController storyboardIdentifier="WatchingListViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="Pzv-dj-RD0" customClass="WatchingListViewController" sceneMemberID="viewController">
Expand All @@ -219,7 +217,7 @@
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" restorationIdentifier="Cell" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Cell" rowHeight="96" id="5T2-Xb-X5v" customClass="BGMCell">
<rect key="frame" x="0.0" y="86" width="320" height="96"/>
<rect key="frame" x="0.0" y="22" width="320" height="96"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="5T2-Xb-X5v" id="0lS-Rn-JZh">
<rect key="frame" x="0.0" y="0.0" width="287" height="95"/>
Expand Down Expand Up @@ -279,7 +277,7 @@
</objects>
<point key="canvasLocation" x="1414" y="-1420"/>
</scene>
<!--Detail View Controller - 番组详细-->
<!--番组详细-->
<scene sceneID="94L-ld-wAE">
<objects>
<viewController storyboardIdentifier="BGMDetailViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="iU8-It-a40" customClass="BGMDetailViewController" sceneMemberID="viewController">
Expand Down Expand Up @@ -356,7 +354,7 @@
</objects>
<point key="canvasLocation" x="1860" y="-1420"/>
</scene>
<!--Progress List View Controller - 番组进度-->
<!--番组进度-->
<scene sceneID="KlN-Un-2wS">
<objects>
<tableViewController storyboardIdentifier="ProgressListViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="OmN-mz-1Fp" customClass="ProgressListViewController" sceneMemberID="viewController">
Expand Down Expand Up @@ -420,7 +418,7 @@
</objects>
<point key="canvasLocation" x="892" y="865"/>
</scene>
<!--Daliy List View Controller - 每日放送-->
<!--每日放送-->
<scene sceneID="lab-rb-vff">
<objects>
<tableViewController storyboardIdentifier="DaliyListViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="8ux-Dq-vfJ" customClass="DaliyListViewController" sceneMemberID="viewController">
Expand All @@ -430,7 +428,7 @@
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" restorationIdentifier="NormalCell" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="DayCell" rowHeight="69" id="vX6-AL-4Yp" customClass="NormalCell">
<rect key="frame" x="0.0" y="86" width="320" height="69"/>
<rect key="frame" x="0.0" y="22" width="320" height="69"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="vX6-AL-4Yp" id="2OX-Qb-ZLv">
<rect key="frame" x="0.0" y="0.0" width="287" height="68"/>
Expand Down Expand Up @@ -474,7 +472,7 @@
</objects>
<point key="canvasLocation" x="1423" y="95"/>
</scene>
<!--Navigation Controller - 每日放送-->
<!--每日放送-->
<scene sceneID="Adn-EL-Yd1">
<objects>
<navigationController definesPresentationContext="YES" id="O7w-ZY-zKI" sceneMemberID="viewController">
Expand All @@ -490,7 +488,7 @@
</objects>
<point key="canvasLocation" x="891" y="95"/>
</scene>
<!--Settings View Controller - 设置-->
<!--设置-->
<scene sceneID="gY4-Ks-uaW">
<objects>
<tableViewController storyboardIdentifier="SettingsViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="GHg-VX-l3v" customClass="SettingsViewController" sceneMemberID="viewController">
Expand All @@ -502,7 +500,7 @@
<tableViewSection headerTitle="功能" footerTitle="*由于API所获得的验证信息与网页不通用,所以超展开必须得进行二次重复登录。m(_ _)m" id="gWq-Pk-Qcs">
<cells>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="yzT-aY-U9Z">
<rect key="frame" x="0.0" y="119" width="320" height="44"/>
<rect key="frame" x="0.0" y="114" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="yzT-aY-U9Z" id="kPL-mi-lSw">
<rect key="frame" x="0.0" y="0.0" width="320" height="43"/>
Expand All @@ -527,7 +525,7 @@
<tableViewSection headerTitle="账户" id="tRU-ZY-Dde">
<cells>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="73n-9J-yyu">
<rect key="frame" x="0.0" y="255" width="320" height="44"/>
<rect key="frame" x="0.0" y="238" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="73n-9J-yyu" id="9Us-ot-wkF">
<rect key="frame" x="0.0" y="0.0" width="320" height="43"/>
Expand All @@ -549,7 +547,8 @@
</tableViewCell>
</cells>
</tableViewSection>
<tableViewSection headerTitle="Credits" footerTitle="WebSite/API: @Sai Developer: @bi119aTe5hXk Icon: @cinnamor" id="c23-9v-zMq">
<tableViewSection headerTitle="Credits" id="c23-9v-zMq">
<string key="footerTitle">WebSite/API: @Sai Developer: @bi119aTe5hXk Icon: @cinnamor</string>
<cells/>
</tableViewSection>
</sections>
Expand Down

0 comments on commit 42ad1af

Please sign in to comment.