xcode

error: writable atomic property cannot pair a synthesized setter/getter with a user defined setter/getter

I recently tried to compile an older Xcode project (which used to compile just fine), and now I'm seeing a lot of errors of this form: error: writable atomic property 'someProperty' cannot pair a synthesized setter/getter with a user defined setter/getter The code pattern which causes these errors always looks like this: // Interf...

How to get data for UITableViewController in an iphone app

I have a main View that has a table which has it's own controller. How can I pass an array from the main controller to the table controller? (I use interface builder maybe i need to init the view programatically?) ...

Get Image Position in iphone application

Hi Dude, I like to get the position ie. xposition and yposition of an image in my code. How to extract the positions. Can some one guide me. Thanks in advance. ...

Where should I create global variables for targets

I have an Xcode project with two targets for two different apps. There are a lot of #ifdef statements sprinkled throughout the code #ifdef PROJECT_ONE NSArray *dbKeys = [[NSArray alloc] initWithObjects: @"name", @"zip", @"phone", nil]; #else NSArray *dbKeys = [[NSArray alloc] initWithObjects: ...

UIWebViewNavigationTypeLinkClicked not works for "location.href" links

I have a UIWebView with a UINavigationBar, that shows a UIButton to turn back to the previous page. This code works well with link of type <a href>, but not with location.href. How can I do to make it works? - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)r navigationType:(UIWebViewNavigationType)navigat...

UIPicker as Subview

Hello, I'm trying to add a UIPicker as a subview, but can't quite figure it out. I've added a second UIView control with a UIPickerview to my nib (NewWorkoutViewController.xib). My code is as follows: -(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)thePickerView { return 1; } -(NSInteger)pickerView:(UIPickerView *)theP...

Why does my iphone provisioning profile not show up on Organizer?

Hi, I've followed the iphone provisioning assistant to step 3 where I'm supposed to see my installed iphone provisioning profile under provisioning on the Organizer. I currently am unable to see that. I've tried the following guide too. http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/128-Manag...

UITextbox and UIPickerView

Hello, I have a the following piece of code: -(IBAction)routePicker { UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0, 264, 320, 216)]; UIPickerView *thePickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0,0,320,216)]; thePickerView.dataSource = self; thePickerView.delegate = self; [myView ...

What is the best way to create a large set of dummy data?

I'm trying to create a set of dummy data to put into a program, and I was wondering what the best way to do that was. ...

Upgrading to xcode 3.2.3 issues

I have several iPhone apps and just upgraded to xcode 3.2.3 and have a few issues. Before, I used to simply select base SDK then do the build. Now, I see where I set the Architecture Base SDK in my target but it's not 'base' it's Simulator of Device. I also set the deployment target to 3.1.3 and now when I simply do a build so I can ...

How do you zip a Xcode project?

Tired sending my friend an XCODE project , but files are missing? No idea why? Any ideas ...

Using SystemSoundID throughout my app?

Hi all, Can someone please point me in the right direction... I need to use the same sound (a button press) throughout all view controllers in my app. What is the best way to do this. I have managed to load and play a sound in a single view controller but cannot manage to pass a sound to different viewcontrollers because SystemSoundID i...

How to zip Xcode project?

Possible Duplicate: How do you zip a Xcode project? Hey, I have tried to send my friend some code(project), and well I zipped the folder which was created when i started the project. But there are files missing. Any idea how i can grab all the files easily ? ...

Should get 20 errors... but get 0... when compiling without declaring an instance variable.

In my iPhone apps I regularly do this in xCode v3.2.3: Declare a BOOL variable in the *.h file Use @property in the same *.h file. Use @sythesize in the matching *.m file. I accidentally forgot to do #1... but it still complied fine. 0 warnings. 0 errors. 0 analyzer errors. How can that be? Shouldn't my code to loaded with compil...

avTouchController VU meter for iphone radio app

Hi friends, I'm trying to implement the VU meter code sample from http://developer.apple.com/iphone/library/samplecode/avTouch/Introduction/Intro.html in my iPhone Radio app. Until now no joy. My question: is it possible to implement this VU meter, from AVAudioPlayer class, in my code, that uses another object that parses the mms str...

UIPickerView Shifts When Loaded

I have a UIPickerView that shifts vertical each time i load it. I have a feedback button on a toolbar on the bottom of this view as well. Of course, if i press this button i am taken to the email interface view to leave feedback. and, when i return to the UIPickerView, after leaving or cancelling feedback, the page shift is corrected. An...

XCode Forward/Back Keyboard Shortcut? (v3.2 broken)

Back Arrow Broken In XCode 3.2 Is there keyboard command to go back/forward one file at a time. XCode 3.2 changed the behavior of Cmd-Opt <-- and -->. As noted in another question, they do not operate on a file level like in previous versions of XCode, but on an "edit point", making it cumbersome to flip through a list of files (the q...

Multiple targets and multiple provisioning profiles in XCode

I am creating two targets of my app (a free and a paid version) and cannot make XCode use the proper provisioning profile for the debug built of one of these versions. It attempts to use the profile of the paid one for both version, and obviously fails since the bundle ID does not match. In the 'Get Info' build settings for each target ...

XCode- is it possible to add columns and images to PickerView in Interface Builder?

Is it possible to add images and columns to Picker View in XCode Interface Builder? Image here: http://media.tumblr.com/tumblr_l5fgqaBrEo1qar71d.jpg Im supposed to come up with something similar.. and im quite new to developing iphone app, but do have experience of C#/Java... any tips/inputs? thanks in advance!! ...

How to add a checkbox in front of folder tree in finder with Mac?

I want to change a outline view , and add checkbox cell in front of node , and the node have a icon and how to add checkbox in head of the icon? ...