iphone - take screenshot of another app? - iphone

Would it be possible to have my app take a screenshot of another app? For instance, to make some sort of "screenshotter" application?
I know you can take a screenshot of any UIView, but would it be possible to get any UIView? For instance, another app, or what's running below?

No. This is not possible. Even if you had a really pressing reason to want this, it would be a humongous security hole.

Related

iOS - How to show hints for gestures for iOS app?

I have seen some apps where when you launch them for the first time after downloading (e.g. Chrome app on iPhone), it shows you a list of animated gestures on the screen, kind of giving you a tour of the app.
How do I build one something like that? And how does the app know to launch only for the first time after download and not since then? For the second question, I am guessing a "shown=TRUE" value can be saved inside a PList file and checking the value each time when the app finished launching. But I am more curious about the mechanism involved in creating a guided app tour.
You can use transparent and semi-transparent images with a UIImageView, so you can make up an image with arrows and notes and put over the whole screen. You could fade it out when the user taps.
To know if it's the first time running the app, you should use NSUserDefaults instead of a plist; it's much easier, and you should be app to find a quick tutorial on that fairly easily.
Also, you could check around on this site for controls like this one. I haven't used any of them myself, so I'm not sure how much they differ from a regular UIImageView. They look nice though.

How can I use a UIPickerView in my settings.bundle like how the 'nike+ ipod' app does it?

I can't see how this is possible from the documentation but here nike is doing it in their app so there must be a way.
It's impossible unfortunately. Apple developed it for Nike, so they used tricks of their own to do it. It might actually be possible, but it's certainly undocumented if possible. Impossible for an App Store app. Let us know if you figure out a way to do it even if it's undocumented.
If you use the library InAppSettingsKit, you can have a setting that uses a custom subview (a custom UIViewController) to display the choice to the user. So all you have to do is to create a custom view controller that looks just the one in your picture (it's basically just a UITableView and a UIPickerView).
In the example app that comes along with InAppSettingsKit, there is an example on how to use a custom subview.

Is it window based or view based app?

I need to make an iphone app like USA Free that's in App Store.
Can anybody, please, tell me what kind of app is this (window or view based) and how it is possible to make horizontal slide effect when changing views?
Thank you!
For transitions, take a look at http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/UIView/UIView.html#//apple_ref/occ/clm/UIView/transitionWithView:duration:options:animations:completion:
All apps contain one (or more) windows and views. You might want to start with the basic of creating an app. http://developer.apple.com/library/ios/referencelibrary/GettingStarted/Creating_an_iPhone_App/_index.html#//apple_ref/doc/uid/TP40007595
View based just means the project comes with a default class already setup. You can put anything you want in that class. Window based is just if you want to create all the classes your self. Theres not much difference, so it doesn't really matter which you choose as long a you know how to create the horizontal slide effect your going for.

Move the object in iPhone?

I want to ask a question about the iPhone application. I am going to write a application, and the application can let the users to move the list or folder just like you move the app in the home page in iPhone. Is it possible to do it? Thank you.
It is possible to move stuff like moving the app in the home page. It can be hard but it is possible. You need to handle all the touch events inside your view controller and then decide to move stuff. There is no built-in ViewController for doing that for you.
Everything is possible. So the answer to your question is: Yes.
But I don't think that's what you wanted to know - there's no convenient or existing way to implement something like this, you would have to do it all by yourself.

iPhone App Delete Badge

I'd like to replicate the visual style of the Springboard's delete badge when you want to delete an application. I've gotten it pretty close, but it's not quite right, and I get the feeling that Apple isn't rendering these on the fly, but rather has a set image that they use.
I was wondering if anyone has done this before, or has such an image, or anything, really :)
I assume you're talking about the little x that is pinned to the top left of the App icon?
As far as I know, it's a PNG that is stored on the iPhone, but of course you have no legal way of getting at the filesystem.
You could always take a screenshot of the iPhone and hack it in Photoshop, but Apple mightn't like that.