tags:

views:

49

answers:

2

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?

+1  A: 

for your device's name:

[[UIDevice currentDevice] name];
lukya
+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
thanks man!That really helped
Ajayvictor007