iphone

Converting [NSNetservice addresses] to ip address string

This question was already asked here: http://stackoverflow.com/questions/1720316/nsnetservice-ip-address and here: http://stackoverflow.com/questions/938521/iphone-bonjour-nsnetservice-ip-address-and-port I've used both of those to get where I'm at now. My problem is the following method I have doesn't quite work: - (NSString *)getSt...

UITableView / UINavigationBar Passes .tag from Child to Parent?

I am setting a tag for my navigationBar using: self.navigationController.navigationBar.tag = 1; When you select a cell and the child UITableView loads, I set: self.navigationController.navigationBar.tag = 2; But when I hit the 'back' button and the Parent UITableView appears again, the .tag is still set to 2. I have tried setting ...

Accessing the "selected" property of custom MKAnnotationView ?

I'm trying to use the "selected" property in MKAnnotationView ( discussed here ), this is for the user to be able to delete a selected annotation... The following piece of code should find the selected pin in MKMapView and remove it: CSMapAnnotation *a; for(a in [mapView annotations]) { if([a selected]) //Warning: 'CSMapAnnotatio...

iPhone: -[UIView presentModalViewController:animated] Argument Error

Hey When I run my application it shows one warning message: warning:passing argument 1 of 'presentModalViewController:animated' from distinct objective - c type How do I resolve this warning? I've used presentModalViewController:animated many times previously in my application. Please help me. Thanks in advance ...

How to take an iPhone screenshot of entire view including parts off screen?

I have an application that's laid out using an UITableView. The interface takes up more than just the screen, so there's some area that can be scrolled to. I would like some screenshots of the entire view (including the non-visible area) to use for documentation and soliciting feedback from my customer. Is there programmatic way to get ...

Go to very beginning of UINavigationController after going some pages deep

I want to go to the very beginning of the UINavigationController after going deep several pages. If I try the following code, it will only go back one view. [self.navigationController popViewControllerAnimated:YES]; I want to do this action on a "cancel" button placed on the top right. ...

Stream.publish won't translate {*actor*} using Facebook Connect for iPhone

I am able to successfully publish a stream to my account using Stream.publish via Facebook Connect for iPhone. However, the {*actor*} token does not appear to get translated. I though this was a token that Facebook automatically translates to the user. Is this not the case? Here is my attachment JSON array. attachment = "{"name":"Join {...

What should I learn Quartz or OpenGL ES?

I'm learning to program for the iPhone. I'm trying to figure out how to do some really cool custom view animations. What should I learn, Quartz or OpenGL ES? For whoever says OpenGL ES, could I use it to animate my views or is only Quartz suitable for the task? Thanks. Also any resources / the book or anything that teaches you this stu...

Core data many-to-many relationship - Predicate question

In my Core Data model I have two entities: List and Patient. List has an attribute called 'name'. A List can have any number of Patients and each Patient can belong to any number of different lists. I have therefore set a relationship on List called 'patients' that has an inverse to-many relationship to Patient AND a relationship on Pat...

IPHONE: After Removing / Adding Subviews in the App Delegate, Orientation Changes Fail

I am using my application delegate to swap out views. First I remove the current view, then I add the new view, then I run a quartz animation. No matter what view I load first, the orientation changes occur as expected. As soon as I start adding new views (removing the old) to the window in the application delegate, orientation changes ...

iPhone go from View to TableView

I have a login view and after checking the username i want to go to a table view. I downloaded the SimpleDrillDown App from apple sample codes, and i want when i run the application to first view the login page and after that the TableView. If someone has the time the project can be found here : http://developer.apple.com/iphone/library...

How to determine if UIScrollView crash is in my code or Apple's?

I periodically am reproing a crash on a debug build running on my iPhone involving a UIScrollView with none of my code in the stack frame. I would like to know if it's a bug in my code or Apple's, and I am unable to query the Apple bug database to see if it has been reported. The backtrace shows: #0 0x30218060 in ___forwarding___ () #1...

How do I animate a view in this weird way?

I'm programming for the iPhone and I have an idea for an animation that I want to implement. I want a user tapping on a UITableView cell and it turning 90 degrees and filling up the whole screen with another view that I've made. I'm wondering how I would do this as well as what knowledge I would need to do this. Thanks. Update - I mea...

Sounds lost after interruption

I'm using the SoundEngine provided with Apple's crash landing example. After an interruption such as an incoming phone call or an alarm I call to applicationWillResignActive: inside my delegate, in order to pause the game and save the state of it. After the interruption ends I return to my game but the sound is gone. Even if i reinitial...

iPhone Simulator custom CA certificate.

I'd like to test an application on the iphone simulator which connects to a service using a certificate which is signed by our own CA. I can do this on the actual device by adding a provisioning profile which has the CA certificate. I had thought that having the CA certificate in the standard OSX keychain would work, but it doesn't. So ...

IPhone/Objective-c RSA encryption

Hello, I have been google-ing and researching for an answer on how to do a simple RSA encryption using objective-c on an iphone. The main problem i have is that i have been supplied the Exponent and Modulus as an NSData object and i need to then convert them to a SecKeyRef object in order to perform the RSA encryption. Does anyone have...

iphone basic release question

Hi, When i add a new subview, i cant immediately release the controller after displaying. How should i release this viewController? I was thinking about using a property for the viewController, and use delegation to notify for removing the view and releasing it? Is this the best way to do it? or should i do something with autorelease?...

forum software with a simple RESTful API support

Hi all, I'm searching for a forum software which offers REST like API. It should be able to respond to simple calls like retrieve-post, add-new-post etc. and return the result set in JSON or XML format. Those that immediately come to mind are phpBB, Vanilla, and/or vBulletin. But I don't know if they have REST API. Also I don't intend...

UISlider Thumb Graphics Problem

I am developing an app which generates UISliders. There is no problem when testing on the iPhone 3gs and the iPod 3g, but when testing on any older models, the thumb image on the sliders randomly disappear. Throughout the program, I am changing the thumb images back and forth and I am wondering if that is creating a conflict of too many ...

How to add a time interval to an NSDate

I have an NSDate and a duration. I need to get the time after the duration... Given: NSDate is 2010-02-24 12:30:00 -1000 duration is 3600 secs I need to get 2010-02-24 13:30:00 -1000 Actually I am looking for the time, but I think I know how to do that if I can get the NSDate object reflecting the new time. I thought dateWithTime...