Port 65 lines of Javascript code to iOS Cocoa Touch

Completed Posted Sep 26, 2014 Paid on delivery
Completed Paid on delivery

Port 65 lines of Javascript code to iOS Cocoa Touch

Write a component for iOS that implements an advert system as follows:

1. Component downloads data in JSON format from URL

2. This data is stored locally

3. Ads are rotated randomly

4. If a user clicks on a Advert, then advert text is displayed

5. Click data is sent back to server.

This can be implemented in 65 lines of Javascript (attached). I need this ported to iOS Cocoa Touch

Important features:

1. This is designed to be a component of another project, so the code should be packaged so

it can be "dropped in" to existing code, ideally as one class or package, with no dependencies.

Only the following properties should be public

- PublisherId : A numeric identifier of the publisher *

- ElementId: The visual element used to display adverts on the app *

- RotationInterval : Time between ads being displayed, default to 10 seconds

- AdvertRenderer: A delegate accepting a string that can be overridden by the developer to change how advert text is displayed

Only Properties marked (*) are mandatory

2. The system is designed to work offline - with no internet connection; this means

- If the download of JSON data fails, then the most recent cached data should be used.

- If the click data cannot be sent back to the server, then it should be stored locally, until the device is online, then reported.

3. A readme file should be provided allowing a non-expert developer include this component in their iOS project.

Cocoa iPhone JavaScript Mobile App Development

Project ID: #6509445

About the project

3 proposals Remote project Active Sep 28, 2014

Awarded to:

JasTT

This is EASY, if there is no User Interface code needed. Because the javascript code you attached has no UI(except the rotation command) at all. If you need a user interface for the AD, this is another story with more More

$30 USD in 0 days
(0 Reviews)
0.0

3 freelancers are bidding on average $28 for this job

tlcsnig

Hello, I have read out your job description several times. & can do ur work.. We have well known team of huge members.. We are working in this field for 6-7 years and gain huge knowledge in this field..... I wil More

$35 USD in 0 days
(0 Reviews)
0.0
sstfreelancer

let's do it contact me for right solution its my first project I can negotiate

$18 USD in 2 days
(0 Reviews)
0.0