xcode

Building and Using a DYLIB in Xcode

I'm trying to build a .dylib in Xcode. Currently the .dylib builds, but when I drag the .dylib into another project and try to #import one of the headers (Seeker.h) in the .dylib, I get this error: *: No such file or directory Seeker.h: No such file or directory The project is available as an Xcode project here. I can confirm...

When changing a UIButton's label, how do I prevent it from being shortened using '...'?

I'm working on an iPhone app, and one of the buttons is supposed to have a text label on it that changes. When I set the text label programatically as seen below, it's shortened using '...' instead of displaying the full label -- even though there is plenty of room for it on the button. self.accuracyButton.titleLabel.text=@"User define...

#if __IPHONE_4_0 on iPad?

Will this check work on the iPad as well as iPhone? Or is there something else I need to check for iPad OS version. Or is this not the way to check what os the application is being built for. #if __IPHONE_4_0 // Do stuff #elif __IPHONE_3_0 // Do 3.0 stuff #endif ...

Xcode: Build app on two connected phones

I want to install an app on two phones without plugging and unplugging the devices. Can this be done? As far as I can tell, the Xcode interface does not have that functionality... ...

iPhone dev - how to create a hyperlink?

How do you create a hyperlink? (iPhone dev) ...

Can't add a file to an XCode Project

Well there are two problems both have to do with the restrictive file select dialog. In one case it is a library sitting in a ".lib" directory and the other is some C source code inside an application bundle. Any ideas? Unfortunately the files in the application bundle are generated by another compiler (which compiles to C files) to i ...

Failed build b/c symbols not found zlib (solved)

I have a problem adding libs for zip extraction to my iPhone app. I decided to use SSZipArchive. It uses minizip. After following the instructions: 1 Add SSZipArchive.h, SSZipArchive.m, and minizip 2 Add the libz library to your target I still get errors: Symbol(s) not found. I tried adding -lz to Other Linker Flags an...

How do I adjust a UIButton relative to its current position?

I'm trying to work with a scroll view controller that needs to adjust it's contents based on user interaction -- specifically, by adding a 'done' button while the user is working with a UITextView, then removing it when they are done. The problem is making room for the button in question. What I'd like to do is... control.layer.positi...

How do I use this inBetweenDate message?

I am a newbie with iphone programming. I need some help with this code. I found what I needed here- http://stackoverflow.com/questions/1072848/how-to-check-if-an-nsdate-occurs-between-two-other-nsdates/ But I have no idea how to use this block of code. + (BOOL)date:(NSDate*)date isBetweenDate:(NSDate*)beginDate andDate:(NSDate*)endD...

image array in xcode

hello, i am new to iphone programming, i want to put multiple images for slideview..and for that i want to declare it by array and use it in same viewcontroller class..so anybody can tell me how to declare the array of images in a class and display ...

Landscape images work, portrait images don't

Hello Developers, I 'm new to programming with objective C. I try to read the argb data from an image and then display this image. It works for landscape images, but doesn't for portrait images. Here is the code I use. //Read the data CGImageRef inImage = dispimage.CGImage; CGColorSpaceRef colorspace = CGImageGetColorSpace(inImage); CGC...

XCode Static Analyzer: Analyzer skipped this file due to parse errors

I have been able to run the Static Analyzer on my code fine for months. All of a sudden now I am getting the error: <command line>:0:0 Analyzer skipped this file due to parse errors Not sure how to diagnose. The first tile it skips is: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library...

Difference between add to target & add to project in XCode

I am trying to inegerate Google Toolbox for mac for unit testing purposes on this page http://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting is says add blahblah.m file to your target & add blahblah.m file to your project. What is the difference, how should I add to target... ...

Error running google tool kit for mac unit test

I am trying to install google toolkit for mac, everything is setup as advised here : http://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting but when I try to compile I get this error Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle ...

Can't use button after using the Shake method.

Hi, I have a trouble with my app. I'm using the shake function, so that, when I shake the device, I change from one view to another.What happens is that when I change the view, I can't resign the FirstResponder from the shake function and I can't use the button that appears in the following view. I can't do anything Anybody can help me ...

Can I run XCode for iOS development in plain leopard?

I am aware that I cannot actually distribute an app that is not compile with the latest version, but I cannot upgrade my Mac now for some driver compatibility issue. So, for the time being, is there any way to do actaully code and test an iphone app in plain old leopard? I cannot find what I need to download in the dev center. Thank yo...

How to load another xib when pressing a button

I have a project where where i have one ViewController and two xib files. I have two buttons on a view which is shown in the viewcontroller. Both buttons are active and returning a NSLog so i know they are working. Basically I would like to load a xib when the button is pressed. I have a view setup in each xib. Thanks for your help in ...

using variables for unit testing only

I am writing unit tests for an app for iPhone using objective c. I want to use some variable only when compiling for test case for example #ifdef UNIT_TESTING @synthesize requestFinished, networkAvailable;//etc #endif now where should I define UNIT_TESTING that when I compile for unit tests it should enter this code block.... otherwi...

Error compiling for unit test using google toolbox for mac

Hi my application runs fine but when I try to run the unit tests I am getting this error... 2010-10-19 00:27:49.919 AssignmentUnitTest[27988:903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter' Irony is I have searched the whole project & I ...

Text search though all .xib files in Xcode?

This seems like such a basic task, but I'm stumped. How, in Xcode, do you execute a textual search though (the XML contents of) all the .xib files in a project? For example, all of our .xib files contain this string on the second line: com.apple.InterfaceBuilder3.CocoaTouch.XIB. So I'd think that searching all project files for that st...