I'm creating a simple app which has a list of characters and a list of (4) players, the players is simply a reference to a playable character.
I'm stuck on how to do the following:
Make a reference to the current player on turn
Find out who the next player on turn is
Handling the last player so that it will return to the first player ...
I am developing for iPad and have created a standard UISplitViewController application using the template provided in Xcode - a standard UITableView on the left and a detail view on the right.
I have modified the template so that when a user selects a table cell from the left view it pushes a new table view in it's place (still on the l...
Hi!
Sorry, but i do have a question which is a little different from the norm. I want to make a game display which appears to be isometric, so every cell is:
http://upload.wikimedia.org/wikipedia/commons/4/42/Rhombus_01.png
in shape. I am a bit unsure how to do this effectively, though I am currently using a 2D array
(M1[5][8] = {{...
Hello. I am Japanese.
The error goes out when scrollRowToVisible is executed. 'UITableView' ..in Xcode.. May not respond to '- scrollRowToVisible'
It writes as follows.
IBOutlet UITableView *tableViews;
[tableViews scrollRowToVisible:2];
I want to move it to the second line.
ReloadData operates.
Why
...
Not sure if this is possible, but I wanted to check it out.
I want to access the GPS features in iOS, specifically on iPad through my app. Ultimately the goal is to be able to see who else nearby is currently running the app as well. Is this at all possible or practical to implement?
...
What's a good book for learning Quartz in Objective-C? I thought about buying this book: Quartz 2D however, a reviewer said it's written mainly in C (I only know ObjC). So does anyone have any recommendations?
...
i was trying out quartz 2d today and i got to learn basic drawing and other things, but now, somehow everything i do doesn't draw a thing on the iphone screen! i tried making a new project and starting from scratch but still no luck... first, i made a new view based application, and then created a new file (.h and .m) as a subclass of UI...
Is it even possible to enable the HDR option from within my application? I assumed it would be there automatically. I looked for additional mediaTypes, thinking maybe kUTTypeHDRImage might be an option, but no such luck. It's not an additional source type, nor is it available through cameraCaptureMode.
ipc.sourceType = UIImagePickerCon...
Hey!
I'm looking for a oAuth/xAuth-Twitter-library for iPhone/Objective-C. I found MGTwitterEngine, but that didn't work, as they don't even link to the external libraries needed for it to work (heck, the example you download doesn't even work out-of-the-box!).
So, do you know any alternative libraries that do this, or how I can make M...
Basically, I'd like to know how to intercept a click in a webview and then have a new view pop up that has a navigation bar at the top (with a back button) and the content to be the link I clicked.
I currently have a tab bar template with 5 tabs and each tab is currently set to NavigationView and inside each of those tabs are views tha...
Hello guys,
in my Mac software I need decrypt a file and, after I do my operations on it, I will remove it. My problem is: Where can I put this file? I don't want show it to the user.
...
Hello guys,
is possible replace a plist file when my iPhone app is running? I'd like to implement backup into my app (into the backup zip I have also the plist file) and I don't understand how can I replace the plist file with its backup.
...
The first approach that comes to my mind is to put the singleton object in the appDelegate object as property. In this way you can access it from anywhere using
#import "myAppDelegate.h"
// ...
[[(myAppDelegate *)[UIApplication sharedApplication] delegate] SingletonObj]
The downside is you have to explicitly cast and import the header...
I'm trying to set a value and then return it using Core Data. This is what I`m doing right now :
NSManagedObjectContext *context = [(AppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext];
NSManagedObject *newShot = [NSEntityDescription insertNewObjectForEntityForName:@"Shots" inManagedObjectContext:...
Hi all,
i´m writing some kind of product list within an TableView.
My problem is that some cells have an image and some don´t furthermore the images don´t have the same width.
The problem is that the textlabel and the detailtextlabel do not indent vertically aligned over all of the cells. But i need all textlabels accurately under eac...
I'm having trouble with getting the -dismissModalViewControllerAnimated: to work on the iPad (as an iPhone app). For some reason it doesn't seem to do anything.
I call -presentModalViewController:animated: in MainViewController, after which I've tried calling the -dismissModalViewController from the presented view controller (using [se...
Hello,
I woudl like to send raw data (a void*) using SBApplication sendEvent
Unfortunaltly I've found no documentation about this.
Do you have any idea to achieve this?
Thanks in advance for yoru help,
Regards,
...
Hi all,
I have created a CALayer
(I added several shapes to the layer, but ultimately, I have a single CALayer), and I am having a LOT of trouble adding it to a CGImage. I have found some references to [CALayer renderInContext:ctx], but I am not sure how to implement it.
Has anyone done this before?
Cheers,
Brett
...
Update: Solved. See fix at bottom.
In my iPad app which supports all orientations, if the app is loaded in landscape, weird things happen:
Alert views appear in portrait, even though the rest is in landscape
Rotating the iPad from landscape to portrait does not trigger a rotation (nor does it trigger any of the shouldAutorotate style ...
A UIScrollView contains several UIView objects; how can I tell if a point on the screen not generated by touches is within a specific subview of the scrollview? so far atempts to determine if the point is in the subview always return the first subview in the subviews array of the parent scrollview, ie the coordinates are relative to the ...