xcode

Populating two grouped tableviews from the same PLIST

In my app, there is a portion that holds a static contacts directory. I would like the directory to appear indexed (alphabetically) and the detail view will need to be grouped also. (I am somewhat trying to replicate the look and feel of the Contacts app.) I have it working, just no index and a detail page that is just a view with a col...

Xcode "Auto-vectorization" flag

As I was sifting through some of the Xcode project flags, I stumbled across a flag called "Auto-vectorization" which enables the compiler to optimize operations to take advantage of vector registers (where applicable). Why would I ever turn this off? Are there performance considerations (it should be better)? I don't really care about...

Are there any reasons you wouldn't want to use the Static Analyzer every time you build your iOS app?

I'm diving into iOS development and I just found out about the Static Analyzer and it's been pointing out all sorts of mistakes I was making in the code. The Static Analyzer doesn't really seem to eat up any extra time when building and so I'm wondering why it isn't enabled by default. Are there any reasons you wouldn't want to use the...

how to create table alert view

hi iam new to iphone development,first time i am using alert view .. in my application when my button pressed it has to open up table view in alert view and when user selects one of these it has to update to button text after alert view hide.... any idea like how to do this one ,i am right now using picker view for selecting this profes...

Build settings in xCode that support iOS 3.0 - 4.0 and iPhone 3g - 4

I want to build an app that is compatible with iPod touches, iPhone 3g, iPhone 4, iOs3.0, etc... Everytime I build on a 3GS, I use these build settings Architectures: Standard (armv6 armv7) Build Active Architecture Only (Unchecked) Valid architectures (armv6 armv7) And I select armv7 as the active architecture before I build. However f...

CTFramesetterSuggestFrameSizeWithConstraints sometimes returns incorrect size?

In the code below, CTFramesetterSuggestFrameSizeWithConstraints sometimes returns a CGSize with a height that is not big enough to contain all the text that is being passed into it. I did look at this answer. But in my case the width of the text box needs to be constant. Is there any other/better way to figure out the correct height for ...

Navigating to Second View in TabController calls First View's "viewDidLoad"

Hello, As the subject says, I have a project based on Apple's TabController template. The problem is that when navigating to Second View in the TabController, the First View's "viewDidLoad" method is called. The second view's method is NOT called. Any idea what might cause this? I would post code but I'm not sure what part might pertai...

printf not printing to xcode debugger when format string is involved (in a plugin environment)

Hi, I have a pretty obscure problem here. I'm writing a photoshop plugin (for mac) using Xcode. I use printf statements for simple debugging. A printf without a format string works fine, however, if I use a format string to try and print out a value it does not show up in xcode's debugger console. #include <stdio.h> DLLExport ...

$non_lazy_ptr link error with agvtool version variables?

I've been using agvtool for one of my iPhone apps on general principle, and have recently found a reason why I want to be able to check the version variable (so that I can re-copy help content into the Documents directory, if it's out of date). The variable, MyAppVersionNumber, defined in MyApp_vers.c, is auto-generated during the build...

iPhone/iPad itunes library read access?

Hey guys, I looked thru the documentation a bit but didn't see anything of much substance (but I must not be looking in the right place) What are my options if I want to iterate through a user's itunes library meta data? Let's say I want to build an Array of all their song titles. Is this possible with current public SDK APIs? Dave ...

How to add autocompletion entries to Xcode

I noticed that there are some words that XCode does not recognize. For example the word initWithCoder. It also won't recognize NSString if the word const comes before it. How can I fix this? ...

Duplicate symbol build error in XCode project

When I try to build my project I get the following error. ld: duplicate symbol .objc_class_name_GLFunView in /Users/gin/Documents/development/GLFun/build/GLFun.build/Debug-iphonesimulator/GLFun.build/Objects-normal/i386/GLFunView-7A51E8797CBB3D72.o and /Users/gin/Documents/development/GLFun/build/GLFun.build/Debug-iphonesimul...

i want to save data back to my button text from alert view

i should able to display texton button whatevr selected by user from table view which is appears when button pressed.. table view will appear when i press button as a alert view ...

i am having link to my terms and conditions data ,i want to show this data by reading it

how to read data from an url link,and want to display it on my text view...... url link content contains only normal text i am using NSString *userAgreementStringURL = [NSString stringWithFormat:@"%@/requestConfigurationData.php?ownerID=%@&view=userAgreement", serverURL, ownerID]; NSURL *userAgreementURL = [NSURL URLWithString:us...

Problems when switching to xcode 3.2.3 and simulator 4.0

Hi All, Here is a list of problems I have after building my app with xcode 3.2.3 and running it on simulator 4.0. Of course, all these issues did work with the previous environment. Location manager does not update location. It used to update with the location at Cupertino but now I get locationManager:didFailWithError: called with er...

What is the difference between Search Bar vs. Search Bar & Search Display Controller?

What is the difference between Search Bar vs. Search Bar & Search Display Controller? ...

How can my XCode project files be exactly the same as a working project and still have build errors?

I'm following a tutorial from chapter 12 of the book "Beginning iPhone 3 Development." When I try to build the project I get an error. The book came with the project files, so I went through every file in my Classes directory and copied and pasted the code from the example project so that they are identical. This has solved my build erro...

XCode Cocoa Console Application Linking Error

Hey guys, I made a new project in XCode (console application). Then I added a new Objective-C class and compiled it. However, it wouldn't build. Here are the errors I am seeing: Undefined symbols: "_objc_msgSendSuper", referenced from: -[Terminal init] in Terminal.o -[Terminal dealloc] in Terminal.o ".objc_class_name_NS...

Problem removing and re-adding an image file into my iOS4 app bundle

My problem is something that should be so simple it is mind boggling. When I change the look (in PhotoShop) of an image file that is being stored in my app bundle. My method for replacing the old image in the bundle with the new one is this: 1) remove the old image from the app bundle (choosing to also move to trash) 2) drag the new i...

Xcode, Duplicate symbol _main

I have duplicate symbol _main. The problem is it says "Duplicate symbol _main in /Users/.../i386/main-B9843B6026D6EFA4.o and /Users/.../i386/main-B9843B6026D6EFA4.o", the XXX and XXX are actually the same .o file. I don't know why it thinks it's duplicate symbol when it's the same .o?! Any help appreciated, thanks. ...