objective-c

Making an in-app settings page (iPhone)

Hi, I am making an app which needs a settings page. Which will be a different class, so how do I pass data from one class to the other? For example: There is a UISwitch on the settings page, and I need to see what option the user selected for another class. Thanks. ...

How can I resize a UITableView header?

self.headerView.frame = CGRectMake(0, 0, 320, 167); //this is a UIView doesnt seem to do anything. everything is hooked up in IB. ...

Identifying Zoom in/out level in MapKitView

Hi All, Thanks in advance. Can you please let me know if there are any delegate methods that help us to identify the current zoom level when the user zooms in/out of a MapKitView? -Sekhar. ...

Objective C: Inline function - symbol not found

Hi! I have a library which uses an inline C function, and is compiling just fine. When another library references that library, it still compiles fine. But if an actual app references the library, it fails to compile, saying that the _functionNameHere (yes, function name beginning with underline) - symbol is not found. If I remove the i...

Calling a Method from a different Class - iPhone SDK

Hi all, I am trying to call the method "foo" which is in the class called "fooClass". In another class i have my appDelegate and I want to execute the method foo in applicationdidfinishlaunching. I have imported the class "fooClass" into the appDelegate header file and I did initiate it in applicationdidfinishlaunching with this: "fooC...

Objective C - How can i define a STATIC array of numbers accessible to all methods in my class???

How can i define a STATIC array of numbers accessible to all methods in my class??? ...

Getting a signal 10 error when initializing NSMutableArray

Hi Everyone, I'm a beginner at Objective-C and am trying to initialize an NSMutableArray with objects of various types. Here is my code: NSMutableArray *mutArr = [NSMutableArray arrayWithCapacity:1]; [mutArr addObject:path]; [mutArr addObject:fullPath]; [mutArr addObject:pathArray]; [mutArr addObject:pI]; [mutArr addObject:proces...

Problems setting background for grouped UITableView

I want to have a background image behind my UITableView. This works fine, but for each grouped UITableView it seems to be using my background image. I just want it to use the background image once: Note: This is all inside of a UITableViewController class self.view.backgroundColor = [[[UIColor alloc] initWithPatternImage:[UIImage image...

What to learn after learning Objective-c for iphone programming

Hi im im learning objective-c so i can program for the iphone and ipad. What do i learn next? cocoa? and then what else if any of you are developers please give me a list of what i need to learn Thanks :) ...

Retractable UITabBarController / UINavigationController

I'm looking to implement something similar to the Mashable app article view. When clicked through to read an article and begin to scroll down the Navigation controller slides up off screen and the Tab bar controller slides down. I'm open to other suggestions but the goal here is to not see the tab bar controller while in the article vi...

NSDictionary functionality question

Hello All, So I am trying to save arrays into an NSDictionary on the fly. Let me show you the code and explain what is going on. for (int x= 0; x <[appDelegate.people count]; x++) { Person *aPerson = [[Person alloc] init]; aPerson = [appDelegate.people objectAtIndex:x]; if ([appDelegate.groupedBusiness objectForKey:aPerson...

iPhone SDK Simple Question

Is it possible to add a UIActivityIndicatorView to the left side of a UITableViewCell? We're already using the right side of a UITableViewCell for a disclosure indicator. Thanks. ...

Read data from Excel file in Objective-C (iPhone)

I've searched in google but I don't seem to find a way to read Excel files from Objective-C. The only answers I find are to first convert to CSV and then read as a text file, but I don't want that. I know there must be a way, while I used many times the PHP modules to read/write Excel files, so I'm supposing there's also a C library to ...

Set the image property of an UIImageView - Does not Work

Below is the relevant code .h IBOutlet UIImageView *productImageView; @property(nonatomic, retain) IBOutlet UIImageView *productImageView; .m @synthesize productImageView in the initWithNibName custom initialization: NSURL *url = [NSURL URLWithString: [NSString stringWithFormat:@"http://www.myurl.net/test.jpg"]]; UIImage *image =...

problem when I release my object

Hi I have a class whit a nsmutable array instance variable, In my code, I alloc and init my object, and later in my program I release my object, but it cause a "bad access" when I try to release it, why? If i retain my object before release it works, but I don't have other object who point on this object, so I don't need a retain. Alex ...

saving an array

how is it possible to save an array in multiple locations ie. different view controllers in order to save the data in the arrays and allow it to be used afterwards by a table? edit objective c i have an ibaction with code [[NSMutableArray alloc] init]; [favoritesArray addObject: @"one"]; //and in the fav table view this code// favori...

Can I include a framework in another framework?

I'm writing a framework (called Lighthouse.framework) that, in turn, uses code from another framework (RegexKit.framework, to be precise). I have copied RegexKit.framework into my own framework, so that it has a structure like the following: Lighthouse.framework/ Versions/ A/ Frameworks/ RegexKit.framework Ligh...

Objective-C: my class with static methods "does not implement methodSignatureForSelector: -- trouble ahead"

Hi! I have a utility class which has only static methods, so it is not inheriting from NSObject (No need right?) There are no warnings at all when compiling. The problem comes when running on the iPhone simulator. It crashes with warning "does not implement methodSignatureForSelector: -- trouble ahead" Well, I like that "trouble ahead...

SenTestCase in Xcode 3.2 and XCBuildLogCommandInvocationSection Errors

I have a set of SenTestCase that are causing issues in XCode 3.2.4. When attempting to compile (with a very basic STFail(@"");) the following compiler errors occur: An internal error occurred when handling command output: - [XCBuildLogCommandInvocationSectionRecorder endMarker]: unrecognized selector sent to instance An inte...

MKPlaceMark on MKMapKit

Hi, Can I customize the pin MKPlaceMark? Thanks for Help ...