objective-c

Import comma-delimited text to xcode plist

I have a very long (well, 4000+ items) in a csv file which I would like to put into a plist in xcode for my program to use. Does anyone have any idea how to do this, just in xcode & not using parsing code? Many thanks. ...

Next screen on click of UITableCellView?

I have created UITableCellView in flipsideViewController of my Utility template. How to show next screen onclick of UITableCellView? ...

2 Navigations bar on FlipsideViewController of Utility Template.

I have created a TableView in FlipsideViewController. I can see the table but the problem is that on FlipsideViewController i have to navaigations bars. on top is a blue bar without any button and under it a black bar with done button on it. I want to remove that blue one, created automatically when i added TableView to the nib file. ...

CLLoacationManager class returning cached data

Hi frnz , How to remove cached data which is sent by CLLocationManager and how to increase its accuracy.Every time i launch the app it gives me cached data and updates it after some time.I have seen several threads but i am not able to get a concrete sol .can anybody provide me the code? I am using the following method to get position d...

how to add string date coming from xml to nsarray

hi guys, i have some string date which is coming from xml RSS feed. what I want to do is to add these string into nsarray. the code is NSString *headline=[[blogEntries objectAtIndex: blogEntryIndex1] objectForKey: @"title"]; now i want to store this string into nsarray. as i am implementing searchbar in uitableview can anybody hel...

How to Activate Breakpoints in a Dependent Project (a framework) in XCode

I have an Xcode project that has an other project as a dependent project. My main Xcode project links agains a framework in that dependent project. Now I want to track down something in my framework. How can I set break points in that dependent project so that when I'm starting my main Xcode project they stop in the dependent project? ...

UACellBackgroundView Memory Leak

Is anyone else out there using the UACellBackgroundView code to do cell gradients. It works like a champ and I want to continue using it, but it is leaking like a sieve. I think instruments says that CGPathCreateMutable() is creating a mutable copy but not releasing. This is a little deeper than my memory management skills. Here is t...

C-code (class/framework/library) in Objective-C

How can I reference a class/framework/library like libusb in an Objective-C class? Currently I have tried to initiate an enum/struct-function from the library inside my @interface in my .h-file. But that doesn't work, apparently. :/ I have it "installed" (it's in /usr/local), and tried adding both the files and as framework. Doesn't hel...

Memory Leak in Dismissing Modal View Controller

In controller named controller1, I am pushing a modal view controller AddConversationViewController *addController = [[AddConversationViewController alloc] initWithNibName:@"AddConversationViewController" bundle:nil]; //addController.delegate = self; UINavigationController *navigationController = [[UINavigationController al...

CoreData customize mapping model

Hi, I have a problem mapping the following situation from v1 to v2 of a core data model. In v1 of the model I had an entity named book with an attribute author. There I saved the first and last name of the author and even first and last names of several authors. Very poor design I know, but that's how it was. In v2 of the model I made...

Program not working when running from Instruments

I had a bunch of leaks reported by instruments when I ran my app in the simulator using instruments. The leaks reported didn't make much sense to me, so I wanted to try on the device. But when I started from instruments it was either unresponsive (it didn't react to touches, I could only press home to quit) or didn't even start just a bl...

SHA256 key generator in iphone

Hi friends, I want to generate a key using SHA256 with N number of iterations. They input should be my "password" + "random number" I have seen the Crypto sample provided by apple but it seems it doesn't provide my requirement(or might be possible I didnt get it properly). I have gone through below link as well but is doesnt have met...

associating TapDetectingView UIView subclass with UIView object created in IB?

I know this must seem like an extremely basic question for most iphone devs, but so far have been putting all my code logic into a single view controller, and want to start making better use of delegates, breaking up my code into logical components. I have a simple ViewController based application and want to add tap detection. There is...

Dynamic call from my iphone application

Hi everybody I am trying to make a call when a button is clicked in my iphone app, But it gives the error Program received signal: “EXC_BAD_ACCESS”. Below is the code i used. callToURLString = [NSString stringWithFormat:@"tel:%@",[PhoneNumber_ss objectAtIndex:indexrow]]; NSLOG(callToURLString); [[UIApplication sha...

Corelocation Problem

I am developing an application which computes the distance travelled by the user.I am using CLLocationManager class to do so.But i am getting the cached data initially and also the distance variable is increasing at a sudden rate.please help me out ...i have used the follwoing code.... Note:distance is a static var. here - (void)vie...

Objective C Pointers

Hello, I am really confused by pointers... I guess I am used to other languages that do not have them. I have the following snippet of code: - (void)setAccountNumber:(NSString *)accountNumber Pin:(NSString *)pin { myAccessNumber.text = accountNumber; myPin.text = pin; } This function is being called by another view before this vie...

iPhone: localization / internationalization default strings file

I currently have two supported languages: English and Spanish. Thus I have two main.strings files for each language. One in en.lproj and one in es.lproj. What I want now is that the English main.strings is the default file if a user with a locale other than en or es arrives at the application, e.g. de or fr. I know I can set it manuall...

How do I dynamically allocate a 2D array of structs?

The dimensions are unknown at compile time, so I'm trying to allocate a 2D array of structs dynamically. The code compiles but I get a bad access when accessing an element. // The struct typedef struct { NSInteger numActors; Actor *a1; Actor *a2; Actor *a3; Actor *a4; Actor *a5; } GridNode; // In interface GridN...

@property for delegate?

A quick question if I may, can anyone explain what I am missing below, I was assuming the 3rd one with the would work? @interface ... // These work @property(assign) SomeClass *someDelegate; @property(assign) id someDelegate; // This gives warning @property(assign) id <SomeClassDelegate> someDelegate; . @implementation ... @synt...

Memory management with delegates?

Memory management with delegates, it is my understanding that I don't retain delegates, I am a little unsure about what to do with the delegate if the view gets unloaded (via viewDidUnload) and later recreated (via viewDidLoad)? @property(assign) SomeClass *someDelegate; . - (void)viewDidLoad { [super viewDidLoad]; someDelega...