xcode

How to download OpenStreetMap tiles from CloudMade?

how to download cloudmade map tiles? i have to download tiles with different zoom levels? how save these tiles to database for later loading? any sample code available? any help is appreciated.. ...

iPhone SDK 4 The version of iPhone OS on “” does not match any of the versions of iPhone OS

Right, I am running XCode 3.2.3 with the iPhone 4 SDK. I have paid apple and enrolled, added my certificates and provisioning profiles. Now, I have plugged my iPod into Xcode and clicked "Use for development". My iPhone is running iOS 4.1 and Xcode says - The version of iPhone OS on “” does not match any of the versions of iPh...

UIWebView - adjust on rotate?

Hello, I have a UIWebView which loads a url. In MobileSafari this webpage will adjust when the handset is rotated to the landscape position. In my UiWebView it just stays in portrait - is the a property I need to add to allow this to occur? Cheers! ...

Make Keyboard disappear by force on ios 4.0

When TextVIew was activated I used to make keyboard invisible on ios 3.1.3 version by using the source i wrote.(please refer to above or below my email.) but I can not make keyboard invisible any more with the source on ios 4.0. Could you tell me how to make key board disappear on the ios 4.0 version ? [[NSNotificationCenter defaultCe...

XCode Instruments - equivalents for Windows?

XCode's Instruments make me feel physically I'll. They're based on DTrace - which has some loose equivalents in Windows - but the GUI Apple made for them makes them usable in a day to day way. Visual Studio just doesn't seem to have tools to compete. It has an attempt at a profiler that requires a lot of command line mojo and parsing of...

Correctly debugging IPhone Apps on XCode

The line below has an error, can you see it with a naked eye? NSString *title = [sender titleForState:UIControlStateNormal]; NSString *newText = [[NSString alloc] initWithFormat:"%@ button pressed.", title]; When the Iphone simulator executes this line it crashes without any other information. I must be missing something about debuggi...

Where is Xcode's Build and Archive command looking for its iTunes artwork?

I just found out about the Build and Archive option, and it looks very nice. However, my application build with Build and Archive has a big question mark as its artwork in the Organizer window, instead of my nice iTunesArtwork file. I tried to have it in my project as PNG, JPG, with or without extension. I probably missed something sim...

SplitView Controller Menu Overlay

Hey there guys, I'm trying to create a menu overlay system on top of a split view application for the iPad. The menu overlay systems is suppose to support a few buttons, one of which will make the overlay disappear and show the SplitViewController. My application delegate is as follows: UIView *view = [[UIView alloc] init]; [view add...

Upgraded to SDK 4.1 and can no longer install on device with OS 4.0

Each time a new SDK came out, there has been the problem with the "Base SDK" which is really a "max SDK" and backward compatible. My project builds fine after adjusting the "Base SDK" in the Project Info. But why do I get these messages on the console below the Target Info window when I change the "iOS Deployment Target" to iOS 4.0? "iO...

Getting strange debugger message: Assertion failed: (cls), function getName: what is this?

Since I upgraded from Xcode 3.2.3 to 3.2.4 and iOS 4.0.1 to iOS 4.1 SDK, when I set a breakpoint in my code and single-step over instructions, at each step, the debugger will spit one or more of that line: Assertion failed: (cls), function getName, file /SourceCache/objc4_Sim/objc4-427.1.1/runtime/objc-runtime-new.m, line 3939 It doesn...

iPhone SDK - Show image until background task finish

Hello, How can I go about adding a view that appears until the background task finishes (the task in question populates a view and takes ~5 seconds). Thanks, ...

How do I deal with the warning Unknown escape sequence '\040' in cocoa

I have the following Warning popping up in a few of the Applescripts I'm running in a Cocoa application: I have tried everything I can think of to remove the error such as totally rewriting it, copying and pasting from another similar script that doesn't have the warning etc. but I can't get rid of it. Can anyone tell me where I might...

Xcode change global variable for each target

Hi there, I have a series of targets, and each one looks at a global variable I am currently storing in a constants file for the name of the directory in which that app's resources live. However, this means that I have to change this value each time i change the target, which is a terrible process. What is the best way to change that ...

Turing off functionality dpending on device iPhone, or iPod touch

Hi, I have what i thought was a relatively simple question but i cannot find an answer to it yet. I have an iPhone app that uses GPS on one of its screens. I want to disable this screen using code when the app loads,so disable it when a iPod touch is being used. This is so it can still be useful on a iPod touch as there is a lot of funct...

iOS using External Object in Nib

I am writing an application that needs to interfaces with different backend systems. I decided to use a Protocol in order to abstract my backend Classes. I created a nib called LoginViewController that contains an "External Object" reference of type "NSObject", and wired it to the systemDelegate outlet in my LoginViewController. @interf...

Why doesn't Xcode + Instrument Leaks detect this leak in simple C++ program

I have the following in a simple C++ console project in Xcode. When I run this with instrument Leaks, Xcode does not flag any memory leaks even thought there is a glaring one. What is going on ? Any help? #include <iostream> int main (int argc, char * const argv[]) { // insert code here... int *x = new int[20]; x[0] = 10; ...

Set desktop picture

Is it possible to set background(desktop)picture from code? if yes how? ...

Can my iPad app access a list of the eBooks on the device?

I have a little experience with iPhone development but am new to iPad. I realize that apps are sandboxed and cannot access each other's data, but is there any way that the iPad app can access information about the eBooks on the iPad--for instance, the titles and authors of these books? ...

iPhone Google Analytics - identifying unique users

Hi there, I'm in the process of adding Google Analytics to my iPhone app, but I'm not at all experienced with Analytics. One thing I would like it to tell me is how many unique people are using the app. Suppose one user were to use her iPhone app on ten different wireless networks, would Google Analytics iOS SDK interpret this as ten d...

Instruments cannot be opened because of a problem in xcode

Hai While i clicking the "Run with Performance tool" it showing the below error "Instruments cannot be opened because of a problem" Please suggest me. Thanks Basanth ...