Bill Dudney created a sample iPhone Bonjour application to demonstrate how to use Bonjour开发者_运维百科 to discover and connect to two iPhones. Unfortunately, this application was made for ios2.2.1. Does anyone know how to convert this application to the new ios4? OR if someone knows of another example application that is made for ios4?
If it doesn't run (errors out) on an iOS 4 device then you need access the source code and build it from Xcode with the iOS 4 SDK. From there you will need to fix any sort of warnings or errors which happen at compile time. Then you should be able to deploy it just fine.
If you have no idea how to do this, try and get in touch with me and I will see about converting it for you.
I'm assuming the Documentation ("Initializing and Publishing a Network Service"): http://developer.apple.com/iphone/library/documentation/Networking/Conceptual/NSNetServiceProgGuide/Articles/PublishingServices.html
and the associated sample project at: /Developer/Examples/Foundation/PictureSharing
Aren't what you're looking for?
精彩评论