Logbook noting:
In Week 5, I mainly searched the information
about how to open the camera and how to select a photo in the iPhone.
In week 6, I tried to follow the tutorial videos and wrote the Xcode to
select picture in an iPhone.
In the following picture, the Xcode of the program is shown. The
upper half of the codes realize the
function in order to set up a button leading to selecting picture in the phone.
Figure 1: Codes for opening camera and pick pictures from album
The next four fictures show how the program goes.
Figure 2: Simulating "try camera" in simulator
Figure 3: The interface of that APP
Figure 4: Open album
Figure 5: Pick a picture
As for the second part of the codes, I
tried to open the rare camera of a phone. But I was informed that the simulator
could not open a camera, the camera could only be opened when the Mac is
connected with an iPhone.
The main mission for the next week is
to connect a real iPhone with the Mac and be able to test the code using the
real iPhone
Comments:
During
the week 5, I spent much time on my preliminary report. In that report, I mainly
introduced the background of collision warning system, methodologies I would
use in this project, timetable of this project, objectives and some initial
results.
From
the middle of week 6, I turned back on Xcode and tried to learn how to open
camera of an iPhone. By that time I didn’t know that if I want to simulate an
APP on a real device, I have to apply a licence from apple and add my iPhone
device to developer team. I even tried to connect my iPhone with the Mac in our
lab, of course, with no reaction reply.
But this
try indeed pushed me to handle my project. From these codes I got in touch with
apple application developing. This kind of way to learn how to do something or
realise some functions became my first choice in following steps and it helped
a lot.





No comments:
Post a Comment