Move the object in iPhone? - 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.

Related

In-app tutorial

Im looking at adding a tutorial kind of thing to my app. Basically I want to be able to give a quick message across of what the parts in the app do. I want the users to see it once and not again. I have searched relentlessly for this but I always found app building tutorials.
A lot of games have what I want but I cannot for the life of me find how to do it or, what it is called to find a tutorial. Could someone please help me out.
Thanks in advance,
Sam
You'll need to build it yourself.
What I usually do is, on top of the view i want to explain, add a semi transparent view with some arrows pointing at stuff and a small text/button explaining it. All of that has to be modal and you can save in the NSUserDefaults if the user has already seen it/skipped it/launched the app for the first time. You'd have a method that builds all those views and you simply call it in viewDidLoad (by checking against a simple boolean value store in those previously mentioned NSUserDefaults, for example)

iphone - take screenshot of another app?

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.

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.

iOS - UIDocumentInteractionController and adding a view

So I have an idea for something just for fun I want to try and was wondering if someone could give some insight whether it would be possible or not.
Basically, I want to try and use a UIDocumentInteractionController and place a clear overlay view over top of that that would serve as sort of a drawing board. Is this something feasible to do? I think it would be cool to try and make it so the user could circle part of the document and put a post it note on there to leave feedback.
I just need to know if anyone knows whether or not it's possible to add a view on top of a UIDocumentInteractionController window? Or perhaps there is a better solution? I am not looking for anyone to do this for me, just conceptual ideas. Any thoughts or feedback would be appreciated. :D
EDIT: I know how to do all the things like handle touch events, view animation, all of that sort of stuff. I am just opening a conceptual question to the public kicking some ideas around...
It's a nice idea however I don't believe you can achieve what you're shooting for.
After presenting its user interface, a document interaction controller handles all interactions needed to support file preview and menu display.

how to create button in cocos2d?

I am new to cocos2d, In that I want to create a button, by touching the same some events should be generated.
But I don't know how to make a button in the same. As well as want to save username also. But I am not able to create a text box even.
If any one know, kindly help to create both of the things.
If I am not wrong then there is not any method which will create button something like our normal iphone codes.
For cocos2d, making some functions which will work as Buttons, we are suppose to create CCMenuItem. The menu items are the best way to create button and it is easy to be managed.
After a long time I just come to know these things.
Have you looked through the Cocos2D documentation/forums and examples provided in the download package? There are many example apps which use some sort of menu/buttons.