how to call back my app after open settings page from my app in iphone - iphone

HI I am successfully open settings page from my iphone app but after that how to come my app ? Is there any solution are manually open my app again,
Thanks In advance

Is the settings a bundle? (does it appear in the Settings app like Facebook, etc)
Or is this settings already in your app?
EASIEST WAY is to create a URL within your app and call that URL to bring your app.
Here is a good tutorial
http://mobiledevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

Related

How to go to my new Facebook App

I'm testing out writing mobile web app that connects to Facebook.
I follow this guide here and created a app on facebook, and uploaded the code to my own server.
https://developers.facebook.com/docs/guides/mobile/web/
But then, I got to the point where it tells me to search for my own app in facebook.com. My app won't show up, and I found out they won't until you have some users and then it'll be indexed.
So how do I get to my app?
Thanks
You might have your app settings (on the advanced screen: https://developers.facebook.com/apps/APPID/advanced) set to either sandbox mode enabled or Social discover disabled.

iphone - adding option for gifting the app

In my iphone app, i'd like to add the option to "Gift" the app.
Basically I like to add a button which pops up the username to whom i want to gift.
Is this possible?
As far as i know this functionality is part of the App Store and there is no API to provide that functionality in-app.
CheersShai
The best you can do is make the "gift" button open up the app store pointing to the app's page (which is still useful, IMO).
Once you have the web URL for your app, tell your UIApplication to open it and the user will land in the App Store app:
How to link to apps on the app store
Make sure you use the itms-apps:// hint below the accepted answer or you'll wind up with a double redirect which is annoying.

How to launch iPhone settings app from my app?

How can I launch the iPhone settings app from my own app? For example, like the screen shot I got from twitter app below:
I turned off the network, and the twitter shows me a network error alert. But in the alert view, they implement a button "Settings". When I press the button, it brings the iPhone settings app up.
So I am curious on if there any methods can be called to do this?
Thanks in advance.
I don't believe so. This dialog is provided by Apple when data is not available for an app that has set Wifi as a requirement in its info plist.
Typically you would need to use custom URL schemes to access other Apple apps, but settings is not available and not part of this list.
Example:
http://wiki.akosma.com/IPhone_URL_Schemes
http://software-security.sans.org/blog/2010/11/08/insecure-handling-url-schemes-apples-ios/

Return to app from safari

In my application, I redirect the user to the safari browser when he/she taps on a button, which in turn closes the application and opens the safari browser. There is no problem in that. It works fine. The thing is when the user quits the safari browser, I want to redirect the user back to the application, not the home screen. Any idea please...
If you control the website that you are redirecting them to, then you can place a link on the site using custom URL which I describe in more details below. But if it's a site you don't control, you can have the user surf within your app using the UIWebView.
For an iOS app, you can create custom URL schemes that your app register with the system. Then on the web page you would create a link using that custom URL. That is how Apple launches the telephone.app or the mail.app from mobile safari.
For example: Let say your app is call BigBadApp. You custom URL would be: bigbadapp:// Now, you could create a link to your app would be: Launch BigBadApp You can pass any kind of information back to your app using the custom URL and your app will handle that information in the app delegate. For iOS 4.2 and later: application:openURL:sourceApplication:annotation:. The name of old delegate on earlier version of iOS is application:handleOpenURL:
For more information see check Apple Implementing Custom URL Schemes.
Also iOS developer:tips has a tutorial on Launching Your Own Application via a Custom URL Scheme.
You can't. When you redirect someone out of your application the only way to get back is using the task switcher or opening your application from the home screen again.
If you want to keep the user in your application you could open the web pages in a webview within your application
use UIwebViewController . that represent web link within app . so that your app wont be in back ground and add back button in navigation bar on click back button navigate to back screen . i guess it would be better
i would launch an in app browser...
this is a good uiviewcontroller subclass that has most of the browser functions already implemented. its very easy to use.
https://github.com/samvermette/SVWebViewController

iphone - Upload image to flickr like Hipstamatic

I'm developing a small app allowing users to upload their photos to flickr.
I have tried ObjectiveFlickr framework, but it is too buggy (can compile on device, but not on simulator) and not very convenient for users (user must leave the app, open Safari to go to flickr website to authenticate, then switch back to the app again)
I've seen apps like Hipstamatic doing a really good job on this, it doesn't need to open Safari, everything's done in the app.
Could anyone please suggest some ways to do that?
Thanks a lot
First, I have used ObjectiveFlickr without problems in the iOS Simulator.
Second, ObjectiveFlickr itself does not concern itself with the browser that is used for authentication. It just generates the URL you need to open to let the user authenticate your app. Whether you open this URL in Safari or in a web view inside your app is entirely your choice.