Using a Calendar in my iPhone Application to Publish Events - iphone

I am trying to build an application that shows a Calendar with events that are published by the owner of the application. That is, users that download the application will be able to see the dates of special events and add them to their own calendar.
Is there a way to do this, or is the only option to do an XML Parsing?
Thanks in advance.

UIKit.framework has no API for a UI calendar.
There are open source projects for UI calendars like Tapku.
Tapku's TKCalendarMonthView mimics the Calender.app UI preloaded on iOS.
Using a combination of the Tapku library, XML or JSON parsing, and magic you could fetch special events from your webserver and add them to Tapku's TKCalendarMonthView to achieve your goal.
Thanks,
-David

API for UI calendar
In addition to Tapku bobbypage referenced here is also the KLCalendarView which attempts to look somewhat like Calendar.app (Search for it, I'm out of hyperlinks).
API for adding events to a user's calendar
Check out Apple's EventKit reference. It allows for adding static and recurring events.
Here is a good video tutorial on how to use event kit.
XML or JSON parsing
Depends on the source of the calendar. Here is another SO question about paring ics files on the iPhone.
How to use NSScanner to parse .ics file

There is no UI provided by Apple for this task, but EventKit may help you with the logic for your app.

Related

iphone app with ability to upload images to a calendar

Hi i have been approached to create an app which allows users to upload images either daily or weekly etc. with a description and title and add these images to a calendar. The images could then be viewed in sequence or via the calendar.
I am quite new to app development and so far have only done basic apps.
How difficult is it to create an app of this scale?
Can anyone recommend any tutorials that might help?
Also what kind of time frame would i be looking at?
any feedback would be greatly appreciated. thanks
The answer is You Can't . iOS Calendar events cannot attach images. You have to write your calendar apps.

Customizable iOS Message Composer

I'm trying to replicate the iOS SMS Composer, but I need to change the data source for the contacts that are recognized and that are converted into the little blue things. They shouldn't be loaded from the phone's contacts, and I'm retrieving that data via JSON.
Are there any libraries out there that do this?
I don't think this is possible.
However, there is a library called Three20 which has a custom Message Composer (TTMessageController). That allows pointing the data source to a JSON data.
http://three20.info/

Adding photo upload to an iPhone App that's mostly HTML5/JS

I'm working on an iPhone App that's HTML5/JS displayed in a single UI Webview. I'd like to add photo upload capabilities, and I'm wondering what the best approach would be to extend the iPhone app with the necessary classes to pick a photo and upload via an API. I'd also like to trigger the display of the photo picker via JS if that's possible.
I know it's possible to use a framework like PhoneGap to do this, but I don't want to migrate the whole app to a new framework yet. Also, sorry for the "how to" type question - I normally ask about specific problems after I've exhausted my efforts, but I'm pretty new to Objective C, so I'd appreciate some guidance, even if it's just a simple design explanation.
the image picker (UIImagePicker) is fairly straightforward to work with: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html
and for an API, are you sending it to an existing system? or creating your own. You just need to craft an NSMutableURLRequest with POSTED data in a multi-part format, and then handle the image portion appropriately in your server.
this might help: upload image from iPhone application

how would i implement the image processing technology within this iphone application?

Just a quick question on the iphone technology within this business card reader
http://www.youtube.com/watch?v=F8z6pcxdrPo
as we can see this video allows users to take a photo of a business card, i have an idea where i would take a photo of some text , and that photo could then be turned into text on the iphone. how would i be able to implement this using the iOS API ?
cheers guys
The camera stuff is all standard-- use the UIImagePickerController for this.
Text recognition (OCR) is not a built in part of the iOS API, though, so that part really isn't trivial. There are multiple open-source projects that can handle this sort of thing if you want to go after them.
Tesseract is an older but possibly viable one. Check out this post which has info on cross compiling it for iOS.
Other users here might have more current recommendations.

Newbie wants to create a PDF reader for ipod touch - what's the best approach?

I want to make a small app that displays a PDF, presenting zoom-able single pages with a previous-next page function.
The Core Graphics API is pretty much the same in Cocoa and Cocoa touch. Read up on CGPDFDocument, it should provide you with everything you will need to render PDF pages. You won't need to read the PDF spec or use a library to parse PDF files directly. You will probably to learn more about Core Graphics / Quartz 2D / etc. to understand how to use those functions inside of a Cocoa app.
Based on the gradually evolving Apple policy of rejecting application submissions that duplicate functionality already on the iPhone I would worry about spending too much time even as a newbie on something that is part of the core iPhone feature-set.
This is pretty trivial. The CGPDFDocument functions will allow you to do anything you'd want to do with a PDF file.
The iPhone and iPod touch can view PDFs already, as one of the TV adverts in the UK shows an email with a .pdf attachment (of swimming lessons) being viewed. It can also view .doc, .xls, and so on, so if he is creating a viewer type application then supporting those as well could be a nice feature addition later on.
This means there is a PDF framework on these devices that you will need to access. Presumably Apple can provide support here if he is a paid up developer. Syncing the PDFs to the device is the actual real difficulty, as this isn't supported by iTunes. I assume that you would need to write a network based synchronisation tool, or have an online cloud for holding people's PDFs.
The device doesn't support Flash, so using PDF to Flash conversion tools will not work.
I found this HTML5 framework that should work on an iPad http://bakerframework.com/
but I didn't test it yet.