BMI Calculator Example in iOS simulator
Posted: Sat Jul 30, 2016 3:08 pm
I worked through the interactive welcome that shows how to build the BMI Calculator app.
When I try running this in the iOS simulator, I figured out that I have to include the headerBar widget on the Copy Files of the Standalone Application Settings in order for the the title and the clear button to appear at the top of the window.
Similarly, I have to include navbar widget for the navigation bar to appear at the bottom of the screen.
If I enter amounts in the height and weight boxes and then click Calculate BMI, nothing happens even though it works great in LC and in a standalone Mac app.
Also, even though I've included the browser widget in Copy Files, the browser loads nothing in the iOS simulator (works in the Mac standalone) and I verified that Safari works just fine in the simulator.
Any one know why the calculate bmi button doesn't seem to do anything in the iOS simulator? And, why the browser never loads the web page in the simulator?
I'm using LC 8.0.1 Indy and I have XCode 7.3.1 w/ iOS SDK 9.3 installed.
EDIT: The clear button does work, just not the calculate bmi button. I changed this post to reflect this.
When I try running this in the iOS simulator, I figured out that I have to include the headerBar widget on the Copy Files of the Standalone Application Settings in order for the the title and the clear button to appear at the top of the window.
Similarly, I have to include navbar widget for the navigation bar to appear at the bottom of the screen.
If I enter amounts in the height and weight boxes and then click Calculate BMI, nothing happens even though it works great in LC and in a standalone Mac app.
Also, even though I've included the browser widget in Copy Files, the browser loads nothing in the iOS simulator (works in the Mac standalone) and I verified that Safari works just fine in the simulator.
Any one know why the calculate bmi button doesn't seem to do anything in the iOS simulator? And, why the browser never loads the web page in the simulator?
I'm using LC 8.0.1 Indy and I have XCode 7.3.1 w/ iOS SDK 9.3 installed.
EDIT: The clear button does work, just not the calculate bmi button. I changed this post to reflect this.