iphone-simulator

NSHTTPURLResponse statusCode is returning zero when it should be 401

Just doing a normal HTTP post with a NSMutableURLRequest and sendSynchronousRequest. But the NSHTTPURLResponse object I pass in has a statusCode of zero after the call. I get this error: Error Domain=NSURLErrorDomain Code=-1012 UserInfo=0x4d3b3c0 "Operation could not be completed. (NSURLErrorDomain error -1012.)" but no status code. ...

Return value For NSDictionary On Simulator, iPhone

Hello there, I have some code which requires an iPhone to run. I do however want to test my app on the simulator. On the iPhone I use this to return a value: return [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:-1], @"number"]; I'm looking for something like this I THINK: - (NSDictionary *) data { #if TARGET...

tableview image to be display in detailview

DetailsViewController.h { UIImageView *Image; } @property(retain, nonatomic) IBOutlet UIImageView* Image; DetailsViewController.m - (void)viewDidLoad { [super viewDidLoad]; self.Title.text = location.title; self.desc.text = location.description; this is the code to pull data from plist whenever user select a row in the uit...

Changing Carrier Name on the iPhone Simulator

How can i change the carrier name in the iphone simulator? The instructions here don't work for me: http://www.ipodtouchfans.com/forums/showthread.php?t=190607 ...

Adding a self-signed certificate to iphone Simulator?

I have a self-signed certificate at the endpoint of my API. I'm trying to test some things using the simulator but am getting "untrusted server certificate". I have tried to use safari on the simulator to download the .crt file, but that doesn't seem to work. Where does iPhone Simulator get its keychain from? How can I add a trusted ...

iphone weird crash on device but not seen in simulator

Hello, I tried to install and run one of my applications on device. On a simulator, it was working fine. But once on device, it crashes somehow. I was trying to debug but i could not get anything there. Here is what the debugger console shows.. Can someone please help me with this..: Here is the debugger log: Program received signal EXC...

iphone settings disappear

I have created an app which uses Application Settings and user defaults following the example in the book "Beginning iPhone Development". In some cases my settings seem to disappear. If I launch the simulator I can go into settings and see it, I can then open my app and my settings can be read from within the app. If I then leave my app...

How to record/obtain sound samples 40ms iLIBC beep/silence

I want to record/Obtain a 40 ms sound sample which produces a BEEP (iLIBC). Does anyone know of any tool which allows me to do this? ...

iPhone Simulator Refresh/Redraw View when debugging?

Hi, anyone does knows how redraw a view when debugging code? When Xcode is in the debugger mode, doesn't refresh the screen. If I add a view or a button, nothing is show on the screen! ...

Core Data on device vs simulator

I have a simple Core Data application, with a table view and a drill down view. When I build and run in the simulator, all of the data in my database loads and the table view/drill down views function properly. When I build and deploy to a device, my application only loads a small subset of the data (a few sections, A - C). I have no w...

How to import contacts from Mac OS X AddressBook into iPhone Simulator

Is there a way to import contacts automatically from my Mac OS X Address Book into the iPhone Simulator Contacts app? Or vCards or anything like that? I'm building an app that displays contacts in various ways and I'd like to have a way to have lots of contacts without typing them all in myself. ...

iPhone development on PC

Can anybody shortly describe solutions to start develop for iPhone on PC? ...

UIScrollView.zoomScale and UITableViewCellStyle errors for OS2.2.1

Hey, When i debug my application in Simulator-2.2.1 i get the following errors which i surprisingly don't get while debugging in Simulator-3.1.2 : in my code for UITableViewController implementation file i am using the method: -(id)initwithStyleUITableViewCellStyle)style reuseIdentifierNSString *)reuseIdentifier for which i get t...

Where does the iPhone Simulator store the installed applications?

I want to have a look at the app directory from the iPhone Simulator, so that I can see what kind of files it is creating when I use my app and what stuff is in these files (i.e. when it creates the sqlite file for Core Data and stuff like that). ...

UITableViewCell UILabel Vertical Alignment Seems Off

I have a simple application that uses a few non-standard UITableViewCellStyles (like UITableViewCellStyleValue1, UITableViewCellStyleValue2 or UITableViewCellStyleSubtitle). When I run the app in the Simulator all works just fine; but when I run the app on the Device, the UILabel's don't necessarily vertically line up in the middle of t...

how do i add a new row on the last row of uitableview

Instead of having a '+' sign to insert a new row..is there a way whereby i can insert a new row on my existing table?meaning to display the "Insert new row" on the last row of my uitableview..and also is it possible to edit the string to different name rather then just "Insert new row". ...

How to simulate a phone call income on iPhone Simulator?

I want to simulate a phone call in my iphone simulator. Or which method will be called if a phone calling me? ...

How to get the Device UUID on the Simulator?

Calling [[UIDevice currentDevice] uniqueIdentifier] returns nil and "unable to determine UUID for host. Error: 35" message in the console. Where is the UUID stored on the simulator? ...

Image in UIAlertView

Is it possible to add image in the AlertView?like showing image from plist file. Need help. Thanks ...

iphone app only works first time on simulator

I've got an issue with my iphone App and i'm not sure if its an xcode project issue or a code issue (I'm leaning towards xcode project issue at the moment). If I reset the iphone simulator and build and run my app it works fine. If I then do a build and debug again the app will crash straight away with no meaningful callstack. The app w...