Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2011, 04:42 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 8
Shake0615 is on a distinguished road
Default Making text do actions in Interactive Storybooks

YouTube - Exploring Interactive Books on iPad with PopOut! Peter Rabbit: Ep. 142

At approx. 2:21, the host shows how you can press words on this app and it will do an action (highlighting the word, repeat it with a sound file).

How would you go about programming something like this? I know you can overlay buttons on top of static text, but that would end up being really taxing on file size and performance, especially if the view had a lot more text.

Does anyone know how they would have achieved that programmatically?
Shake0615 is offline   Reply With Quote
Old 02-07-2011, 07:15 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: South Florida, US
Posts: 357
lgehrig1 is on a distinguished road
Default

Quote:
Originally Posted by Shake0615 View Post
Does anyone know how they would have achieved that programmatically?
All UIResponders (UIView, UIButton, UIScrollView, etc.) can respond to touchesBegan:withEvent: and touchesEnded:withEvent:.

The Apple documentation will explain how the events are passed upward through the responder chain. But, long and short, you simply watch for touches & figure out what they pressed.

Alternately - display everything in HTML and use image maps Do it old school!
lgehrig1 is offline   Reply With Quote
Reply

Bookmarks

Tags
action, interactive storybook, text

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 367
14 members and 353 guests
7twenty7, blasterbr, Clouds, dre, EvilElf, jeroenkeij, jimmyon122, Mah6447, Morrisone, n00b, pungs, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,121
Posts: 402,900
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:48 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0