When I get a GKLocalPlayer or use loadPlayersForIdentifiers:identifiers withCompletionHandler: to get a list or individual GKPlayer aliases, the GKPlayer object when logged, looks something like this:
2010-09-23 10:39:01.759 Cee-lo[76500:207] Players loaded by identity: (
"<GKPlayer 0x84125a0>(playerID: G:1234567890, alias: typeonet...
Hey,
I'm using the ASIHTTPRequest library to authenticate with Google Voice. I get as far as getting the auth code but when I try to get send the auth token in the headers, it still takes me back to the login page.
ASIHTTPRequest *rnrRequest = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"https://www.google.com/voice/"]];
...
Hello guys...
I am probably not seeing something here, that is why I am asking for help :)
Here is the deal I have a NSMutable array of items that fulfill the NSCoding protocol, but NSKeyedArchiver always fails to archive it... here is my object implementation:
@implementation YTVideo
@synthesize URL,thumb,titulo;
#pragma mark NSCoding...
Hi, this is a bit of a newbie question but I can't seem to find it anywhere. I have defined a class in a set of .h/.m files and have a separate .h/.m for drawing. What I'm trying to do is create an array of objects from this class, and draw them sequentially to the screen.
Of course, I'm getting a 'squares' undeclared (first use in this...
I need to generate rtf-files on iOS-Devices.
As RTF only supports ASCII with escaping, I need to find a solution to escape non-latin characters, so that i.e. ü becomes \'fc, ä \'e4 and ë \'eb
I have following code inside a Category on NSString
self = [NSString stringWithFormat:@"{\\rtf1\\ansi{\\fonttbl\\f0\\fswiss Helvetica;}\\f0\\pard...
hi,
heres the situation:
firstly i create a plist in my resource folder. when my app start it will load from doc folder plist, if there is no plist, it will copy the plist from resource folder to doc folder and load from doc folder. ok up to here no problem.
ok i load to device and simulator no problem.
now here is the strange part.
...
I'd like to design a background image for my app. The image should fill the iPhone screen.
What image size that will work for 3G and 4G?
A) 320 x 480.
B) 640 x 960.
I prefer to use B as it will have more quality, will 3G resize the image to fit?
Thanks for any help.
...
I have a button set up in IB. I have an IBOutlet set up and the onscreen object linked to it. Is there a way to programmatically change that buttons position and/or size? I know you can change the title and some things but I don't see how to change it's position or size.
Thank You.
...
Hi all,
I have a class,
@interface OnlineDataModel : TTModel < NSFetchedResultsControllerDelegate > { ...
Where TTModel is,
@interface TTModel : NSObject < TTModel > { ...
OnlineDataModel class is Singleton, so its object never expires. I am performing the Fetch operation within this class and setting the delegate of the ...
I have an NSObject set up to control various elements on my screen.
I initialize the class inside my View Controller like this:
self.pageSetupClass = [[PageSetup alloc] set:self.pageID];
In IB I have added my NSObject object and linked a button to an IBOutlet on it. I've also linked it to an IBAction found in the object. When I cli...
I'm seeing strange behavior with the MAX macro in Objective C. Specifically, I have this code in my main function:
NSArray* array = [NSArray array];
NSLog(@"[array count] - 1 = %d", [array count] - 1);
NSLog(@"MAX(0, [array count] - 1) = %d", MAX(0, [array count] - 1));
NSLog(@"MAX(0, -1) = %d", MAX(0, -1));
The output is:
[array co...
I need to get time zone for the current location such as -5 or +3 and so on. I am unable to do so. I am using datecomponents:
// Turn the date into Integers
NSInteger year = [dateComponents year];
NSInteger month = [dateComponents month];
NSInteger day = [dateComponents day];
...
I am used to programming for the iPhone. There, I would connect a button to an action, and then a method by creating the method like so: -(IBAction) DoStuff{…}. Then I would make an outlet for the button, and then the actual button in Interface Builder. I would then connect the button to the outlet, and then connect the button to the act...
I made a text field but I didn't use Interface Builder, I did it programatically in XCode. So now I need a programmatic way to make it resign first responder so that the keyboard will go away when the user presses enter.
...
Hi All,
I am implementing photo gallery functionality i my iPad app . I want to display Photo gallery like iPad Photo app gallery.
is there any external library or sample code available to do this ?
thanks!!!
...
Hey, I need to make a HTTP POST request with an array of NSDictionary objects.
When I do this, however, I notice on the server side that the NSDictionary object does not get deserialized to a hash. It gets deserialized to a string - which is not what i want.
This is how I send the parameter from the client (IPhone) side:
ASIFormDataR...
My app was recently rejected due to using a private API (addTextField: method for UIAlertView, which is quite useful, might I add).
Is there any non-private alternative to UIAlertView's undocumented addTextFieldWithValue:label:?
Thanks SO much in advance!
...
Hi, everyone,
I want to ask the size of the NSMutable Array can be 2000? If not, is it possible to open an array to store 2000 elements. The elements is the user-defined object. Thank you.
...
It appears after much searching that there seems to be a common problem when trying to do a file copy and show a progress indicator relative to the amount of the file that has been copied. After spending some considerable time trying to resolve this issue, I find myself at the mercy of the StackOverflow Gods once again :-) - Hopefully on...
Possible Duplicate:
Best way to programmatically detect iPad/iPhone hardware
How can I differentiate the iPad and iPhone programmatically?
...