xcode

Iphone dev Navigation controller memory leak when parsing json

Good day folks. Being a .net guy I;m really strugling with this leaking memory issue, please help! On navigation controller I'm parsing some JSON with touch-Json (tried SBJSON to same result) data from Json is displayed to a tableview. So far it's all fine and dandy. On table row click I'm pushing other xib on navigation controllers sta...

Same source code, compilation on 2 different MAC => not the same beahviour

Hi All, We have 2 MAC for iPhone development with the same XCode version. When I build the application on MAC 1 and run it on iPhone 3GS, it does not work properly: many crashes. When I build the application on MAC 2 and run it on the same iPhone, it works. We have checked target settings, Xcode preferences and there is no difference...

iPhone dev -> localized nib not working

Hi you geniuses ! I am working on an iPhone project which I translated in two languages : French and Spanish. The issue I have is just with one file : the RootViewController nib. I localized the MainWindow.nib, and it works (when I change the language, the text in the app changes according to what I specified). I also have several NSL...

Problem when #import C++ Header File in iPhone/iPad Project

Hello ! I have a C++ class I would like to use in an iPhone/iPad project. I created this file in different ways (like with "New File" => C++) and the error is always the same. When I compile the project without having any #import (of the .h C++ class), it's ok. But as soon as I #import the header file in one of my header objective-c f...

How to "Skin" an application on Mac?

I want to skin an application I wrote, but do not know where to start. Is there anything like DirectShow (stardock.com), DotNetBar etc..for Mac that I can do this? (I do know these examples are for .NET, just using a point of reference. If there is not, is there some source of information that will lead me in the right direction? A...

NSURLConnection and NSData leaking memory

Hello All, So I was wondering if this was a common problem to be leaking memory using NSData to store a connection reponse data. For example, I have this line to initialize my data object davData = [[NSMutableData data] retain]; And then when the connection errors or finishes loading, I release it. From my understanding, that shoul...

UIScrollView inside a UITableView won't show/hide correctly (Xcode iPhone)

I've used Interface Builder to drop a UIScrollView into the top of a UITableView. (To do some horizontal scrolling.) In code, I now wish to selectively show/hide that UIScrollView. I've connected it in IB, and then execute various combinations of code... but the area never disappears. self.scrView.hidden = TRUE; or: CGRect aFrame ...

iPad autorotation displays black frames

I am developing an iPad application and in the root view controller, while it is autorotating, i see black rects appear during the animation and disappear once the rotate animation is complete. I do not have any views which have black backgrounds. I see the same thing even when i remove all subviews of the root view controller's view. Th...

In Xcode, can you specify another default folder for classes, not Classes/ ?

If you create new files, and don't have a Classes/ subdirectory in the project root directory, Xcode dumps them in the project root. I'd like to specify where they go. FWIW, I know you can link individual files a project to anywhere, with lots of options. Also, what I'm talking about here is the actual file system, not the groups, etc. ...

Application failed codesign verification. What do I do?

XCode gives me this warning when I build the app for release. Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011) Do I need to delete all entries from my keychain and redo getting a certificate, provisioning profile, etc? I can build and debug on the...

iPhone simulator freezing entire OS

Hi guys, I have a super weird problem. Every time I run a specific bit of code in the iPhone simulator, my entire Mac freezes: I can't close the simulator, or any other app, and can't open any apps. Worst of all, I can't shut down. I have to force a shut down manually by holding the power button. I'm running on a 15" MacBook Pro, and t...

Change view with navigation controller

I have a viewBased project and have two view "A" and "B" and put a button on view A and want to show view B when user push button.how can i show view B with navigation controler(means show with push) I use below code but don't know what should i do before this code(means how to setup UINavigation controler,...) [self.navigationControlle...

Xcode linker and blocks: Undefined symbol "___block_global_1"

I am trying to build an application in Xcode 3.2.4 and am getting the following linker error: Undefined symbols: "___block_global_1", referenced from: ___block_holder_tmp_1.120 in foobarbaz.o ld: symbol(s) not found collect2: ld returned 1 exit status I'm at a loss to explain what I've done in my source file that might be caus...

Xcode 3.2.4 code sense does not work with UIPopoverController

Code sense is not giving me any options for UIPopoverController in my universal app. No initWithContentViewController for init options, no popoverContentSize for the instance, etc... Setting project format to Xcode 3.2-compatible and rebuilding the the Code Sense index did not help. What am I missing? ...

Reduce Choppy Scrolling in Objective-C

I know this is kind of a vague question, but does anyone know how to get rid of choppy scrolling on a tableview? Thanks ...

XCode - nested functions are disabled !!!

I used to be able to do forEach loops in XCode, but after installing sdk 4 i get errors error: nested functions are disabled, use -fnested-functions to re-enable How can i enable nested functions It says "use -fnested-", but use is where? how? for (MyObject *obj : array) { } ...

set class for UINavigationController

How to set class(first class) for UINavigationController from code ? ...

how to display an image in the right corner side of a navigationbar?

hello all.I want to display an image in navigation bar at the right corner side.Some one please tell me how can i do this.I tried by taking uiimageview at the right corner of navigation bar but i didnt get it.Thanks in advance ...

iPhone Tap Counter

I'm trying to get a UI Button to interact with a UI Label through Xcode and Interface Builder. What should I change in this code to do so? (I have everything linked up in Interface Builder already. The app just crashes when I press the button.) @synthesize window; @synthesize label; @synthesize anotherLabel; @synthesize myButton; ...

Change View With animation

For change view with animation iphone sdk support "Flip Left" and "Flip Right" How can i implement "Flip up" and "Flip Down" ? ...