Skip to content

Instantly share code, notes, and snippets.

@m92o
Created February 26, 2011 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m92o/845420 to your computer and use it in GitHub Desktop.
Save m92o/845420 to your computer and use it in GitHub Desktop.
Ti.UI.TextArea.keyboardToolbar is not displayed at modal window. (Titanium Mobile 1.6 / iOS SDK 4.2)
var window = Ti.UI.createWindow({
modal: true, // If this line is deleted, keyboardToolbar is displayed.
title: 'window',
backgroundColor: '#fff'
});
var trash = Ti.UI.createButton({
systemButton: Ti.UI.iPhone.SystemButton.TRASH
});
var textarea = Ti.UI.createTextArea({
editable: true,
borderWidth: 1,
keyboardToolbar: [trash]
});
window.add(textarea);
window.addEventListener('open', function () {
textarea.focus();
});
window.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment