ios11

Can I apply a CIFilter to ARkit camera feed?

此生再无相见时 提交于 2019-12-18 06:51:03
问题 I'm trying to apply a blur effect to camera live steam image in ARSCNView. I have checked the WWDC videos. They only mentioned the custom rendering with Metal, but I didn't found any complete example on web. Any idea how to do that? Updated 1 I have tried to apply a filter to the background. It show incorrect orientation. How can I fix this? let bg=self.session.currentFrame?.capturedImage if(bg != nil){ let context = CIContext() let filter:CIFilter=CIFilter(name:"CIColorInvert")! let image

UIBarButtonItem will be always highlight when I click it [duplicate]

ε祈祈猫儿з 提交于 2019-12-18 05:02:53
问题 This question already has answers here : iOS UINavigationBar button remains faded after segue back (4 answers) Closed 2 years ago . - (void)viewDidLoad { [super viewDidLoad]; self.title = @"这是个bug?->"; self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:68/255.0 green:155/255.0 blue:235/255.0 alpha:1.0]; self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor]}; UIBarButtonItem *rightItem0 = [[UIBarButtonItem

iOS11废除了system之后

寵の児 提交于 2019-12-18 04:38:46
转载自 https://blog.csdn.net/u012278016/article/details/81669107 针对iOS11废除了system之后,报错:'system' is unavailable: not available on iOS的一些修改如下: 1.修改了CCFileUtils.cpp文件 参考: https://github.com/cocos2d/cocos2d-x/pull/17921/files 2.修改了AssetsManager.cpp文件 参考: http://www.cocoachina.com/bbs/read.php?tid=1725915&page=1&toread=1#tpc 3.cocos2d_lua/external/lua/Ioslib.c文件还有报错,原因是system方法在iOS11中已经被移除了, 修改: 1.添加了: #include <ftw.h> 和 int unlink_cb(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) { int rv = remove(fpath); if (rv) perror(fpath); return rv; } 2.替换 lua_pushinteger(L, system

ARKit Unable to run the session, configuration is not supported on this device

青春壹個敷衍的年華 提交于 2019-12-18 04:38:17
问题 Using ARWorldTrackingSessionConfiguration get and error on iPhone 6 plus Unable to run the session, configuration is not supported on this device What can it be? 回答1: Here is Apple's document for ARKit and device support ARKit requires an iOS device with an A9 or later processor. To make your app available only on devices supporting ARKit, use the arkit key in the UIRequiredDeviceCapabilities section of your app's Info.plist. If augmented reality is a secondary feature of your app, use the

iOS11 getUserMedia with apple web-app not working

徘徊边缘 提交于 2019-12-18 03:43:31
问题 Edit: Duplicate of How to access camera on iOS11 home screen web app? I'm running into a problem with using a apple web-app together with camera access through the getUserMedia API. I have some application that is working fine when accessed through safari, it asks for persmission to use the camera and upon approval I can see the camera feed. But if I save this same page to the home screen as an web-app this does not work anymore. There is no prompt for camera access, which seems to be the

How to change navigationBar height in iOS 11?

冷暖自知 提交于 2019-12-17 23:03:03
问题 Apparently changing the navigationBar height faced a new approach in iOS 11. in previous iOS versions it was possible to change the navigationBar height by hiding the default navigationBar and adding a new one with custom frame: self.navigationController?.setNavigationBarHidden(true, animated: false) let customNavigationBar = UINavigationBar(frame: CGRect(x: 0, y: 0, width: self.view.bounds.width, height: 64)) self.view.addSubview(customNavigationBar) But it seems that it is not working in

Shrink large title when scrolling (not UITableViewController) iOS 11

走远了吗. 提交于 2019-12-17 19:13:33
问题 I got a View Controller embedded in a Navigation Controller with prefers large titles option set to true; inside the View Controller there’s a Scroll View. I want to make the nav bar shrink when scrolling. How could I archive this? XCode 9, Swift 4, iOS 11 回答1: I have not achieved that it works using a UIScrollView but I archived that it works with other ViewControllers using a UITableView as first view. If the tableView is not the first view, the large title fails to hide automatically. You

iOS 11 search bar jumping to top of screen

纵饮孤独 提交于 2019-12-17 18:53:09
问题 I've got a UITableView in which I set its header to be a search bar. tableView.tableHeaderView = searchController.searchBar Everything works according to plan until you click it and it seemingly detaches from the tableView and jumps to the top of the screen. The tableView rows stay in place. Any reason it would do that in iOS 11 and not iOS 10? 回答1: It is encouraged to apply the new way to show search bar/search controller on iOS 11. Here is what I have done: if #available(iOS 11.0, *) {

Negative spacer for UIBarButtonItem in navigation bar on iOS 11

折月煮酒 提交于 2019-12-17 15:37:47
问题 In iOS 10 and below, there was a way to add a negative spacer to the buttons array in the navigation bar, like so: UIBarButtonItem *negativeSpacer = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil]; negativeSpacer.width = -8; self.navigationItem.leftBarButtonItems = @[negativeSpacer, [self backButtonItem]]; This no longer works on iOS 11 (the spacer becomes positive, instead of negative). I have inspected the view hierarchy of the bar

iOS 11 UISearchBar in UINavigationBar

和自甴很熟 提交于 2019-12-17 15:27:54
问题 I want to place a search bar in the new navigation bar with the new iOS 11 large titles. However, the color of the search bar is automatically applied by iOS and I can't change it. if #available(iOS 11.0, *) { let sc = UISearchController(searchResultsController: nil) navigationItem.searchController = sc navigationItem.hidesSearchBarWhenScrolling = false } The search bar get's a deep blue background, but I just want to change it to white. Setting the background color results in this: