Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
Recently I am viewing Games category in IPhone [device] app store. For a particular game there is a "Tell a Friend" button on the nav bar.Tapping it opens a new mail creation screen with "Cancel" and "Send" buttons on nav bar.
I want to know:
-The new mail creation screen is from seperate application [Mail.app] or an inbuilt screen in app store. It seems to me that the app store application is paused while mail app is in process, is it right?
Does there exists any role of UIAppDelegate's applicationDidBecomeActive?
How can we pause an app?
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
The AppStore is an Apple application: it has access to methods that non-Apple apps do not. Just because it (or say the Photos app and the way it can attach a photo to an email) can do it does not mean there is a way to do it in the public SDK.
 

jnic

macrumors 6502a
Oct 24, 2008
567
0
Cambridge
For a particular game there is a "Tell a Friend" button on the nav bar.

Are you referring to the App Store itself or to a specific game? If the latter then it's certainly possible, otherwise refer to robbieduncan's reply.

Either way, you can emulate this behavior in your own applications by creating a view that is visibly and functionally similar to the mail application, using the SDK's networking and ABAddressBook features.

Relevant docs:
http://developer.apple.com/iphone/library/navigation/Topics/NetworkingInternet/index.html
http://developer.apple.com/iphone/library/navigation/Frameworks/CocoaTouch/AddressBookUI/index.html
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Are you referring to the App Store itself or to a specific game?

It's in the App Store application on the iPhone: I've just had a look. On every app (game or otherwise) there is a "Tell a Friend" button in the top right of the applications page (in the Nav Bar). When you touch it a new mail slides up from the bottom with the Subject and Content pre-supplied. You could do something very similar with a mailto: URL but I don't think the transition would be the same...
 

jnic

macrumors 6502a
Oct 24, 2008
567
0
Cambridge
Thanks, found it. If you used your own view with a few UITextViews then you could get the same transition effect with a CGAffineTransform, though you'd have to get the timing of the keyboard correct so that they slide in at the same moment.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.