It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm developing a game and I'm there a lot of things that change after a few minutes, so I created a New Game button where I use Application.Restart() to clean everything and get a new fresh game, but the problem is that this exits the game and starts a new one. What I want to do is to restart a game, but without the players noticing that the game exits. How do I do this?
best regards, joao.
You should implement Start(), Stop() and Restart() methods on your main game controller class. The Restart() method should reset the values of all variables, states, players, scores etc and reset the game board / environment and reset the game to it's original state. Application.Restart() will always be noticable unfortunately.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to create an iPad application in which there are four windows on single screen.
these windows should be updating simultaneously (Multitasking). How i can do this any suggestion/help will be appreciable
I'm going to assume that you mean views and not windows.
First, make sure you're not over-complicating the interface. It should be intuitive, and four distinct simultaneous views sound like a lot (of course, it depends).
Second, create a UIViewController. Then, create four UIView subclasses, with all the properties and objects you need, lay them out as subviews, and build the logic into the UIViewController, which can be the delegate for them.
I hope this helps get you started in the right direction, but as others have said, this is a broad question and there are many applicable approaches.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to get the clock's alarm information on iOS, is there any way to fetch the information?
No, there's no way to do that.
I don't know how I can add credibility to my answer, except from saying that in iOS, apps are "sandboxed", so they don't "talk" with each other. The only way they can interact (in a very restricted way) is if they share a part of their App ID. As the stock clock app is made by Apple, there's no way your app will ever have access to data from the stock apps.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a cocoa application,I want to get the time from the application startup to it startup succeed.And then post the time to my server.Can someone give me some tips?
Define your starting point (e.g. application:didFinishLaunchingWithOptions:) and ending point (e.g. viewDidLoad on the main view controller). Create a class (with + messages) that has start and stop calls. Once you get stop, post the time to your server (asynchronously of course).
all this measuring wont take into account the runtime loading.
classes loading & !frameworks loading
it happens before your main and even instruments won't correctly profile it
although it will show that an amount of time passes between 'Run App' and main!
this load can have a considerable influence on your time especially when frameworks have been swapped out / you do a cold start
tried at WWDC WITH apple engineer and we could reproduce times ranging from 3s(normal time for my app) to 10(when we used safari before!)
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i am very new to objective-c, but i want to make some app that does the following:
1 It has object library (shapes, text fields and so on), i keep in on a panel on my app.
- the task is to drag a shape to the main form and place it somewhere where i like on my form: kind of same thing like in the Interface builder.
2 resize the shape (Actually an UIIMage).
It's pretty same with the Interface builder.
I would very appreciate for any example code that helps me to solve this task.
EDIT:
Exactly the same but for iOS exists here:
https://github.com/spoletto/SPUserResizableView
As i can see in the code it's not very easy task so this question is considered answered.
You can start by checking this out:
https://developer.apple.com/library/mac/#samplecode/DragItemAround/Introduction/Intro.html
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've done this with Flash and Actionscript but does anyone know how I'd even begin to make a clickable map in iOS?
Is using cocos2d a good approach?
I want to make a clickable map of countries into a mini-game.
Did you know you can create iOS applications utilizing Flash 5.5?
http://www.adobe.com/devnet/logged_in/abansod_iphone.html
Some other good resources:
http://www.gotoandlearn.com/play.php?id=116
Just some food for thought.
I have done a few simple things thus far like Rss readers with no issues. Never done a large game.