ios6

Custom Segue Class for Unwind Segue

邮差的信 提交于 2020-01-01 13:58:06
问题 A Standard / Forward Segue can be clicked on in the Storyboard builder and the style can be changed to Custom. At this point a Segue Class can be specified. However, this is not possible for an Unwind Segue. Unwind Segues only have Identifier and Action to specify. It reasons that their type is "Unwind Segue" but is there a way to create a custom Segue class for these Unwind Segues? 回答1: I found that in order to implement a custom unwind segue I had to subclass the UINavigationController and

Custom Segue Class for Unwind Segue

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 13:57:36
问题 A Standard / Forward Segue can be clicked on in the Storyboard builder and the style can be changed to Custom. At this point a Segue Class can be specified. However, this is not possible for an Unwind Segue. Unwind Segues only have Identifier and Action to specify. It reasons that their type is "Unwind Segue" but is there a way to create a custom Segue class for these Unwind Segues? 回答1: I found that in order to implement a custom unwind segue I had to subclass the UINavigationController and

Presenting a UIPopoverController from UICollectionViewCell

半城伤御伤魂 提交于 2020-01-01 10:04:54
问题 I'm looking to present a UIPopoverController from a button on a UICollectionViewCell. So far, everything is created ok, but the popover isn't visible. Is there a special way of doing this? The code works if I display it from anything else other than a collection view cell. The following code is in the UICollectionViewCell subclass. if (_infoPopover == nil) { UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; GameInfoViewController *gameInfoVC =

Prevent iOS 6 from Caching Ajax POST Requests [duplicate]

南笙酒味 提交于 2020-01-01 09:25:10
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Is Safari on iOS 6 caching $.ajax results? I have a hybrid application using PhoneGap that runs fine on Android and iOS. But when I started testing in iOS 6 I noticed that I am not getting server data for most of my ajax calls - instead I was getting the cached data from previous ajax calls. So far I have tried the following options to disable cache - Include a timestamp as query string parameter $.ajaxSetup({

Navigation bar in iOS 6 look like bar in iOS 7

北城余情 提交于 2020-01-01 09:18:21
问题 Is there any way to make navigation bar elements (back button) in iOS 6 look like navigation bar elements in iOS 7 ? And also buttons and other iOS 7 elements of UI. 回答1: Instead of putting code into every view controller that you need to customize, I would recommend doing this for the entire application by putting something like this in your application:didFinishLaunchingWithOptions: method in the App Delegate // Nav bar [[UINavigationBar appearance] setBackgroundImage:[[UIImage imageNamed:@

How to convert a kCVPixelFormatType_420YpCbCr8BiPlanarFullRange Buffer to YUV420 using libyuv library in ios?

妖精的绣舞 提交于 2020-01-01 07:11:24
问题 i have captured video using AVFoundation .i have set (video setting )and get in outputsamplebuffer kCVPixelFormatType_420YpCbCr8BiPlanarFullRange format. But i need YUV420 format for further processing. For that i use libyuv framework. LIBYUV_API int NV12ToI420(const uint8* src_y, int src_stride_y, const uint8* src_uv, int src_stride_uv, uint8* dst_y, int dst_stride_y, uint8* dst_u, int dst_stride_u, uint8* dst_v, int dst_stride_v, int width, int height); libyuv::NV12ToI420(src_yplane,

How to post to a friend's wall in facebook iOS SDK 3.1?

放肆的年华 提交于 2020-01-01 07:03:48
问题 I have the SDK 3.1 working for iOS 6 for posting status updates and I have the facebook user id of the person who I want to post on their wall. I just want it to say "hi." to just one person's wall. I can target their feed with "/[id]/feed" but then I have to supply a graph object? if I use startForPostWithGraphPath() anyways. 回答1: I figured it out! First of course implement FBFriendPickerDelegate per here, unless you already have their friend ID somehow. http://developers.facebook.com/docs

Will identifierForVendor change when updating from iOS6 to iOS7

独自空忆成欢 提交于 2020-01-01 06:55:29
问题 We're currently using identifierForVendor which was introduced with iOS6. Now iOS7 was released and i wonder if this identifier will stay the same for my apps after the update process. If i recover my device with iOS7 then it will obviously change, since it will be a fresh start. How about the update via iTunes / OTA? 回答1: I've also tested this behaviour with a little app that would just display identifierForVendor and it stayed the same before/after the update from iOS6 to iOS7. What's also

Sharing Passbook Passes .pkpass

自作多情 提交于 2020-01-01 06:54:08
问题 I created a simple demo passbook pass in iOS 6. I emailed it to myself and it works fine. Now I need to share it with people. I uploaded the .pkpass file to the server but safari is not able to recognize the file format or mime type and hence it does not download it. Any ideas how can I share it? 回答1: Safari should recognise these. I think you probably need to add the MIME type to your web server, so it knows how to present the file to visitors. Edit: the MIME type you need to add to your web

How to play video in ios6

若如初见. 提交于 2020-01-01 03:41:50
问题 I'm confused about: MPMoviePlayerViewController and MPMoviePlayerController what is the best way to play a video locally in ios6? this is my code NSURL * url = [NSURL fileURLWithPath: [[NSBundle mainBundle] pathForResource: @ "17" OfType: @ "mov"]]; MoviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL: url]; [self presentMoviePlayerViewControllerAnimated: MoviePlayer]; [moviePlayer.moviePlayer play]; [[NSNotificationCenter defaultCenter] addObserver: self selector: @ selector