tags:

views:

292

answers:

1

Hi,

i need a custom keyboard like Emoji application does in my application. Any ideas how to create/register/add a new custom smiley keyboard?

+1  A: 

If you're targeting for AppStore — you can't create/register/add a custom keyboard that reuses Apple's code (as they're undocumented). The only way you can do is create a custom view with many buttons as the keys.

KennyTM
Thanks for your answer Kenny, but how do i encode an smiley image as string and other iphone decodes it? or should i be using webviews ?
Ubersoldat
@Ubersoldat: You can use Emoji, which corresponds to unicode in range U+e0xx to U+e5xx. See http://pukupi.com/post/1964/. Emoji doesn't need a web view.
KennyTM
i know emoji can do that, but how can i implement this in my application?
Ubersoldat
@Ubersoldat: Which kind of implementation?
KennyTM
that encoding decoding stuff?
Ubersoldat
@Ubersoldat: Just put a `@"\uE012"` to the text view and the iPhoneOS will translate that into Emoji automatically.
KennyTM
ohh that worked, thanks Kenny :)and one more question: how do i make the magnifying affect for these smiley buttons like keyboard?
Ubersoldat
@Ubersoldat: You could try to make a view dis/appear in response to `UIButton`'s touchDown or touchUpInside events.
KennyTM
thanks so much Kenny, i will try this and i owe you one :)
Ubersoldat