karmapa / AdarshaIos

📱 Tibetan sutra reader iOS app
GNU General Public License v3.0
5 stars 2 forks source link

內文閱覽模式 新增跳到目前經文開頭的按鈕 #32

Closed chiehan1 closed 8 years ago

chiehan1 commented 8 years ago

如下圖綠框所示,如果目前的所在段落是 A經,按了按鈕就會跳到A經的開頭。 如果使用者繼續稐動頁面到 B經,按了按鈕則會跳到B經的開頭,以此類推。

2

kmsheng commented 8 years ago

@yapcheahshen 請問要怎麼樣透過當前的 uti 抓到該篇經文的開頭 ?

yapcheahshen commented 8 years ago

先用ksa.toc 抓到目前uti 的breadcrumb 取 breadcrumb 第3層就是 sutra ,再捲到該 vpos

2015-12-23 19:48 GMT+08:00 kmsheng notifications@github.com:

@yapcheahshen https://github.com/yapcheahshen 請問要怎麼樣透過當前的 uti 抓到該篇經文的開頭 ?

— Reply to this email directly or view it on GitHub https://github.com/karmapa/AdarshaIos/issues/32#issuecomment-166871371.

kmsheng commented 8 years ago

@yapcheahshen vpos 是用哪種寬度去算的 ? iphone 直接捲到該位置也 ok 嗎 ?

yapcheahshen commented 8 years ago

取得經首的vpos ,重新 ksa.fetch 較簡單。

2015-12-23 20:53 GMT+08:00 kmsheng notifications@github.com:

@yapcheahshen https://github.com/yapcheahshen vpos 是用哪種寬度去算的 ? iphone 直接捲到該位置也 ok 嗎 ?

— Reply to this email directly or view it on GitHub https://github.com/karmapa/AdarshaIos/issues/32#issuecomment-166888994.

chiehan1 commented 8 years ago

Test ok in v1.0.35