Data dodania Pytanie
2017-09-13 17:09 Apple Mach-O Linker (ld) Error Group with Swift 3 & Xcode 9 GM »
This was running fine till GM Xcode (and iOS 11). Now I get these errors: Apple Mach-O Linker (ld) Error Group "__T0So20AVCapturePhotoOutputC12AVF...
(3) odpowiedzi
2017-09-13 12:09 Xcode 9 GM undefined symbols for architecture arm64 »
In Xcode 9's GM release, I am getting some compile-time errors for undefined symbols for architecture arm64, namely for AVFoundation with: AVCapture...
(1) odpowiedzi
2017-09-13 10:09 Detect if the device is iPhone X »
My iOS app uses a custom height for the UINavigationBar which leads to some problems on the new iPhone X. Does someone already know how to reliable ...
(9) odpowiedzi
2017-09-12 16:09 How to get response after integrating UPI using hyperlink »
In my iOS application, I need to accept payments from the user. I am using UPI for the same. I have followed the following document provided by UPI h...
(0) odpowiedzi
2017-09-12 10:09 Migrating UIWebView delegate to WKWebView delegate method »
I am working on migrating UIWebView to WKWebView. I have changed all the Delegate methods. I need WKWebView delegate methods equal to below UIWebView ...
(1) odpowiedzi
2017-09-12 08:09 Mutex alternatives in swift »
I have a shared-memory between multiple threads. I want to prevent these threads access this piece of memory at a same time. (like producer-consumer p...
(3) odpowiedzi
2017-09-11 22:09 Prevent multiple devices from using the same Firebase account through Swift »
I'm building an iOS app using Swift and Firebase for authentication that needs to avoid multiple connections of the same account from different device...
(0) odpowiedzi
2017-09-11 20:09 Swift dates are equivalent under 30 nanoseconds »
I noticed that when comparing two instances of a Swift Date with ==, they qualify as the same date when the difference in DateComponents.nanoseconds i...
(1) odpowiedzi
2017-09-11 15:09 Model relations based on a key in the attributes of a Swift Decodable object »
Given the JSON: [{ "name": "TV", "room": "Living Room" }, { "name": "LightBulb 1", "room": "Living Room" ...
(2) odpowiedzi
2017-09-10 18:09 Reuse large unchanged array in multiple swift classes without use of global variable »
I'm relatively new to iOS development, and yet this is a problem I just keep coming back to. In the last app I made, a high-school textbook definition...
(3) odpowiedzi
2017-09-10 10:09 Smooth custom paging for UIScrollView »
I have two (possibly more) views in a UIScrollView and want to use paging with it. The problem arises when I try to use the default Paging option for ...
(3) odpowiedzi
2017-09-10 09:09 How to change navigationBar height in iOS 11? »
Apparently changing the navigationBar height faced a new approach in iOS 11. in previous iOS versions it was possible to change the navigationBar heig...
(1) odpowiedzi
2017-09-09 12:09 How to check iOS 11 installed device supported ARKit? »
I am currently working on ARKit based application. I need to check ARKit supported device. I have two UIViewControllers 1)ARKit View Controller 2)...
(1) odpowiedzi
2017-09-09 10:09 Swift Protocol Extension with AssociatedType Constrained to Collection, Can't Use Subscript »
I'm trying to write a protocol that conforms to the Collection Protocol, and it has an associatedType - Object and a property object. protocol DDCDa...
(3) odpowiedzi
2017-09-09 08:09 How to create SDK for iOS in Swift? »
I have my own Xcode project which contains some controllers. I want to make its SDK, for use it in another application. In parent application it works...
(1) odpowiedzi
2017-09-08 22:09 Redeclaring members in an extension hides the original member *sometimes*. Why? »
By chance, I discovered that you can do this without the compiler complaining: extension Date { var timeIntervalSinceNow: TimeInterval { ...
(1) odpowiedzi
2017-09-08 19:09 Swift test unable to find Swift class property on Objective-C VC »
I may be in compiler hell right here. I'm implementing a Snapshot test in Swift, calling a property on an Objective-C VC, but that property is a clas...
(3) odpowiedzi
2017-09-08 10:09 Safely unwrap optional value »
I am using this code to create a new array of colors. Everything is working fine. But I don't want to force unwrap $0.color! because the app crashes...
(2) odpowiedzi
2017-09-07 20:09 In Swift, how to get estimate of String length in constant time? »
In Swift 3, you can count the characters in a String with: str.characters.count I need to do this frequently, and that line above looks like it cou...
(1) odpowiedzi
2017-09-07 07:09 Finding frameworks being linked to a project in Xcode »
I saw this question: How can I programatically get the list of frameworks and libraries included in an ios project? here, which tries to answer simila...
(1) odpowiedzi
2017-09-07 03:09 How to clear the WKBackForwardList of a WKWebView? »
It appears that the backForwardList of a WKWebView is readonly, but I've seen people so some pretty magical things to get around this. I need to figur...
(1) odpowiedzi
2017-09-07 03:09 Apple Sample Code for WatchKit Extension Background Refresh »
I've been searching for the answer to this question for quite a long time, so I think I'm willing to risk some downvotes to post it. Basically, I w...
(1) odpowiedzi
2017-09-06 23:09 Append array int to a string array »
I have a string array that displays a string on an individual line. I would like to take an int array and display on the same line. So the entries of ...
(2) odpowiedzi
2017-09-06 18:09 Unsupported Swift Version »
I am following this tutorial and am trying to get the starter project to run. When I open the project, I see these warnings: Unsupported Swift Ver...
(0) odpowiedzi
2017-09-06 16:09 UIImageView frame not animating as expected (size and origin) »
Ran into an issue with a UIView frame animation. The view should animate in both origin and size, with the size increasing and origin moving linearly ...
(2) odpowiedzi
2017-09-06 15:09 How to show one of the two ViewControllers by tapping Cancel button? »
I`ve one ViewController to which I can hit by clicking on TabBarItem or from Table View Controller B by pressing plus on navigation bar. My problem ...
(1) odpowiedzi
2017-09-06 12:09 Swift 3 functions naming convention »
I'm a little bit confused by function naming convention in Swift 3 I went through Swift 3 Guidelines and I found that method naming convention should...
(2) odpowiedzi
2017-09-05 21:09 Is it possible to push 2 separate instances of a UIViewController on a UINavigationContoller stack »
I have a generic UIViewController which has multiple uses. It can be instantiated for 6 different ways as it is designed to be very generic. Let us ca...
(1) odpowiedzi
2017-09-05 15:09 iOS app crash, error : unconditionallyBridgeFromObjectiveC NSString »
I am having a model which contains key and value. I am passing this value in a swift file as a function parameter. whenever I am trying to run the app...
(0) odpowiedzi
2017-09-05 11:09 App crashing when trying to use performSegue(withIdentifier: , sender: ) »
I am currently trying to perform a segue to a new ViewController right away if my app is opened via a notification sent from Firebase. I'm trying to...
(1) odpowiedzi
2017-09-05 01:09 Is MemoryLayout<T>.size/stride/alignment compile time? »
For reference, in C/C++, the equivalent (sizeof operator) is compile time, and can be used with template programming (Generics). I was looking throug...
(1) odpowiedzi
2017-09-04 22:09 Opposite of Swift `zip` — split tuple into two arrays »
I have an array of key-value pairs: let arr = [(key:"hey", value:["ho"]), (key:"ha", value:["tee", "hee"])] I'm splitting it into two arrays, like ...
(3) odpowiedzi
2017-09-04 14:09 Why can't I get type-specific information in my Sequence extension? »
Why does this work, where PageBreak is a NSManagedObject extension Sequence where Iterator.Element : PageBreak { var landscape: [PageBreak] { ...
(1) odpowiedzi
2017-09-04 13:09 Inheritance in Class Vs Protocol »
I am little bit messed up with the following concept: Code 1 : class New{ func abc(){ print("new class") } } class ClassNew: New { ...
(4) odpowiedzi
2017-09-04 12:09 Setting property of objective-C class from Swift »
I have a class MyClass subclassed from NSObject. It is written in Objective-C. It has a property with custom getter and setter: @interface MyClas...
(1) odpowiedzi