2. • Reusing
code
in
several
pla>orms
• Exis.ng
code
to
be
integrated
on
our
applica.on
• HTML5
thing
does
not
work
as
adver.sed
• Xcode
is
the
only
official
way
to
compile
code
that
can
go
to
the
AppStore
=>
{C,C++,Objec.ve-‐C}
mobilejazz.cat
Problem
3. • Apple
developed
WebKit:
JavaScript
engine
in
Safari
• JavaScriptCore
is
part
of
WebKit
– Open-‐source
library
– Compilable
in
Xcode
mobilejazz.cat
Solu.on
4. • A
TwiZer
applica.on
usually
provides
a
character
counter.
• However,
links
need
to
be
treated
specially
because
they
will
be
shortened.
• TwiZer
open-‐sourced
their
text
processing
library
(twiZer-‐text.js)
mobilejazz.cat
Example
5. • Create
a
JavaScript
execu.on
context
mobilejazz.cat
Nasty
bits