xcode

how can we keep the INFO-PAGE or ABOUT US in the our app????

Hey friends, I am unable get the solution, that how can we code/write the INFO-PAGE. Where we need to code or add the INFO page, after taking the apple developer program. How can we do this??? ...

Why am I getting a compile error when I return a pointer to a Protocol?

@protocol Runnable - (id<Runnable>) works; //this compiles fine - (Runnable *) broke; // get a compile error saying Expected ')' before 'Runnable' @end I'm not sure I understand why xCode complains about the - (Runnable *) broke; line ...

Linking is jacked up.. wtf is -rpath? MacOS X

So, I'm building a project, and it uses functions from a compiled library (.dylib or .so). I have the headers and the library files (this is all part of QtRoot, btw) in appropriate locations, but when I try to build my project in Xcode, I get a debugger error: dyld: Library not loaded: @rpath/libRIO.so Referenced from: /Users/paultho...

Swipe gesture in iPhone SDK 4.0?

How do i put a swipe gesture in the new iPhone SDK? I'm trying to detect a swipe gesture over a UIImageView? A swipe up and a swipe down? ...

Why does this simple C command line tool always exit without working?

I've just typed in an example from K&R... #include <stdio.h> int main (int argc, const char * argv[]) { int c, nl; nl = 0; while ((c = getchar()) != EOF) { if (c == '\n') { ++nl; } } printf("new lines=> %d\n", nl); return 0; } However, when I build & run, I get... minim...

performance problem with WebKit which gets 50.000 POIs via webservice

Hi, I've got a lot of POIs (compare MKAnnotation Protocol) in a backend on a webserver. I don't want to have a complete dump of all those in an iPhone database since normally you only need the POIs around your area. So my idea was a webservice which gets the actual shown region as paramters and gives back all relevant POIs. So far so goo...

xcode and ad-hoc-distribution: can i bring xcode to automatically make an .ipa ?

can i make, that when compiling in the adhoc-profile, i made for xcode, pack it into a zip complaining to itunes or an ipa, give it an automatic name (optional ... appname_date_time.zip) and copy it to a network-path ? so, what is really my problem: i think i understood, that in a past-build-phase i can run a shell-script. but i haven´t...

Potential leask of an object, Biuld and Analyze, viewForHeaderInSection

Hi again, i've just mad Build and Analyze with my project on iphone, and i got warning from analyzer which i don't understand, this is my function: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [self.tableView deselectRowAtIndexPath:indexPath animated:YES]; NSLog(@"user did select row ...

Installing iOS 4.0.2 SDK over 4.0.0

You know how installing iOS SDK 4 meant that you lost the ability to set the Base SDK to 3.1.x and lower (You have to use the deployment target etc). Does the same happen when installing 4.0.2 over the top of 4.0? Will I have to set my Base SDK to 4.0.2 and use the Deployment Target for a lower version (4.x or lower)? Or can I still set...

How can I test an iPhone application on device without the key

How can I run my XCode SDK application on my iPad without key and without jailbreak? (I found a description yesterday, but cant find it back). This can be with the device connected to my development machine. (I can afford the $99, but I cant wait for it to arrive) ...

How to show/hide different windows using obj-c in xcode.

Hi, I' wondering how I would go about having two windows in interface builder and then being able to show and/or hide either of them from xcode with objective-c? Any ideas? Thanks ...

maintaining selection in UISegmentedControl

Can i maintain the selected state of UISegmentViewControl segments?? i.e can keep a segment appear selected even if the user selects another segment?? I dont seem to find anything that does this anywhere!! ...

Why "error: expected specifier-qualifier-list before 'UITextView'" (but not for other view types!)

A question about specifier-qualifier-list has already been (asked) and answered but none of the anwsers given solve my problem. My code is simple: #import <UIKit/UIKit.h> @interface TableCellWithTextView: UITableViewCell { @private UITextView *theTextView; } @property (nonatomic, retain) UITextView *theTextView; @end But ...

How to populate Info.plist values dynamicly in XCode ?

Can't figure out how to populate CFBundleVersion dynamically with ${BUNDLE_VERSION} which I would like to define as BUNDLE_VERSION=`date "+%y%m%d"` Anyone? ...

Managing interface builder's window layout

I have my macbook pro hooked up to an apple cinema display. I want to work on my code on the laptop but have interface builder on the cinema display. It needs to be this way because my laptop screen doesn't have the resolution to show a full iPad interface layout in IB so I would need to scroll up and down. The thing I am fighting with ...

iPhone Linker Error (AudioStreamer)

I'm using Matt Gallagher's Audio Streaming Project. I downloaded the code/project and it runs/compiles/links just fine. The problem is when I try to integrate the AudioStreamer class into my own project. I added all the necessary frameworks and checked over the project settings to make sure they match Matt's project as much as possibl...

How easy would It be to adapt Core Data to my app?

I'm a novice iphone developer, and just completed my first iphone app. After provisioning my iphone for development, I noticed that the app used way too much memory, and that several memory leaks that were issuing from the app accessing the sqlite database in the app caused the app to crash often. After running instruments, I have decid...

insert a xib as a subview, then add a subview from that xib over the parent view.

I have some buttons on a view for navigation and when a user presses them my code inserts the appropriate new view page (xib) under the navigation buttons. Each new view page that I insert as a subview has some buttons that are supposed to pop up a new view over everything, including the navigation buttons. Here's one of my button action...

Replacing libstdc++.dylib (4.0) global new and delete operators on OSX

I'm trying hard to replace the global new and delete operators with XCode 3.2, GCC 4.2, libstdc++ 4.0, dynamic version. I took the protypes directly from the header "new" and implemented them. They are pasted below. The project is a .plugin so a dynamic lib. This plug-in MUST delegate allocation to the main application's own alloc/fre...

Problems migrating from XCode 3.2.2 to 3.2.3

After upgrading my copy of xcode from 3.2.2 to 3.2.3, I am getting over 10000 compilation errors. I have switched all frameworks to the iOS 4.0.x versions, and have set the new sdk to 4.0, with iOS 3.1 as compilation target. What could be causing 10000 errors, and how do I resolve them? (These errors appear everywhere, and even in sdk fi...