xcode

how to solve Instruments detected leaks whose responsible library is Apple's framework?

Hi all, I'm checking memory leaks in my apps using Instruments Leaks tool. After fixing all leaks whose responsible library is my app. I figure out that there still have a lot of leaks whose responsible libraries are iOS's framworks, based on what Instruments said? This is a screenshot of Intruments: I think these leaks may be caus...

Confused why one piece of code works and another doesn't in Objective C

Sorry about the title being extremely vague, I'm new to Objective C and struggling a little with it. Basically I have the following section of code: Graph *graph1 = [[Graph alloc] init]; [graph1 addNode:@"TEST"]; which is working to a degree. But I want to change it because the above code happens on a button press, and therefore I ass...

looping through an NSMutableDictionary

How do I loop through all objects in a NSMutableDictionary regardless of the keys? ...

Iphone: Error while Inserting Objects in Core Data

I have a Uitableview that loads data from a parsed xml feed. when the feed is first parsed all the text data is stored in an entity NewsItems in core data. after the table is loaded the images asociated with each object are fetched asynchronously and stored in a separate entity NewsImages, after the feeds/images are stored locally all da...

Active vibration

IS it possible to active vibration from code ? ...

How to comment Apple's block extension for Doxygen 1.7.2?

Doxygen annouced in their changelog for version 1.7.2 to support Apple's block extension. I wonder what the syntax is to generate the documentation. I could not find any hint - also not in the Doxygen configuration file (version 1.7.2). ...

How to write an xcode user script to surround the string the cursor is inside with NSLocalizedString(<string>, nil)

Hi all, I'm trying to figure out the best way to automatically add NSLocalizedString() around a string in xcode. Ideally I'd like a way that I could position the cursor within @"foo", press a key binding, and it'd be turned into NSLocalizedString(@"foo", nil). I've had a look at the documentation for user scripts and can't see an obvi...

Do I need to declare a private variable for an IBOutlet* property?

Let's say I have a simple view controller with one UITableView property: @interface MyViewController : UIViewController { UITableView *tv; // <-- DO I NEED THIS?? } @property (nonatomic, retain) IBOutlet UITableView *tv; @end Do I actually need to declare the UITableView *tv ? I've found that even if I don't declare it (and simpl...

How to find application folder on iPhone

Hello, I'm going to make an app which influence another app. The only thing I don't know is ... How to find the folder of the other app (Like "0A007EC0-F477-4A61-8F67-C075024F8463"). Does someone know it ? Thanks, Vinzgore ...

How to loop and array's index by day in xcode

I know the question sounds a little funny. I am trying to move down the list of array in my iPhone project. I have an array of 100 items: [0][1]...[99] I would like to select index[0] today, index[1] tomorrow... index[99] 100 days from now. And then on day 101, back to index [0]. Maybe I need to convert NSDate and get todays date in...

PhoneGap with Native Tabbar / Header UI -> Add & change

Hi there, I'm building a project in jQTouch & PhoneGap. After building the app in jQTouch, i'm at the point where I need to start adding in the fixed header & tabbar to navigate between sections. I used this post to get the components visible: http://phonegap.pbworks.com/iPhone%3A-UIControls-%28TabBar%29 Can i please get some help wi...

iPhone/iPad Project xCode

Can I compile the same iPhone source code for iPad? ...

how to disable horizontal scroll for a uiwebview in xcode?

hello all.I need to display a document in a uiwebview.I was succeeded in displaying it,but i need to move the webview only vertically.I don't want the horizontal scrolling how can i achieve this..Please help me ...

How Can I implement navigation Controller in iPad??

Hi, I want to implement the navigation controller in iPad, I know that it is not possible in xcode to do the navigation controller in iPad, there is a thing in which I can enter the view controller and with the help of this we can do the coding of navigation controller.. If you have any tutorial regarding this then plz send it to me.. ...

Local Notification

Does Local Notification run on simulator? Does local Notification run if i close(not minimize) the program? ...

Importing a MySQL schema to Xcode as a CoreData Data Model

I have an existing MySQL database, I would like to import the schema into Xcode and create a Core Data data model. Is there a way (tool, process) to import the CREATE statements so I don't have to build the models "by hand"? As an intermediary step I could convert to SQLite, I'm not worried about the relationships, foreign keys etc jus...

iPhone URL encoding Problem

Hello stackoverflow, Have a slight problem. Trying to post XML to a server. To do this, I have to encode the XML string in URL format. NSString *encodedString = [NSString stringWithFormat:@"xmlValue=%@",[post stringByAddingPercentEscapesUsingEncoding: NSASCIIStringEncoding]]; That's what I have and it works for all the characters E...

UISegmentedControl Glow effect

Hi Is it Possible to add a glow effect in a UISegmentedControl like how its done in UIbutton using setShowsTouchWhenHighlighted:YES? Thanks ...

Testing multiple iOS versions in Simulator

How can I test multiple iOS versions in the Simulator? I can only seem to test iOS 4.1. I would like to be able to test 3.x versions in the simulator as well. ...

[NSString stringWithFormat:] losing my string

Hey I'm having a problem with a string creation and comparison that seems to lose it's contents. Currently I have this: switch (creditPos) { case 0: [creditCart.faceImage setImage:[NSString stringWithFormat:@"%@credits_face1.png", _director.platformPrefix]]; break; case 1: [creditCart.faceImage setImage...