i have connected two iPhones via bluetooth programatically.Now i want to know the name of the device that i am connected to and the name of my device both programatically.Can anybody help me with this?
+3
A:
To get your device's name:
[[UIDevice currentDevice] name];
To get the other device's name:
[instanceOfGKSession displayNameForPeer:peerID];
And if you use initWithSessionID:displayName:sessionMode:
to make the session, you can just use that display name as your device's name.
Programming Guide here.
huntaub
2010-06-22 14:00:27
thanks man!That really helped
Ajayvictor007
2010-06-22 14:17:44