Problem Description
Focusing TextField in HeaderView of empty TableView causes application to crash on iOS7.1
TEST ENVIRONMENT:
Ti SDK 3.3.0.GA
Ti CLI 3.3.0
iOS SDK: 7.1
iOS iPhone Simulator: 7.1
STEP TO REPRODUCE:
1. Create a default alloy project.
2. Replace index.xml with the following code:
<Alloy>
<Window id="win" backgroundColor="white">
<TableView id="table">
<HeaderView>
<TextField
platform="ios"
borderStyle="Ti.UI.INPUT_BORDERSTYLE_BEZEL"
keyboardToolbarColor="#999" keyboardToolbarHeight="40"
top="10" height="35" width="300"
value="Focus to see keyboard with toolbar">
<!-- Sets the keyboardToolbar property -->
<KeyboardToolbar>
<Toolbar>
<Items>
<Button systemButton="Ti.UI.iPhone.SystemButton.CANCEL" />
<FlexSpace/>
<Button systemButton="Ti.UI.iPhone.SystemButton.CAMERA" />
<FlexSpace/>
<Button style="Ti.UI.iPhone.SystemButtonStyle.DONE">Send</Button>
</Items>
</Toolbar>
</KeyboardToolbar>
</TextField>
</HeaderView>
</TableView>
</Window>
</Alloy>
3. Launch the app. Click on the TextFielfd to write.
4. The keyboard pops up and the application crushes
EXPECTED RESULT
Keyboard should open to enable writing in the TextField.
OBSERVED RESULT
After the Keyboard opens the application crashes.
Thanks for your report! The Platform team will set the priority on this bug.
PR: https://github.com/appcelerator/titanium_mobile/pull/6535 Test case (Same as above, but more simple)
Additional Test Case
PR merged
Verified fix on: Mac OSX 10.10.1 Appcelerator Studio, build: 3.4.1.201410281743 Titanium SDK build: 3.6.0.v20150119054128 Titanium CLI, build: 3.4.1 Alloy: 1.5.1 Xcode 6.1.1 iPhone 6 Plus (8.1.1), iPad Mini 2 (7.0.3) Using both the Alloy and classic code built to both devices, code no longer crashes when focusing on the textfield. Closing ticket.