Customizable iOS Message Composer - iphone

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/

Related

How to send images using "flutter_open_whatsapp" package?

I am building an app that has to be able to send text and images directly to a specific WhatsApp number using this package https://pub.dev/packages/flutter_open_whatsapp. But the plugin has not implemented for the multimedia data. What exactly am I supposed to do?

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

Using a Calendar in my iPhone Application to Publish Events

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.

Flash Packager for iPhone: Possible to use Core-Data or other database?

I'm wondering if the flash packager for iPhone allows you to somehow save data in some kind of database maybe using Core Data or any other form?
If it just allows you to export some kind of actionscript based game but doesn't allow for saving data that'd be kinda weak I'd assume so they must have a way (?).
You can use SharedObject, it works fine. It corresponds to NSKeyedArchiver for iPhone.

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.