ios4

GUI is stuck with uibackgroundmodes= voip, audio

℡╲_俬逩灬. 提交于 2020-01-04 04:13:05
问题 I have tabbar-based application. When I put in my plist UIBackgroundModes (my application is supposed to support voip), the GUI doesn't load. It sucks on Splash screen and doesn't load the first tab view. When i remove the UIBackgroundModes property from info.plist, it works fine. More than that, pressing the home button when it stuck does nothing. Did somebody encountered a similar problem? (The problem exists on simulator) Thanks, Nava 回答1: It appears, that the problem happens on Simulator

Background Loading a url in a uiwebview

假如想象 提交于 2020-01-04 03:18:16
问题 Hi I'm a have an app in which i load webpage in a uiwebview .So each time it takes too much time for loading . So i need to load the webpage in a background mode. Any one know how to done this. Any help would be appreciable. 回答1: - (void) start_Web_View { UIWebView *wv = [[UIWebView alloc] initWithFrame:CGRectMake(0,0,320,460)]; wv.delegate = self; [wv loadRequest: [NSURLRequest requestWithURL: @"http://long_loading_web_site"]]; // go do something else to amuse the user while the web site

Why does audio work in the simulator but not on my iPad?

血红的双手。 提交于 2020-01-04 03:13:51
问题 I am working on creating a very simple app. 2 buttons, both play sound. Each clip lasts 1 second and responds to "TouchUpInside". They are .caf files that I converted in iTunes. Here is my code, once again, it works in the simulator but not on the device: enter code here- (void)viewDidLoad { NSLog(@"InView did load"); AudioServicesCreateSystemSoundID ((CFURLRef)[NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:@"bigaif" ofType:@"caf"]], &systemSoundID);

Facebook iOS SDK Dialog issue Text Input

守給你的承諾、 提交于 2020-01-04 02:27:07
问题 I'm building a Facebook app that calls a Facebook dialog box to allow users to share a post. Using the facebook documentation, a call to the facebook object: [appDelegate.facebook dialog:@"feed" andDelegate:self]; opens the dialog box I need. However, the keyboard for user input doesn't popup, and all I can do is post a blank post up on my wall. Has anyone else encountered this? 回答1: Did you ever figure out how to resolve this issue? I'm seeing the same thing. I'm using the three20 framework

UILabel + touchDown

ⅰ亾dé卋堺 提交于 2020-01-04 02:26:54
问题 Is it possible to implement touchdown for UILabel? 回答1: UILabel is a subclass of UIView , which is itself a subclass of UIResponder ; therefore, it’s definitely possible to make a label that responds to touches. Just make a new subclass of UILabel and implement the following method(s): – touchesBegan:withEvent: – touchesMoved:withEvent: – touchesEnded:withEvent: – touchesCancelled:withEvent: So, if you wanted something to happen when touches started, you’d do it in -touchesBegan:withEvent: .

doesNotRecognizeSelector exception while running ibtool on a xib resource files

白昼怎懂夜的黑 提交于 2020-01-04 02:09:13
问题 Anyone knows why I get this crash from the ibtool? ibtool --generate-strings-file "my.strings" "myViewController.xib" Result: 2011-04-18 17:49:41.848 ibtoold[32147:107] -[NSCFString count]: unrecognized selector sent to instance 0x20055f7e0 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.ibtool.errors</key> <array> <dict> <key>description</key> <string

How can I play a Youtube video in an iPhone

淺唱寂寞╮ 提交于 2020-01-03 20:57:08
问题 I wanted to play a Youtube video in the iPhone from within the application. I tried using the MPMoviePlayerController, but was not loading the video. It is playing the video which I loaded from the bundle but not the you tube video. I also tried to play the Youtube video by embedding it in the UIWebView, but that also was in vain. Can anybody suggest me an approach that i should take. i am testing it in the IOS 4.2 This is the code i used. mp = [[MPMoviePlayerController alloc]

How can I play a Youtube video in an iPhone

混江龙づ霸主 提交于 2020-01-03 20:57:04
问题 I wanted to play a Youtube video in the iPhone from within the application. I tried using the MPMoviePlayerController, but was not loading the video. It is playing the video which I loaded from the bundle but not the you tube video. I also tried to play the Youtube video by embedding it in the UIWebView, but that also was in vain. Can anybody suggest me an approach that i should take. i am testing it in the IOS 4.2 This is the code i used. mp = [[MPMoviePlayerController alloc]

NSClassFromString() returns a class even when class should not be available

前提是你 提交于 2020-01-03 16:57:28
问题 I am currently testing an app on an iPhone 3G with iOS 4.0. I have the following code to check if this Class is available. if (NSClassFromString(@"CLGeocoder")) In the documentation it states that CLGeocoder is available for iOs 5.0 and later. But the code above does not return nil. Why? this Class should not be available in iOS 4.0 回答1: To check if CLGeocoder is available and it is really running iOS 5 I used the following: if (NSClassFromString(@"CLGeocoder") && [NSClassFromString(@

how to converts NSMutableArray values into NSString? [duplicate]

时光毁灭记忆、已成空白 提交于 2020-01-03 06:42:09
问题 This question already has answers here : How can I convert NSMutableArray into NSString? (3 answers) Closed 6 years ago . hi all how to convert NSMutableArray values into the NSString when i did as like Webservices *details=[[Webservices alloc] init]; [details getMobileNumberDetails:phnotextfield.text]; NSLog(@"longitudes Arrays from %@",details.resultData); "-91.57696007", "10.343234", "74.982343", "76.464844", "76.464844", "2.256", but when implemented like this theCoordinate2.longitude = [