xcode

TabBar like controller

Hy, I'm creating a UITabBar like controller. It has a bottom image with buttons, and a UIViewController to manage views. I'm using URLs to navigate between them. The problem is, when I navigate into another view the whole view flows away, and i can't find a way to have the bottom image stay while just the upper viewcontroller flows. Wha...

more detailed information about the exception in xcode

So I am trying to troubleshoot why adding an item to my dictionary causes an exception. It turns out that I used a NSDictionary instead of NSMutableDictionary. However the exception I saw... setobject format exception was no help at all. Where do you look in xCode to get detailed exception information? Or is this all that is given? ...

Downloading multiple items in package

I need to allows users to download multiple images in a single download. This download will include an sql file and images. Once the download completes, the sql will execute, inserting text into an sqlite database. This text will include references to the download images. The text and images are rendered in a UIWebView. What is the ...

Vibrate when UialertviewAppears iphone sdk?

Currently i am playing a simple beep.mp3 file when alertview appears i am using avaudioplayer and set an indefinite loop to play beep until alert dismisses.Now i want to vibrate continuously when alertview appears with beep until user dismisses alert.how do i do this? ...

How do you export your finished application from Xcode?

I feel silly for having to ask this. I've got an application to a point where I want to send someone a beta to test on their machine, but I don't know how to get Xcode to produce a .app file for me to send to them. Help? ...

Bindings MInefield in Xcode and Interface Builder.

All right, after having worked through Cocoa Dev Central's "Build a Core Data Application" tutorial I started experimenting with building my own application, using the code and .nib file from the tutorial as a reference to make sure that things are put together properly. Overall I've been managing pretty well with it, however I seem to ...

iPhone Interface Builder - Moved resources to sub-directory, now IB can't see them!

I had a bunch of images in my Xcode project. They were originally added without choosing "Create Folder References for any added folders". So I removed the references and re-added as per these instructions http://stackoverflow.com/questions/1401338/include-a-resource-directory-hierarchy-into-app-bundle Unfortunately, Interface Builder w...

Shared Folders and XCode

Is there a way to get XCode to play nice with shared folders and allow multiple people to work on an iPhone app at the same time? Or are we going to need to switch to something more like SubEthaEdit or some other realtime-collaboration tool? ...

X-Code Debugger Hover Over Variable, what does '\ <some stuff> ' mean?

Easy question, that I can't seem to find a documentation-based answer for. In X-Code (v3.1) debugger if I hover over a struct variable such as sockaddr_in I see: Notice the difference between sin_port and sin_family/sin_len. What is the meaning of '\002' in the case of sin_family. Why is it not displayed as just "2"? ...

Avoid the iphone go into sleep mode.

Hi I have made an iphone fitness application. The issue i am unable to resolve here is that, while the application is running, the iphone goes in the sleep mode, and hence the accelerometer and sound turns off. Which i dont want to happen. Is there anyway i can avoid this from happening? If not that, atleast i could increase the time...

Designing the iPhone interface in a nib or in code?

I've been pondering over this question for a long time already. On the one hand, Interface Builder offers a really easy way to design the interface and wire the elements up with objects in code. On the other hand, in larger projects, Interface Builder becomes a hassle to maintain. Any suggestions would be greatly appreciated. ...

How to understand about Xcode error message log

objc[1372]: FREED(id): message respondsToSelector: sent to freed object=0x43be3f0 that error when i try to click on UITableViewCell and Play some move and then press back to select another index of UITableViewCell and play some movie, i repeat this step very fast and it will get some application terminate but i dont understand about ...

Cannot allocate new instance of UIView subclass after deallocating.

I have an instance variable *TangramLevel(:UIView) currentLevel; in my viewController class, and I have an instance allocated at start (it's retainCount 1). I attached it to the view [self.view addSubview:currentLevel]; (retainCount 2). When the level finishes, it notifies the controller, so controller removes it from the view [currentL...

xcode conditional compilation

Hi all, I have following issue: I have an iPhone application which can be compiled using various color styles. So the goal is to have several build configurations with defined style, for instance COLOR_STYLE_BLACK. Style definition files should be placed under some subfolder in source tree, like, for example Classes/styles/black. Then, ...

Test build of Cocoa application not compatible with tester's version of OS X.

I've been building a basic Cocoa application with Core Data and Interface Builder, and no extra coding, frameworks, or header files. I sent it to someone to test on their machine (a last-gen G5 iMac), and they got a message saying that their machine couldn't run it. I discovered the switch to compile for PPC, so I built a PPC version o...

Automate the XCode build settings

I've developed a static library that I'd like to share between XCode projects. I did some reading to learn exactly how to include this library as a binary dependency so that it runs on both the device and the simulator and that lead to a couple of manual steps which I'd now like to automate. Overall I'd like to be able to release new ver...

Creating an XCode project from the command line?

I get a new project coming across my desk on an hourly basis. They all adhere to a very strict format, so it isn't terribly difficult to create a new project from scratch every time, but it is something that I should be able to do from a script that just constructs and builds the entire project. It would save me a helluva lot of time t...

Can you create custom build rules for XCode based on file type?

I have a project with a bunch of .png files that I want to convert to PVRTC compressed textures. Right now, I'm using a custom XCode run script phase that looks like this: TEXTURE_TOOL=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool $TEXTURE_TOOL -e PVRTC --bits-per-pixel-2 -o "$SRCROOT/images/select_menu_bgs1.pvr...

Xcode 3.2 Debug: Seeing whats in a string?

Does anyone know the display formatter that I would need to add to the summary field to display the contents of the NSString objects contained in the NSArray shown? I have already added the formatter below for NSArray so that it displays its contents... "{(int)[$VAR count]} objects {(NSString *)[(NSArray *)$VAR description]}:s" I wo...

Detect in Xcode iPhone project whether I'm building for simulator or device?

Is there any way I can conditionally compile in my app based upon whether I'm building for the simulator or the device? (My app hooks to an external server: if I'm running on the device, I want to connect to localhost; if I'm running on the device, I want to go to my production server.) I'm looking for some #ifdef variable I can detect,...