iRPI
Open-Source iPhone University Buddy
iRPI is an Open Source Objective-C/Cocoa iPhone OS 3.0 application which makes it easy to access important information about Rensselaer Polytechnic Institute. iRPI is built to be easily adapted for other universities and institutions to view their own map, news feed, and contact information.
Download iRPI:
Source Code ApplicationHow Do I Adapt iRPI For My University or Institution?
-
1 Change "kMainTitle" in the iRPIAppDelegate.h to the title of your application.
-
2
Change items.xml to setup the main screen of the application. The XML follows the following model:
<?xml version="1.0" encoding="UTF-8"?>
<items>
<item type="[Map,Feed, Contacts]" image="[Map,News,RSS,Safety,Network,Addressbook]">
<title>TITLE HERE</title>
<feed>FEED URL HERE</feed>
</item>
<item type="[Directory]" image="[Map,News,RSS,Safety,Network,Addressbook]">
<title>DIRECTORY TITLE HERE</title>
<subitems>
<subitem type="[Map,Feed, Contacts]">
<subtitle>TITLE HERE</subtitle>
<subfeed>FEED HERE</subfeed>
</subitem>
.
.
.
</subitems>
</item>
.
.
.
</items>
-
3
Create A XML Document For A Map. Follow this model:
<?xml version="1.0" encoding="UTF-8"?>
<places latitude="42.729940" longitude="-73.676002" spanlatitude="0.011726" spanlongitude="0.013733" >
<!-- latitude, longitude: center of map, spanlatitude, spanlongitude: how zoomed out the initial map is -->
<place>
<title>TITLE HERE</title>
<latitude>LATITUDE HERE</latitude>
<longitude>LONGITUDE HERE</longitude>
<color>1</color> <! -- optional, 0 - red (default), 1 - green, 2 - purple -->
</place>
.
.
.
</places>
-
4
Create A XML Document for A Feed. (A regular RSS feed will due).
-
5
Create A XML Document For A Contact Information. Follow this model:
<?xml version="1.0" encoding="UTF-8"?>
<contacts>
<contact>
<name>TITLE HERE</name>
<phone>PHONE NUMBER</phone> <!-- optional -->
<website>WEBSITE URL</website> <!-- optional -->
<email>EMAIL ADDRESS</email> <!-- optional -->
</contact>
.
.
.
</contacts>
-
6
Change the application icon in the info.plist and the title of the application bundle.
-
7
ENJOY! If you need any help with the XML, look at the items.xml file.