On the main screen you can choose from a number of preset colors. You can also use buttons to save our masterpiece or to clear the screen. If you click the paint palette, a menu pops up that lets you choose your brush size, opacity, and gives you RGB values if you want custom colors. On the main menu there is a save button and you have options to save your masterpiece to the ipad camera roll or you can upload it to twitter. Unfortunately we haven’t been able to test the twitter part because the app only runs on the ipad if it’s connected to a school computer (certificate things), and I’ve been having trouble getting into the room we are in for class (literally no other macs on campus have xcode and you can’t access the app store… so frustrating). I’m going to try to get into the lab tomorrow and test it, then I’ll edit this post to include screenshots.
pros of this project:
cons:
Blugolds being claimed:
Screenshots:
]]>This lab had many steps in the learning process. The first was finding out how to actually access the accelerometer in xcode, as you need to add the CoreMotion framcework. In order to use integrated sensors of the device as well as many external API’s in xcode you need to add them under “Frameworks and Libraries.” After adding the framework you can use object CMAcceleration and use the functions defined in the object. With this data pulled from the devices accelerometer we were able to find the orientation of the device. It does this by measuring the forces pulling on the device, for our purposes this is only gravity.
The next problem was just making the app look good oriented portrait and landscape, as adding constraints to the storyboard elements took a little bit to get used to. After this was done though it made a lot more sense.
This lab only accomplishes one Blugold, integrating a built-in sensor. Although it is quite simple, I think this app is very functional, as a person may not want to buy a spirit level or have one on hand. The apps layout is quite simple, the three orientations are listed, and a number between 0 and 1 is given. When the axis is relatively level (between .05 of 0 or 1), the label appears telling the user it is level.
]]>