问题
I'm wondering if it's possible for me to connect an iOS app with a Mac app over wifi, in a similar way to remote and iTunes, where it pairs the devices up so they can communicate with each other?
回答1:
Yes you can. Use Bonjour for search and discovery. It's easy and will work through the wifi.
EDIT
Look at this answer for code samples https://stackoverflow.com/a/3242187/277021
来源:https://stackoverflow.com/questions/8555241/connect-ios-app-to-mac-app-over-wifi-similar-to-itunes-remote