iphone

How to determine if an NSDate is today?

How to check if an NSDate belongs to today? I used to check it using first 10 characters from [aDate description]. [[aDate description] substringToIndex:10] returns string like "YYYY-MM-DD" so I compared the string with the string returned by [[[NSDate date] description] substringToIndex:10]. Is there more fast and/or neat way to check...

Iphone C# development

I wanted to use monotouch, but unfortunately I don't have $400 to spend. So I found xmlvm http://www.xmlvm.org/ and I it seems It can crosscompile .net bytecode to objective c. But, I'm not sure, are there any wrappers? What else would I need to start developing for the iphone using xmlvm?? ...

CAScrollLayer doesn't scroll!

Maybe it's because it's late. Whatever the reason I can't figure out why I'm having trouble with a simple CSScrollLayer example I'm trying. I add a 50 pixel Eclipse icon to a view based project and in my initialize method (called from initWithNibName:bundle:) I have this: -(void) initialize { CAScrollLayer *scrollLayer = [CAScrollLaye...

How to make a view by clicking a Button on iPhone programatically?

Hi, I have developed a program with UIButtons with a navigationBar, now i do not know how to get a view by clicking a Button. When i click the button it should show me a different view. I also want to know after passing to the view, how to navigate back to the before view programatically? ...

convert integer into image value on iPhone

Ok I am trying to show a number using a series of Images. eg. show int 123 by using images 1.png, 2.png and 3.png can someone tell me how can this be done using on iPhone? There are few apps that display time using dotted numbers etc. OR should i embed a font to display the number in fancy way? ...

iPhone Development: MapKit with CoreData

Is there a good resource (book, article/tutorial, video, audio) on working with both MapKit and CoreData together? An article with some tips and tricks to efficiently utilize the memory and avoid running in to memory warning situations? I appreciate any personal advises that you can give me, as well. ...

iPhone UIDatePicker in Landscape mode?

iPhone UI Componenet UIDatePicker does not support Landscape mode? it scratches 2/3 of the width in Landscape mode only. How to make it use up full width (480px)? ...

How to get current value of UITextField in cocos2d 0.8.2?

Hi all I am using cocos2d 0.8.2 for my new game. I have added a UITextField in my game and on click of a button (this button is actually a sprite i m using ccTouchesEnded! ) i save text field's value in database, but whenever i access the value i am getting nil. if i initialize the textfield value by some string, it always give me only t...

Navigation bar not displaying

In a tab bar based app, I add a new UIViewController from tabview1 like this [self.view addSubview:self.aView.view]; I created the nib for aView in IB. It is a view with a tableview and navigation bar. I have aView and bView, which are nearly the same and added to the parent the same way. The only difference is that aView has two s...

Source of UIView Implicit Animation delay?

I have a block of UIView animation code that looks like this: [UIView beginAnimations:@"pushView" context:nil]; [UIView setAnimationDelay:0]; [UIView setAnimationDuration:.5]; [UIView setAnimationDelegate:self]; [UIView setAnimationWillStartSelector:@selector(animationWillStart)]; view.frame = CGRectMake(0, 0, 320, 416); [UIView commit...

how to end user session (log out) in twitter using objective C

Hi friends, I have integrated twitter in my app. but I am not able to log out the session of the user. For logging I am using http://%@@twitter.com/statuses/update.xml and passing the username and pswd in the url. Inside body i pass the string that needs to be updated and its working fine. Now For log out they have an request called ...

Setting the active executable in Xcode

I have just updated to Xcode 3.2 Beta 3. Since doing this - the project I am working on only has one option in the drop-down box in the top-left corner for 'Active Executable' that is set for 'iPad Simulator (3.2)'. I am developing for the iPhone and have no interest in the iPad. How can I get the iPhone to appear as an active executabl...

doubts in in-App purchase?

Hi, IN BUILT_IN MODEL If i purchase feature through Non-consumable for on application,if i delete it, If i purchase it again,will apple remember my user_id to purchase it as free? IN SERVER MODEL? suppose the app uses server model, may the server use apple to remember that user? any help please?with explaination? ...

iPhone: UIWebView Zoom in-out option

Hi, I want to zoom in-out option in a UIWebView. How to do it? Thanks in advance. ...

Connection doesn't respond when beeing set from a new thread

Hi, The connection doesn't respond when beeing set from a new thread: Code 1 (responds fine): [self setConnection]; } - (void)setConnection{ NSLog(@"setting myConnection with request"); myConnection = [[[NSURLConnection alloc]initWithRequest:[NSURLRequest requestWithURL:requestURL] delegate:self] autorelease]; } Log 1: 201...

Parsing XML on iPhone created in PHP

Hello, i'm trying to parse a xml string with NSXMLParser which i created in PHP. My PHP sript is: $doc = new DomDocument('1.0'); //$doc->preserveWhiteSpace=false; $root = $doc->createElement("root"); $root = $doc->appendChild($root); $child = $doc->createElement("child"); $child = $root->appendChild($child); $value = $doc->createTextNo...

how to determine the app is downloaded from the app store?

hello,guys, As there are lots of cracked apps running in the jailed-break iPhone. Can the app judged if it is downloaded from app-store to protect it from being illegally used? If so, what is the information can it get when the iPhone is connected to the web? Thanks a lot! ...

Deleting photos from Resource Path.

Hi, Iam developing an applicaton in which iam saving the picture taken from photo library into resource. Now i want to delete the photo from resource path how can i do that there is some function for deleting the photos from resource? ...

Disable location service in iPhone simulator?

I'd like to test what happens if my app can't get the location coordinates. Is it possible to disable the location service in the simulator, like on an iPod Touch with WiFI turned off? I still don't have my iPhone Developer Program certificate, so I can't test it on my device. Thanks in advance! ...

How to Organize Your iPhone Applications Into Folders

Hi all, i just wanted to know, How to move iphone installed Icons into a main folder on jailbroken iphone? It creates its own seperate icon cluttering up your screen with a bunch of ICONS. Is there a way to create a “Games” Folder or Icon where you can place all these Applications into the Folder? You need to install “My Categories”. it...