iphone

XCode uses an .xib not inside the project folder

I went back to an old project and recompiled it for OS 4.1 succesfully and ran it. I was asked to add a fourth tab to the Tab Bar, but I could not set its class to the newly added ModelsVC.h/.m. [edit: because it did not appear in the class dropdown, but the other viewcontrollers were there.] I moved the project folder to a backup folde...

Illustrator or Fireworks to create iOS graphics?

Hey, I'm doing some iOS applications and now I need to integrate graphics and icons into them. What should I use to create them, Adobe FireWorks or Adobe Illustrator? ...

Walking the responder chain to pass custom events. Is this wrong?

According to the iOS documentation, the responder chain is used to pass touch events "up the chain". It's also used for actions generated by controls. Fine. What I really would like to do is send a custom event "up the chain". The first responder to pick up on the event will handle it. This seems like a pretty common pattern, but I can'...

What is the best way to update data for an iPhone app?

I am developing an application for iPhone and one part of it deals with a list of currencies and daily exchange rates. I am using SQLite to store all these rates. Now I came to the part where I want to make the update part of my database with the new exchange rates. The first thought was make a request to a server with a specific d...

want to add manual erasing option in ipad painting application by quartz

Hi all i am working on a painting application using Quartz 2D for ipad. now i want to add an eraser option so that user can manually erase portion of his drawn line with touch.i have also background image.can anyone please help? ...

Property Declaration

OrderDetailsView.h #import <UIKit/UIKit.h> @protocol OrderDetailsViewDelegate; @interface OrderDetailsView : UIViewController { IBOutlet UITextView *OrderDetails; NSString *selectedOrder; id <OrderDetailsViewDelegate> delegate; } @property (nonatomic, assign) id <OrderDetailsViewDelegate> del...

Bluetooth not available - try again later

Yesterday, I had programmed a simple Bluetooth network for my iPhone application. This morning, when I tried to continue development, it suddenly wasn't working on my iPod Touch 2G at all. It works just fine on the iPAD however. The problem arises when I try and set the availability of my GKSession object to YES on the iPod, having creat...

iPhone SDK: Testing for valid string date

I want to be able to validate a date. It's valid entry is 4 characters with a mmyy mask. I want to make sure that the value entered is indeed a date. Thanks in advance. ...

Exiting or interrupted?

Is there a way to differentiate when a user is exiting an app because he/she pressed the home button or because it's receiving a phone call? in iOS 4.0 the app doesn't quit if the user answers a call but it does in 3.x. I'd like to save my app state if the user is interrupted by a call or any other phone event but not if the user exits...

iOS/ObjC, storing user input and retrieving it.

Hi, Pretty new to iOS dev, I feel I have a grasp of the basics. I was thinking through an app I would like to make and the steps involved, components needed... and I have no idea how to or what is the best method to save user input and retrieve it. An example being (I don't plan to make this, but it illustrates what I want to know), s...

Record data to attributes in core data Iphone

I have about 20 entity : Event1 ... Event20 In each entity i have property values1 ... values20 I need record data in for example Event5 values8 But something wrong - may be data record in each values8 (Event1 ... Event20) How do right? NSString *str = [NSString stringWithFormat:@"Event%d", variable]; NSString *value = [NSStri...

What is the size of GameCenter achievement images?

So I want to incorporate GameCenter achievements in my game, but I have to supply images for each achievement for display in the GameCenter app. Apple isn't really clear about the required size. I've read online that they demand 512px images, but then they scale them down to something like 32px which makes it all blurry and/or pixelated....

cancel a SynchronousRequest in iPhone SDK. (TIMEOUT Interval not wokring)

Hello, I've queried this forum for hours looking for an idea/answer/solution for my problem, but came up empty every time. i have created a SynchronousRequest using the following: NSMutableURLRequest *theRequest = [[NSMutableURLRequest alloc] initWithURL:url]; NSString *msgLength = [NSString stringWithFormat:@"%d", [params len...

Facebook Chat using XMPPFramework on iPhone

Does someone already created an iPhone app that connect to the Facebook chat server using their X-FACEBOOK-PLATFORM authentication mechanism and XMPPFramework ? I have no idea how to start, any code sample would be much appreciated. ...

Web service for streamin video on iPhone

I have to implement service which should stream a video content to iPhone application. My service is implemented in PHP: header("Content-Type: video/mp4"); header('Content-Length: '.$result['size']); echo $result['data']; where result is array containing the content of the video file and its size. When I open it with browser there i...

play quicktime in safari on the iphone

Sorry - can't find any ref anywhere for this. Is it possible to play quicktime on a safari page on the iphone without it going to the video player? Client wants other items on the page to be viewable whilw video is playing. Many thanks & if so any ref would be great... best, Dan. ...

Including resources from external projects in xcode

I want to use components and functionality from an external project in a new iPhone project. I am able to add external projects using "Add >> Existing Files...". At build time however, resources such as images are not copied into the build from the external project, however the .h and .m files are. Do I need to add something specific to...

How do I add authorizations to code sign an app from new keychain without any human interaction

I'm trying to automate the process of building iphone apps with a particular certificate. So imagine if different users uploaded their cert into the system and it was immediately available to code sign against. I want to do this without any interaction. I also don't want to clutter up the system or logon keychain with different user cert...

Hide Core Data sqlite file when iTunes File Sharing is Enabled

Hello, I am using iTunes file sharing in my app, and need to put Core Data's sqlite database elsewhere so that users don't fiddle with it. I have read a previous SO post regarding the best way to hide the sqlite file that Core Data uses. There seems to be conflicting opinions regarding whether to put the database in Library/Preferen...

Background image scroll issue with two cellview in UITableViewController

self.tableView.backgroundColor = [[[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"evt_det_bg.png"]]autorelease]; I want this background view will be scrollable. I tried the above code.But the background applied each row.I am using two cellview for the tableView.How can i achieve this. Thanks ...