ios6

getting error “Xcode cannot find the software image to install this version” on deployment after updating ios and xcode

一笑奈何 提交于 2019-12-31 05:07:23
问题 I keep getting the error: “Xcode cannot find the software image to install this version” on deployment? I upgaded my iPhone to version 6.1.3 and also recently updated xcode to the lastest as well. Before doing this, I could deploy my apps to my phone, but now my apps won't deploy to my device. Do I have to go and make another provisioning profile and all that stuff again? (I did it all a couple of months ago and got everything working when I was still on iOS 5). Thx, 回答1: You need to upgrade

MKMapView Off Screen Annotation Image Incorrect

让人想犯罪 __ 提交于 2019-12-31 04:14:05
问题 I have a map to which I add several annotations, like so: for (Users *user in mapUsers){ double userlat = [user.llat doubleValue]; double userLong = [user.llong doubleValue]; CLLocationCoordinate2D userCoord = {.latitude = userlat, .longitude = userLong}; MapAnnotationViewController *addAnnotation = [[MapAnnotationViewController alloc] initWithCoordinate:userCoord]; NSString *userName = user.username; NSString *relationship = user.relationship; [addAnnotation setTitle:userName];

Is there any way to determine the driving time between two locations using Apple's Maps API?

流过昼夜 提交于 2019-12-31 02:25:29
问题 I am evaluating using google's Distance Matrix / Places / Maps API, versus Apple's Maps api for an iOS app. I am looking at the MKDirectionsRequest class, and I can't seem to find a way to determine what the driving time is between the two points. If this is possible using the apple Maps API, could someone please point me in the right direction? I am hoping it would be possible to accomplish this just using Apple's API, but it looks like this is only going to be possible with Google's API.

iOS Autolayout proportionally resize UIViews?

独自空忆成欢 提交于 2019-12-31 02:20:09
问题 I'm trying to learn Autolayout, so I'm reading through tutorials and also messing around with some UIViews just to see what I can get them to do. I'm wondering how I would accomplish something like the picture below on the transition from portrait to landscape with autolayout? I thought, for example, that if I pinned the yellow to the top of the view, the blue to the yellow, the orange to the blue, and the orange to the bottom, they would resize proportionally, maintaining the 20 pixels

UIActivityController behaviour different on device and simulator

安稳与你 提交于 2019-12-30 12:14:57
问题 I add an activityViewController to my app like below, passing in an image UIActivityViewController *avc = [[UIActivityViewController alloc]initWithActivityItems:[NSArray arrayWithObjects:img,nil] applicationActivities:[NSArray arrayWithObjects:nil]]; [self presentModalViewController:avc animated:YES]; [avc release]; On the simulator (twitter, facebook and weibo accounts all not configured): options mail, twitter, facebook, weibo, assign to contact, save to camera roll, print, and copy appear

UIActivityController behaviour different on device and simulator

纵然是瞬间 提交于 2019-12-30 12:14:33
问题 I add an activityViewController to my app like below, passing in an image UIActivityViewController *avc = [[UIActivityViewController alloc]initWithActivityItems:[NSArray arrayWithObjects:img,nil] applicationActivities:[NSArray arrayWithObjects:nil]]; [self presentModalViewController:avc animated:YES]; [avc release]; On the simulator (twitter, facebook and weibo accounts all not configured): options mail, twitter, facebook, weibo, assign to contact, save to camera roll, print, and copy appear

Passing Sound (wav) file to javascript from objective c

筅森魡賤 提交于 2019-12-30 11:55:09
问题 I am recording a sound file ( wav format) in objective C. I want to pass this back to Javascript using Objective C stringByEvaluatingJavaScriptFromString . I am thinking that I will have to convert wav file to base64 string to pass it to this function. Then I will have to convert base64 string back to (wav/blob) format in javascript to pass it to audio tag to play it. I don't know how can I do that? Also not sure if that is best way to pass wave file back to javascript? Any ideas will be

iOS6 and MPMoviePlayerController - Black View

一个人想着一个人 提交于 2019-12-30 11:51:09
问题 I have a MPMoviePlayerController that plays a video embedded within a View. This worked perfectly on iOS5/5.1 etc... but since upgrading to iOS6 this has stopped working and now the view is just black. Does anyone have any ideas or similar issues? Thanks 回答1: Try this one...... NSString *resourcePath = [[NSBundle mainBundle] pathForResource:@"ddd" ofType:@"mp4"]; NSURL *url = [NSURL fileURLWithPath:resourcePath]; MPMoviePlayerViewController *moviePlayer = [[MPMoviePlayerViewController alloc]

Download file using AFNetworking on iOS 6

…衆ロ難τιáo~ 提交于 2019-12-30 11:19:14
问题 I've recently updated to AFNetworking 2.0. The documentation said it is compatible with iOS6.0+. I am building a iOS 6.0 app, when I am trying to implement a download method (both images and videos). The example use AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; However, I got an "Use of undeclared identifier 'AFURLSessionManager'" error. And I found out that AFURLSessionManager use a class that is only available from iOS7. I'm just

Setting multiple borders on UIView

ぃ、小莉子 提交于 2019-12-30 11:02:21
问题 As I cannot find any questions/answers for this, I imagine it is not possible. Is there anyway to set multiple borders on a UIView . I am currently setting a standard border with .layer.borderWidth and layer.borderColor . I am wondering if I can add a multiple strokes/borders effect to the view. I need a border of 4.0f in white then another 1.0f in another color. 回答1: Three solutions I can think of: nest a UIView in another one, define one border for each; draw the border yourself in -(void