xcode

Replicate UISegmentedControl with UIButtons - iPhone

Hi guys, I didnt like the style of UISegmentedControl, hence i tried to change the way it looked, but I couldnt attach images to its buttons. I just didnt change at all. Now i'm looking at how to replicate that function with 4 UIButtons. I've setup 4 UIButtons in interface builder, added different tag numbers to them. What i cannot a...

importing projects in Xcode

I have an iPhone app, that contains a lot of "sub-apps". I basically develop each component separately as it's own project, and when I feel that it is ready, I manually drag all the files into Xcode. I know you can import Xcode projects into other projects, but I'm not really sure what this does. Does any have a better way to do this? ...

iPhone app doesn't build crash reports

My app formerly created useful crash logs. I synced my iPhone in the past and found crash logs in library/logs/CrashReporter About a month ago, my app stopped creating crash reports. When I first discovered this problem, I assumed it was due to memory corruption (a possibility in my app). I just created a new project and added a cras...

*iPhone* Unable to symbolicate in Object Allocations instrument

Hi there, i run a C++ app from objective-c I can successfully symbolicate my function names using Shark profiler but not with the Object Allocations instrument. In the detailed pane, i only see my C++ app name with the hexadecimal value for my C++ functions. I tried to do a "File/Re-Symbolicate Document", selecting my app folder contain...

How do I get rid of these warnings?

This is really several questions, but anyway... I'm working with a big project in XCode, relatively recently ported from MetroWorks (Yes, really) and there's a bunch of warnings that I want to get rid of. Every so often an IMPORTANT warning comes up, but I never look at them because there's too many garbage ones. So, if I can either fig...

Xcode 3.2 iPhone dev - Can't download development application data anymore?

In the organizer of Xcode 3.1.x I used to be able to download the application data for an app in development (not installed thru itunes). In Xcode 3.2 I don't see that option anywhere. Am I missing something? **Edit - One user provided an answer saying "look for the disclosure triangle". The disclosure triangles are missing and there ...

How to theme the entire Xcode IDE to light-on-dark

I have been using VIM/xterms with a dark background for coding. On OSX, MacVim and Terminal can both be themed to be light-on-dark. Xcode 3.2 allow the same customization for its editor using color schemes, but is there a way to do the same to its other UI panels ("Groups and Files" left pane and the list view top pane for example)? If n...

Changing style of pickerview.

How can I change the style of pickerview. I want to change its white background to green color and its black frame to red color. Anyone please help. I am a beginner. ...

How to write UIWebView with default request address is like (192.168.1.1)..

i have implemented UIWebView in my application but i default address is "192.168.1.1" but it is not open default it and i have tried with "http://www.google.com" it is working fine. [iview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"192.168.1.1"]]]; it doesn't working and it is working with [iview loadRequest:[NS...

How to update Xcode to install "UNIX Development Support" ?

I installed Xcode a long time ago. Apparently I didn't check back then the "UNIX Developemtn Support" checkbox. Now I want to have them bu when I click on the installation this is what appears: The UNIX Development Support check box is disabled Q. ¿How can I install the UNIX Development Support? Is there a way to run some script ...

Accessing a file from a Unit Test Bundle with Xcode 3.2

How do you access a file to use in unit tests? (Every time I have asked with more specific information I cannot get ANYONE to answer.) ...

iPhone Tab Bar application crash

I have an application that uses a tab bar and whenever it launches it crashes and gives me the following error and stack trace: 2010-04-22 16:15:03.390 iCrushCans[59858:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIWindow 0x3e051a0> setValue:forUndefinedKey:]: this class is not key value coding...

How to automate creation of new XCode targets from Applescript/Automator/Shell Script

I am currently working on a way to automate the process of adding new targets to my XCode projects. One target has to be added to multiple XCode projects and each target in the different project needs the same source files to be added, same groups to store the source files in the XCode project, and the same build settings. Doing this man...

Best practices for packaging resources (jpg's, sound, video) in an iPhone app?

I'm a newb iPhone developer writing an app that has several large JPGs and sound files. Everything works ok if I drag these non-code resources into my project. But I am wondering if this is the right way to package my app. In Windows development, I would create a "resource DLL" that keeps the .exe size small. What is the equivalent for...

Xcode Obj-C: Make new NSArray from one key each out of an Array of Dictionaries

This actually could be a multipart question. But here's the first part ... I have an array (actually in a plist) of dictionaries. Each dictionary has 3 keys in it: (title), (points), and (description). I am trying to make a NEW array with the values of the key "title" from each dictionary in that first array. Let me explain WHY I a...

iPhone: Types of persistent store

Hi, I would like to know which type of persistent store would be most appropriate in what situations, like how can I decide where to use core data, property list or archives for my iPhone application. Thanks ...

iPhone UIScrollView ContentSize has extra height when rotating/converting to landscape

Hello all, Doing some iPhone dev, have the app working quite well. However, I have a UIScrollView with autoresizing content and contentSize which works quite well, except when I rotate to the landscape view it always has an extra 100 or so pixels on the scroll height. I don' want users to be able to scroll so far past the content. Has ...

How do I send the mutable string to the NSTextField properly?

So I have all this code that I have debugged and it seems to be fine. I made a mutable string and for some reason I can not get it to be displayed on my label. the debugger says "2010-04-22 22:50:26.126 Fibonacci[24836:10b] * -[NSTextField setString:]: unrecognized selector sent to instance 0x130150" What is wrong with this? When I ju...

Difficulty deploying database with my iphone app.

I have an application that needs a database. The application is running fine in the simulator. But when i try to deploy it onto the iphone then it gives me the error that 'no such table animal'. Where is the problem? I am providing the code for better understanding (void)viewDidLoad { NSArray *paths = NSSearchPathForDirectoriesInDomains...

How to call a function from another class file

I am very familiar with writing VB based applications but am new to Xcode (and Objective C). I have gone through numerous tutorials on the web and understand the basics and how to interact with Interface Builder etc. However, I am really struggling with some basic concepts of the C language and would be grateful for any help you can offe...