How do I write strings to the iOS Notes.app? - iphone

In my app, I have several strings that I would like to programatically turn into notes in the iOS Notes.app.
I have done the part of calling Modal View of Notes.

I'm not 100% sure what you mean because your question is too general, but if you refer to Notes.app that ships with iOS - it has no URL scheme so it's not possible to communicate with the app in any way, nor is it possible to save notes there.

Related

Can we get page style without using UIpageviewcontoller?

I am creating an app that have to work on iPhone3G which supports ios4..I need a bundle of images that have to be view as page style.But i came to know that ios4 doesn't support UIPageViewController..Is there a way to get that programmatically?..
If u share any tutorial or link regarding this it will be greatful...
You cant do the same animation but you could use something similar check this project it has its own demo
Please note that i had done a project similar to yours, what i did is to present different readers for ios4 and iOS5 in iOS4 i used the link i gave you, in iOS 5 i used UIPageViewController

iOS Share Dialog?

I'm curious, is the standard "Share" dialog you see throughout a lot of iOS apps a standard SDK dialog or is everyone just mimicking the ones that Apple created for their apps like Safari? Or perhaps everyone is using ShareKit?
For instance, on iPhone you get a nice 3/4 modal dialog which does a vertical cover appearance, containing a bunch of shiny buttons:
While on iPad you see a "speech bubble" type dialog appear:
This seems too standard across apps to just be coincidence/people ripping off the look and feel.
The situation you presented in this specific case is caused by the fact that on iPad, the UIActionSheet is always presented within a popover controller, and on the iPhone it displays as in your example, withouth a Popover Controller (which is only available on the iPad)
I've written my own code for sharing using Facebook's SDK and the iOS5 Twitter integration so I've never used it but I believe there is a library you can use called ShareKit that will create the action sheets and sharing capability that you'd like. The "up-to-date"/"2.0" (I believe the original is no longer maintained) version is available here:
https://github.com/ShareKit/ShareKit
Apple provides the tools to make UI objects. The one you are looking at is "UIActionSheet".
Developers can bind methods to the tap events of the actionsheet.
Apple encourages developers to keep a consistent UI in order to make the overall use easier on the user.
Check out the Apple Human Interface Guidelines.
link

iOS - app containing another app

I would like to hand my application to another developer to assymilate in his iOS app.
The goal is to have, in his app, a shortcut that opens my app directly - not just a link to the appstore.
The problem is my app has to remain compiled, since I don't want to hand over my source-code.
Is this situation, of one compiled iOS app, encapsulated insind another iOS app, even possible?
Thanks in advance.
Your application can register a custom URL handler that will launch it whenever any application will follow that URL. It can be triggered from Safari but it can also be triggered from any other application.
Here's how you enable that feature in your app and handle incomming passed parameters etc.
All code in an app bundle has to be staticly linked, so you would have to rewrite and compile your app as a linkable shared library.
What you're looking to do really isn't possible. Each app has it's own code structure and can't be embedded into another app (MainWindow.xib for example). Each app is also signed by the developers private key, so that's an obstacle there. You can't just hand him a binary of your app.
What you could do is potentially take your .XIBs and view controllers and give them to him to implement. This is easiest if there's no model that also has to be migrated over. Then he can present your views to take advantage of the logic built into your view controllers.
It's not a trivial amount of work and of questionable value. If you're not willing to share source code then none of the above is really going to work for you.
My advice would be as people above have mentioned and use a URL scheme in his app that refers to yours. Yes, your app would need to be installed, but then there's a clear and unambiguous separation between his work and yours...

Can an iPhone app hide/launch other apps?

I am asking this question mainly to know if what I want to do is possible. I don't think there is an app that does it and I've been meaning to learn objective C, but it may not be possible.
I want an app that serves as the ONLY way (at least, the only easy way) to launch another app. So in an ideal world, you have MyApp, which lists app A, B, and C. A B and C are not visible on the normal browser, but can be launched from within my app.
Possible? Not?
Not possible. And its most likely that such a functionality will never make it into the official SDK.
What you're trying to do isn't really possible. It isn't possible (with the official development kit) to create iOS applications that don't appear on the home screen.
It is possible to launch other applications, though -- one common approach is to set them as URL handlers for private URL schemes. This can be used to pass information between applications. (However, trying to use this as access control won't work, because Apple will likely reject an application which can only be opened "correctly" by another app.)
Depends on your definition of App.
You can just have a master app which creates the illusion of being an app launcher by "opening" subroutines. Imagine like the old facebook iphone app for example
NO
Well... This has been done for years on the Cydia store with some custom menus but we wont get into that here...
Using the official SDK I think there are protocols to allow you to open an another application but pressing the home button for example will always go back to the default screen. I think ever if you were able to get it working, there is no chance it would be accepted into the App Store on grounds of it not doing anything the phone already does.
By all means look up jailbreaking and using the custom tool chain but you won't be able to sell this through Apple unfortunatley.

How to port existing iPhone application to iPad

I have an iPhone application, now i want to convert that application to a universal application which runs on all the devices iPhone/iPod/iPad.
So, where to start, what things i need to do?
Any help, link, sample app, anything, will be highly appreciated.
Thanks in advance :)
I've done that recently, it's actually much simpler than it would seem. I recommend you read the iPad programming guide from Apple, it's about 100 pages in PDF (and you don't need to read all of it). Basically, you need to:
run a command in Xcode that automatically converts your project to Universal
add support for orientation changes, if you haven't done that earlier (it's required on iPad)
go through the app, see what's broken and fix it (e.g. it's likely that you'll see some places where you need to fix autoresize settings for controls)
That's of course if you don't want to redesign the UI for iPad, which you'll probably want to do in the end (e.g. use split views, popup dialogs and various modals, and do less full screen view transitions). The UI that you'll get by going through this steps won't feel 100% iPad-y, but it will work, and will look much better than an iPhone-only app zoomed in, so it's a good start.