iphone

Building iPhone SDK 2.x targets with Base SDK 3.0, when linking static libraries created with SDK 3.0

I'm having a problem getting Pinch Analytics r64, a static library built with iPhone SDK 3.0, to link properly in my application which is targetting iPhone OS 2.0. This seems to be a fairly common problem, and Pinch Analytics' site even has an entire page devoted to answering this question. Basically, they say to set your project's B...

Moved my viewController under a NavController and now awakeFromNib and initWithCoder don't fire?!?

I have a somewhat complex view that I put together in a separate (View-based template) project (the View Controller was represented with orange icon in MainWindow.xib). It's far enough along now that I've decided to move it into another project where it will be managed by a Navigation Controller. It is called from UINavigationController'...

How to set subview of UIView dynamically (iPhone)?

Hi, I am surely doing something completely stupid here, hopefully someone can tell me what! In summary I would like to programmatically toggle a subview when a button (I'll use a segmented button) is clicked. It need not animate. Ideally I'd load the contents of these views from a nib. I am pushing a UIViewController subclass, initiali...

What's the difference between ahead of time compiled code and natively compiled code

i came across ahead-of-time (aot) compilation in some writing by Miguel de Icaza about producing applications for iphone using mono. It sounds like what results is native code. Is this so or what is the difference? ...

Results for performSelector: differ from standard dot notation call?

I was very puzzled by some unexpected compile errors in my code recently. I did some troubleshooting, and I came up with this bit of test code: 1 float performSelectorResult, messageResult; 2 SEL selector = @selector(smallContentCellMargin); 3 4 NSLog (@"selector %s result %f", selector, [defaults performSelector:selector]); 5 NSLog (@...

UIActivityIndicatorView start/stop before & after web-page request

Hi, I'm using objective-c & the iphone 3.0 sdk I want to retrieve the contents of a URL (web page or pdf) and display it within a UIWebView it seems that the thing to do is something like this: NSURLRequest *requestObject = [NSURLRequest requestWithURL:myURL]; [myUIWebView loadRequest:requestObject]; this works quite well, except f...

How to hide the title bar in the iPhone main window

Hi there, This question might be very easy to answer so I apologize if I missed the obvious. I'm developing a GUI application on the iPhone and want to hide the title/status bar of the iPhone which usually displays the carrier/time/battery. How can I do this from within the code given the main UIWindow and UIView? -A ...

Custom View in UITableViewCell

I am trying to create a UITableView Section that contains two buttons aligned horizontally. This would be similar to the Contacts app, where on the bottom of a specific contact page they have buttons lined up to Text the contact and share the contact. However in my tableView, I want the two buttons to be placed in between other section...

UIViewController not responding to touches

Hey all, I'm completely stumped with this iPhone problem. This is my first time building a view programmatically, without a nib. I can get the view displaying things just fine, but the darn ViewController isn't responding to touches the way it used to in programs where I used a nib. I should add that in the past, I started with the View...

How to disable button in UIActionSheet?

I need to disable the buttons in UIActionSheet. after some operations i need to enable them again. So is there a way to do this. Thanks ...

OpenGL stuff within NIB viewcontroller

Hi, I want to have 3d rotating cubes using openGL within a UIview created using a nib file. How do I do that? For example, in the ADDMUSIC sample code by apple. I want to have a 3D cube on the view page with message 'your application here'. How do I merge opengl code in the sample code. Any grandmaster here who can add a tweak of that ...

How to create Picasa web album from iPhone?

Anyone know how to create a Picasa Web Album using gdata-objectivec-client-1.7.0? I did upload a photo when the album already existed and it worked, but if there is no album, I can't upload the photo. ...

How do I create a MenuItemImage with some text on it ?

Hey Guys, I would like to create a menu item from an image with some text on it. Image is a button and I have to write the name of the player on the button, so I presume I have to use both MenuItemImage and MenuItemFont. Maybe I can create an AtlasSprite using both image and text on it and then us MenuItemAtlasSprite object? If so how ...

Is there a FSRef in iPhone SDK or is there something that can be FSRef's alternative?

The question may sound stupid, but the thing is this: I am learning how to use a Audio Queue, and the example I've taken (aqtest) has been a nice guide for me until I recently found out that aqtest is not for iPhone. (stupid me) I served around the Internet and found out that there is no FSRef for iPhone. If possible, I want to find a w...

In which situations would an object not be key-value coding compliant?

Currently I'm learning all the stuff around key-value coding. In the docs they say: Any object in the key path sequence that is not key-value coding compliant for the appropriate key receives a valueForUndefinedKey: message. I try to imagine a situation where an object is not key-value coding compliant. How could that happe...

How to add a breakpoint to objc_exception_throw?

this was the answer from the brad larson on this SO question If you add two breakpoints, you should be able to debug these exceptions. To do this, go to Run | Show | Breakpoints and create two global breakpoints (I do them globally because they are so useful in all my applications). The first should be named "objc_exception_throw" and i...

about stumbler

hi all, i new for iphone development, i try stumbler to get ssid with iphone os 2.0 and 3.0, i'm getting error and i found that few framework is missing, can anyone tell me how to recover this, i found from stackoverflow mentioning about PrivateFrameworks/Apple80211.Framework, how to install this, or anyone can give me the step to apply ...

Why should I use KVC rather than the simple dot syntax when accessing object properties?

There's the option to go the long way, if an receiver class conforms to the NSKeyValueProtocol: [myInstance setValue:[NSNumber numberWithInt:2] forKey:@"integerProperty"]; or the short way: myInstance.integerProperty = 2; what's the point of this KVC method? When is this useful? ...

RSSI value in gamekit iphone api

Is it possible to get bluetooth RSSI (Radio signal strength) value in gamekit iphone api? If it is pssobile, can i have some sample code. If it is not possible is there any other way to get bluetooth RSSI value in iphone OS 3.0? ...

How to do reverse geocoding using google maps on the iPhone

hi i am making an application in which i am showing current location on google map through web services. now i want to show the latitude, longitude, address , building & floor type when we click on current location on google. i don't know how to do it. if anybody has any solution so tell me. ...