xcode

How can I test my iphone app on actual device?

Possible Duplicate: How can I deploy an iPhone Application from Xcode to real iPhone device Possible Duplicate: How can I deploy an iPhone Application from Xcode to real iPhone device Is there any other way rather than pay $99 and get the keypair? 3.1.3 device, 3.2.2/3.2 XCode/sdk ...

Compiling Enet in iphone xcode project

Hello, I am trying to compile the Enet source code into my code framework for iPhone games. After modifying the header files I get it compiling and linking, but I absolutely must be compiling with the "Compile Source As" set to "Objective-C++" in my xcode project (because the framework code requires this). When I flip this switch in my...

Failed to launch simulated application: iPhone Simulator failed to find the process ID of com.iAndApp.BlockPop.

Hello, I'm having this annoyning problem giving this message in the console: Failed to launch simulated application: iPhone Simulator failed to find the process ID of com.iAndApp.BlockPop. When trying to Build and Run, the application builds fine. The simulator starts but doesn't start the application. However, it manages to do somethi...

Removing Objects From NSMutableArray

Hi, I have a NSMutableArray that contains all the calendars on my system (as CalCalendar objects): NSMutableArray *calendars = [[CalCalendarStore defaultCalendarStore] calendars]; I want to remove from calendars any CalCalendar objects whose title does not include the string @"work". I've tried this: for (CalCalendar *cal in calenda...

Copying files VS not copying files ?

Hey guys, Can someone explain to me what is the difference between ticking "copy items into destination..." and not ticking this option ? Thank you. Gotye. ...

Colors in Instruments when hunting down memory leaks

Hi I'm currently hunting down a memory leak in my app for iPhone. I'm using Instruments to track down the code that is causing the leak (becoming more and more a friend of Instruments!). Now Instruments show two lines: one in dark blue (row 146) and one in a lighter blue (150). From some trial and error I get that they are connected som...

NSArray containObjects method

Hi, I have a simple question regarding xcode coding but don't know why things are not performing as I think. I have an array of objects (custom objects). I just want to check if this one is within the array. I used the following code: NSArray *collection = [[NSArray alloc] initWithObjects:A, B, C, nil]; //A, B, C are custom "Item" ob...

Changing keyboard layout in UITextField causes memory leak

I have created UITextField in UITableViewCell in my app, and I receive strange memory leak with it. When I launch my application and tap this UITextField - there is no problem with it. I can type text in English, no leaks at this moment. But when I press globe button on a keyboard to switch to another language(for instance, Russian), I...

using core data with web services

Hi. i am a noob in xcode. I am developing an iphone app where i need to send and receive data from a web service. And i need to store them temporarily in my app. i dont want to use sqlite. so i was wondering if i should use core data for this purpose. I read some articles but i still dont have a clear picture of how to do it, coz i have ...

localize many images in Xcode at once?

I have this project that i need to add a translation to. I already know how to add localisation to single image files, but there are 200+ images with text on it in that project. Do i really have to click one file at a time, "get info", click "add localisation" enter the Language and click OK for every file? When i select multiple images ...

Why does XCode randomly connect to Facebook and download data?

My XCode connects to "static.ak.facebook.com.edgesuite.net" and downloads something off there. Does anyone know what might be causing that behaviour? ...

Should I use interface builder or not?

I'd like to know more about the pros and cons of using interface builder when developing iPhone/iPad apps. I've written a fairly complex and customized app that's on the app store right now, but all of the interfaces are hand coded as they are fairly complex. I've customised the navigation and tab bars with backgrounds, table view cells...

NSURLConnection and XCode "Build and Analyze"

I have been following the documentation for using NSURLConnection and am using delegates for managing the connection (overriding among other methods connection:didFailWithError: and connectionDidFinishLoading:). The memory allocated for the NSURLConnection object is released in those delegate methods. My problem is that running "Build/B...

XCode : Is there an easy way to automatically move/copy files on-disk to match the project heirarchy?

Pretty much exactly what the topic says : I've got a project that's grown to several hundred files and the on-disk directory structure is rather ugly. Is there a way to have it automatically shuffle files around and create a directory structure based on my internal groups rather without breaking everything? ...

How to preload or lazyload images in a UITableView on iPhone?

I'm having a problem when scrolling down and up a tableView on iPhone it gets kind of stuck while loading the images i need a method to preload the images so the scroll can be fluid or load the images 'till the scroll event stops... any help on this? ...

Multiple strings in openURL. iPhone SDK

Hello, I am making a twitter application for iPhone, I am trying to add a button which will open Safari, and take the user to their twitter homepage. I have a textfield called username, so the following code does not work, hopefully someone will be able to help me out. -(IBAction)viewAccount { [[UIApplication sharedApplication] ope...

Get Doxygen to show XCode compile errors if documentation is missing

I have been successful with this in the past but now I can't seem to find the setting that tells XCode or Doxygen (or both) to display compile errors if documentation is missing. I have looked at the Apple documentation that tells how to create docsets and that works fine but XCode does not throw compiling errors on missing comments in ...

Continous readings in pickerViews.

I can get a slider to give "continuous value changes". But how would I get a UIPickerView to do the same? Is there a way? Detecting my own moves and swipes on the picker wheels? But how? ...

What is the best way to thumb through photos on the iPad?

I and a user to be able to thumb though photos on their iPad, how would I go about doing this via x-code, objective-C or the UI Builder? ...

Displaying Map ONLY when the button is clicked in Xcode

Hi, I am developing an iPhone application using XCode and I am kinda stuck with the functionality described in the subject of this post. I want the map(using MapKit) to only load and display after I click a button. So, what code should I have under that my "(IBAction) showMap" function? Whatever I could find online talks about unhidin...