iphone

Translating my cocos2d game into other languages

I have done a game in cocos2d. I used English. How do I translate that game to other languages like French, Japanese, etc.? ...

how can i display image in UIscrollView which comes directly from parsing of web service?

Hi!i want to display image in UIImageView which is on the UIScrollView and using Touch Event the image should change from Right-to-Left and Left-to-Right also.The images are the result of NSXml parsing so what should i do please help me in this task.what should i do and if possible then show me with some example.Thanks in Advance..... ...

connecting all benifit of facebook to iphone

how can i get all test console of facebook like API test console.this one think AND another is but it is not woking help me here is code for getuser name - (void)getUserName { NSString* fql = @"select name from user where uid == 1234"; NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"]; [[FBRe...

Accessing session cookies with NSHTTPCookieStorage

Hi everyone, I'm accessing a server's secure information and it sends a bunch of cookies to the App on request. The problem is some of the cookies are session only and when I use: [NSHTTPCookie requestHeaderFieldsWithCookies:[[NSHTTPCookieStorage sharedHTTPCookieStorage] cookiesForURL:[NSURL URLWithString:theCookie]] it doesn't retur...

How to compile third party c library in Xcode ?

Hi, i tried to do a sip client for iphone. I tried to use oSip or eXosip2 , i download their package ,and compile it using "./configure""make""make install " I get some *.a library, and i include there headers. When i compile it , their is warning , this *.a library formate doesn't support ! It's really annoying, what should i do to ...

generate new Certificate Signing Request after upgrading to Snow Leopard???

i recently updated my mac to Snow Leopard. But due to it all my provisioning profiles have been deleted. I didnt keep the backup for my keychain so i downloaded my Certificate Signing Request again from apple developer program and installed it in my mac.So to upload one of my old application i created a new App Id with a new Provisioning...

whats the proper way of passing an argument to NSTimer

Im using a basic timer that calls a method which is defined as below: - (void) refresh:(id)obj { if (obj == YES) doSomething; } I want to call this method from certain areas of my code and also from a timer [NSTimer scheduledTimerWithTimeInterval:refreshInterval target:self ...

How to use protocol instead of delegate in iPhone

Scenario: Need to execute CustomWebview delegate on view controller. Please help me with this code. Instead of using callback, I need to use "Protocol". Can it be done or we can only use callback in this scenario. On ViewController.m - (void)viewDidLoad { [super viewDidLoad]; //MyWebView *webView = [[MyWebView alloc] initWithDelegat...

Static cell from Nib file is not shown

I have a Nib file containing grouped table view and a cell. The cell is connected to UITableViewController through outlet. In cellForRowAtIndexPath I just return that cell and I can see a single cell in the table view. But when I change the row count of table to 2 and want to show the same cell, then I can see only one, it appears that t...

Is it possible to have iPhone sdk 4.0 & lower ones like 3.0,3.1.2, 3.1.3 together in the system

Is it possible to have iPhone sdk 4.0 & lower ones like 3.0,3.1.2, 3.1.3 together in the system. I had 3.0 to 3.2 earlier and then installed 4.0...But my lower sdks have vanished...now all i have is 3.1.3, 3.2 and 4.0? Is this normal, or did i screw up during installation? Thx ...

iPhone Using kABPersonRelatedNamesProperty

Besides the Apple documentation contained in the ABPeopleNavigationControllerClass Reference, is there any documentation/examples on how to implement the kABPersonRelatedNames properties specifically and in general for the class reference? ...

iPhone with a credit card swipe in machine.

Hello friends, I wonder how can we connect a iphone device to credit card swipe-in machine .Thus, any user swipes the card through credit card swipe-in machine,all the credit card details get transferred and stored in the phone device that can be used to confirm the payment transaction by user. The user can even use these as complete tra...

Detect iPhone 3G or 3GS (and iPod touch 2G vs iPod touch 3G) in JavaScript

Does anyone know a way to detect the older set of devices: iPod touch 1G iPhone 2G iPhone 3G iPod touch 2G From the newer set: iPhone 3GS iPod touch 3G iPad iPhone 4 I have found methods to detect the iPhone 4 and the iPad (using screen size). However, is there a way to tell the iPhone 3GS and the iPod touch 3G from the iPod touc...

Failing to parse JSON... is the encoding messed up?

I am trying to parse the JSON returned here: http://www.waterwayguide.com/map/php/bridge.php?ll=25.514339,-80.076164 However, I can't parse it as I normally would it seems: NSData *jsonData = [[(ASIHTTPRequest*)[data objectForKey:@"request"] responseString] dataUsingEncoding:NSUTF32BigEndianStringEncoding]; NSLog(@"this prints as expe...

Multiple Animations to a Sprite.

Hello All, How to Add Multiple Animations to a Sprite, (i.e) one animation after another finished. Also how to remove the old animation from the sprite. Thank You. ...

How to remove th COPY UIMenuItem in UIMenuController

Hi Guys, I am developing an iPhone application and worked with UIWebViews. I planned to customize the UIMenuItems thats popped up when i highlight strings in UiWebView (Copy, Select All, Cut, etc.). I tried removing those menuItems but i cannot remove the COPY menu item. I need your help guys. Thanks, ZaldzBugz ...

Mailto iPhone Question

Ok, The regular protocal used to send email from a form on iPhone (from what I know) is to send it via the Mail application. This code here: -(IBAction)sendEmail { NSString *url = [NSString stringWithFormat: @"mailto:%@?body=%@", toEmail.text, content.text]; [[UIApplication sharedApplication] openURL: [NSURL URLWithString: url...

Can a UIViewController conform to a UIScrollViewDelegate and then lead to the next view where there are pages to be scrolled ?

Hello all, I am trying to develop a program wherein which the first screen contains a button and after the click of the button, it should take me to a scroll view and a page control. I have successfully developed these two modules separately. But I am facing problems in integrating them. The first module lets me click and takes me to my...

alloc + init with synthesized property - does it cause retain count to increase by two?

I've seeen the following snippet quite a bit: In the header: SomeClass *bla; @property(nonatomic,retain) SomeClass *bla; In the implementation file: @synthesize bla; and then self.bla = [[SomeClass alloc] init]; I think that this assignment puts the retain count for 'bla' up by two; once through the alloc/init call, then throug...

Drawing circle with stroke and fill color

how to draw a circle using CGContextAddArc with different sroke color and fill color? ...