iphone-sdk-3.0

Getting list of bluetooth devices nearby on iphone sdk

牧云@^-^@ 提交于 2020-01-06 03:33:26
问题 I need to be able to search for all bluetooth devices nearby and just get there ids. I don't need to pair at all. I am using iphone 2.3 beta. Is this possible l have tried using GameKit and no luck does anyone know how to do this. BOOL result = NO; if (!session) { session = [[GKSession alloc] initWithSessionID:@"SCANNER" displayName:nil sessionMode:GKSessionModePeer]; self.session.delegate = self; [self.session setDataReceiveHandler:self withContext:nil]; self.session.available = YES; result

iphone maps GPS icon

徘徊边缘 提交于 2020-01-06 01:30:42
问题 I would like to make a button that centers the map on the current GPS location. Google Maps app has that icon on bottom left. Where can I get that icon. Is it embedded in the SDK? 回答1: That button image is not publicly available for use in the SDK. This question was asked recently on SO but I am unable to find the original question, perhaps someone else will be able to dig it up. This free icon set (http://glyphish.com/) has one that is pretty close. 来源: https://stackoverflow.com/questions

Live streaming on iPhone

半城伤御伤魂 提交于 2020-01-05 18:14:33
问题 I just started work on live streaming on iPhone. So any help of how to do live streming in iPhone. I think if I can add video tag in HTML5 and then load that html in UIWebView will work. Am I right? If not what is your sugestion to do live streaming. I want to embed some news channel live streaming link in the application so from where I can find those links. 回答1: You have to go through HTTP Live streaming document provided by Apple.There are some sample live streaming URLs.The file extension

Live streaming on iPhone

馋奶兔 提交于 2020-01-05 18:12:14
问题 I just started work on live streaming on iPhone. So any help of how to do live streming in iPhone. I think if I can add video tag in HTML5 and then load that html in UIWebView will work. Am I right? If not what is your sugestion to do live streaming. I want to embed some news channel live streaming link in the application so from where I can find those links. 回答1: You have to go through HTTP Live streaming document provided by Apple.There are some sample live streaming URLs.The file extension

UIView added with incorrect orientation

感情迁移 提交于 2020-01-05 09:34:27
问题 So I have been working on a problem with UIView on the iPad. Essentially I have a splitview as the root view and I want to overlay my custom image view over top of the splitview (This is because the splitview must be the root view). The problem that I have, is when I call addSubview on my splitview the subview gets displayed in its default orientation, with no regard to the iPad's current orientation. Any suggestions on what I am doing wrong or flag I am not setting? Thanks! Code that I am

UIView added with incorrect orientation

时光总嘲笑我的痴心妄想 提交于 2020-01-05 09:31:49
问题 So I have been working on a problem with UIView on the iPad. Essentially I have a splitview as the root view and I want to overlay my custom image view over top of the splitview (This is because the splitview must be the root view). The problem that I have, is when I call addSubview on my splitview the subview gets displayed in its default orientation, with no regard to the iPad's current orientation. Any suggestions on what I am doing wrong or flag I am not setting? Thanks! Code that I am

popToRootViewControllerAnimated not working correctly

故事扮演 提交于 2020-01-03 16:56:37
问题 I have a navigation app and when certain errors occur I want to dump the user back on the view they started on so I have the following code execute in those conditions: [self.navigationController popToRootViewControllerAnimated:YES]; When it executes the root view isn't always displayed and/or the navigation bar will have the wrong title. Sometimes the navigation bar will even have the back button showing on it and how could that be on what's supposed to be the root view? I tried using NO for

Exception if nil or <null>

二次信任 提交于 2020-01-03 04:51:06
问题 Im pull the location of a pic from a php script and if there is no picture location it displays "null" for the location in the JSON output. This is throwing an exception in my code. Here is the code which is not working: NSString *piclocation = picloc; if(piclocation == nil || @"null"){ }else{ NSString *mutableUrlString = @"https://www.mypage.com/uploads"; mutableUrlString = [mutableUrlString stringByAppendingString: piclocation]; NSLog(mutableUrlString); NSURL *url = [NSURL URLWithString:

Exception if nil or <null>

扶醉桌前 提交于 2020-01-03 04:51:05
问题 Im pull the location of a pic from a php script and if there is no picture location it displays "null" for the location in the JSON output. This is throwing an exception in my code. Here is the code which is not working: NSString *piclocation = picloc; if(piclocation == nil || @"null"){ }else{ NSString *mutableUrlString = @"https://www.mypage.com/uploads"; mutableUrlString = [mutableUrlString stringByAppendingString: piclocation]; NSLog(mutableUrlString); NSURL *url = [NSURL URLWithString:

Accessing SMS Content iPhone

天大地大妈咪最大 提交于 2020-01-03 03:17:12
问题 I want to confirm if it is allowed to access the SMS content programatically. Are developers allowed to access the content of incoming/outgoing SMS's in the iPhone? Can I access the incoming/outgoing sms messages and retrieve the information related to them e.g sms sent by, sent to,body, time etc using my custom built application. 回答1: No you cannot do so through public API. You may have luck with private API and jailbreak, but I'd guess this is not what allowed means here. 回答2: The Apple Dev