-
Notifications
You must be signed in to change notification settings - Fork 0
/
Features and Todo
173 lines (91 loc) · 3.34 KB
/
Features and Todo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
Feature:
* If user moves page, stop automation stuff
Nov 26 2017
ANIMATE FROM ? to full info panel on page 2
BUGS May 8:
- pausing/resuming talk results in bouncing not working
- if singing, and user turns page, reset audio to that page
(otherwise it crashes)
- pausing and resuming music the bounce is off
- pausing and restarting music the bounce is off
- text does NOT pause bouncing
- global should restart song at that page's point'
- on 5S, text needs to go up about 6 pixels towards imageView
- restart does not restart bounce
May Day
0. pause/play global song - also, if user interaction, pause ?
1. add paths to hotRects
-- do hit testing in gesture callback
2. Have defaultAction play a sound that is registered with that HotRect, "sound"
3. Have a global "Song mode", it's englishSongList, spanishSongList are GLOBAL'"
4. Floating UI for restart audio, pause/play,
5. UI with INTRO and also HELP from dedication page to teach book's usage'
Things for Seth:
-- word audio files for hidden touches.
-- englishSongList and spanishSongList plist entries
Friday April 21 2017 iOS WorkShop Class Agenda
1. Hello & what's or who is new?
2. Updates since April 7:
- visit changes at https://github.com/andrewstone/hummingbird
a. page numbers, demonstrating sizeToFit
b. architecture for easter eggs:
- overview: you can have as many hot regions on a page as you want, and you can have tapping it do whatever you want. Just add the method to DataViewController, defaultAction: is provided:
- HotActions via PageData.plist created at page item level as a dictionary:
rect = dictionary of floats, x, y, width, height as percentages
shape = string, @"round" is supported
action = string, selector name for use in NSSelectorFromString()
// sound might be a parameter, etc...
- go over creation
- PercentageRect handles the mapping between a place on the image to a place on the screen
3.
Example HotAction:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>rect</key>
<dict>
<key>x</key>
<real>0.1671806167400881</real>
<key>y</key>
<real>0.17643</real>
<key>width</key>
<real>0.140969</real>
<key>height</key>
<real>0.12204</real>
</dict>
<key>action</key>
<string>defaultAction:</string>
<key>shape</key>
<string>round</string>
</dict>
</array>
</plist>
HotAction: UIView
PercentageRect
OLD NOTES:
Janie things to implement:
* Design an action object
- selector
- target
- rect in percentages of size - these must be reset and live in ImageView which must have user interaction turned on.
* Either or both english or Spanish
* pinch to zoom image
* play correct audio if we're in Spanish
What we did between classes:
* Book Reading Options
* send notification so no back pointers
* use of ~ipad nib to fit ipad better
Added:
* audio end callback for autoplay
* autoplay of pages
Implementing word by word via NSAttributed String:
GIVEN: for each word, the time as float seconds right before word is pronounced
word list: each item represents a word:
NSRange start,length (for quick selection)
NSTimeInterval startTime (duration can be calc'd by next startTime)
Future Ideas for Book:
1. hot spot which could play audio
Bugs:
1. if landscape - autoplay crashes