xcode

Switching nib files

I have a View Controller inside my MainWindow.xib file that loads the nib "Cover" when loaded. Cover (and the rest of my pages) is simply a nib file containing it's Owner, First Responder and a View. There is also an associated class declaration. In MainViewController.m I have: - (void)viewDidLoad { [[NSBundle mainBundle] loadNib...

if else in nsdictionary

hi, i have a dictionary of array: array3 = [[NSDictionary dictionaryWithContentsOfFile:docpath2] retain]; no problem here. now i have an NSString *temp which contains some numbers. i would like to check whether this number exist in the dictionary, not each array. if([array3 valueForKey:temp]) is this right? doesn't the i...

Using an NSObject to control onscreen elements

I'm using a UIViewController with some buttons, labels, etc which I need to change attributes of depending on the situation. I'm looking to create an NSObject to control these elements based on an int in the View Controller. When a button is pressed the NSObject will deallocate, the int will change and the NSObject will re-instantiat...

Codesign verification failed in Xcode for iphone app distribution

Hi, I am trying to prepare my app for distribution to the app store and am getting the following warning in Xcode which is causing an error in ApplicationLoader. I know this is a common problem from searching but I have yet to find a proper solution? I went thru Apple's steps for distribution on the iOS provisioning portal and still get...

Cocoa Touch - Drag onto button to trigger event

Hey all, just wondering what the best way to add this capability was. I want to be able to press the button normally by doing touchDownInside, but I also want to be able to slide my finger from one button to the next and have the next one trigger. How can I do that? Ex: (-) -> (-) ^Buttons^ ...

how are decomposed xib / nib files tied and linked together

Hello, When you decompose a nib file, xcode creates multiple nib files, but I can't see where the "children" nib files are tied or attached to the hierarchy. ...

UITableView Plist Not Returning valueForKey

I'm stuck in a rut over implementing a sectioned plist into a UITableView. My plist setup is as followed. I have a root array with dictionaries representing sections. These dictionaries have a single string 'sectionname' that dictates the section header as well as an array of dictionaries inside to represent the cells (the reason for th...

Expected expression before ')' token

Hello! I'm having problems with a program I'm trying to make in Objective-C. I have a method that I'm trying in my MainViewController.m that is as follows. - (void)updateLabels:(NSString *)text :(BOOL)isOn; { [self setNameLabel:(text *); if (isOn) [self setOnLabel:(ON *); else [self setOnLabel:(OFF *); } My goal should be obvi...

Creating a large scrolling view in Interface Builder

I want to create a large view that will contain about 10-20 fields (slides, datepicker, textfields), all aligned one under the other. I'm on Interface Builder and I've placed a UIScrollView and on top of that added some fields. But I can't add any more fields that are not visible in the current window. So, how do I go about to add more...

iPhone App runnung in the background terminates after 10 minutes

Hi, I am working on an app that needs to run in the background on iOS4. I want it to be a like regular Location-based app so the BackgroundMode is set to location. The application works well when it enters the background state but after 10 minutes, it stops responding anymore. Perhaps it gets suspended/terminated. What I want to do i...

How to create x-code project for iPhone Light version app?

What is the recommended way to create a Light version of iPhone App? I have an x-code project of my iPhone app which I want to charge money for it. In addition to that app, I would like to deploy additional "light" version of this app free of charge which of course will have some limitations. Best way I can think of is adding a new 'Li...

NSDate* getting corrupted after a few render cycles. Why???

I have a general timer with a 1.5 second interval (the render cycle). I have a class with an NSDate* member/property (nonatomic, retain). I set this date by calling [callingClass setDate:expirationDate]; Now... a couple of render cycles this NSDate is valid. However, around the 3rd cycle the value of this variable gets corrupted, it s...

how to control auto scroll in scrollview with slider

Hi, I have an a vertical scroll-view in which i have 3-4 child scrollviews that slide horizontally, i want to control the vertical scroll-view (Parent) with a slider. Anyone have any idea for this? Thanks Inam ...

Xcode and SVN: can't rename my class -> Error: 155007 (Path is not a working copy directory)

I get the following error, if I try to rename my class: Error During Rename Error: 155007 (Path is not a working copy directory) Description: Path 'xxx/Classes/MyClass.h' is not a directory The renaming looks like this: MyClass.h -> MYClass.h Perhaps that is the problem? I've made an initial import to my SVN directory. This ...

Iphone, how do I fix this warning: '-respondsToSelector:' not found in protocol(s)

I'm getting this warning. '-respondsToSelector:' not found in protocol(s) It occurs on the line marked by "HERE" below. - (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section { id<SetsSectionController> sectionController = [sectionControllers objectAtIndex:section]; if ([sec...

Creating Dashbord Widgets (using XCode?) based on iPhone app

Some time ago I developed an app for a client. It's basically a simple calculator. Because they like it so much they asked me if it would be possible to create dashboard widget with the same functionality based on the iPhone app. I have never before developed a widget, I only know that they are mostly html + css based, so this raises a ...

Xcode: How do I wrap a long string around to the next line in the xcode editor

I've got a long string an sql statement, which I want to wrap onto the next line in the xcode editor, how do I wrap it round e.g. [db executeUpdate:@"insert into test (rid, one, two, amount, startdate, recurrance) values (nil, ?, ?, ?, ?, ?)", ...

How do use a Crash Report from Apple in xCode ?

Hi all, I have received a Crash Report from Apple (joy). I understand I can symbolize this report in order to see what is crashing in my code. I understand I need the dSYM and build binary to do this. My question is what are the exact steps I need to follow in xCode to do this ? I have the build folder I submitted via iTunes connect st...

Looking for guidance on detecting overlap of UIImageViews

The scenario is that I have a UIViewController containing multiple "InteractiveUIImageViews" (inherited from UIImageView) each containing their own UIImage. In InteractiveUIImageView I have iplemented methods for touchesBegan, touchesMoved and touchesEnded to handle their movement and behaviour on screen. Certain objects of this type wil...

XCode webview connection/server error handling

All, I am fairly new to XCode and am trying to get a handle on how to best deal with connection issues when trying to use a WebView. I know there are related questions on SO, but none seem to offer complete solutions. I have the following code, but it seems a little inefficient. Hopefully, someone can help me refactor it down to a po...