Data dodania Pytanie
2017-11-18 16:11 Swift - Lazy Var vs. Let when creating views programmatically (saving memory) »
I'm a beginner and I sort of understand Lazy Var vs. Let. I've noticed that it saves a ton of memory usage when using Lazy Var especially with ImageVi...
(2) odpowiedzi
2017-11-18 16:11 Swift 4 - UITextfield border radius color issue »
I'm currently experimenting with UITextfields (I'm a beginner). Right now I have set the background color of my application and set the border radius ...
(1) odpowiedzi
2017-11-18 13:11 Attribute a different value to a variable depending on the class from which you are coming (Swift) »
In my HomeClass there is a static var globalLimit: Int = 0 and i have to pass his value in other classes, this is my prepare function override func...
(1) odpowiedzi
2017-11-17 21:11 Playing multi-sampled Instruments using AudioKit, controlling ADSR envelope »
I'm trying to play instrument of several .wav samples using AudioKit. I've tried so far: Using AKSampler (with underlying AVAudioUnitSampler) –...
(2) odpowiedzi
2017-11-17 12:11 Show text cursor on drag and drop in UITextView »
I'm implementing drag and drop in my app. One of the main screens where drag and drop will be applied (mostly drop) is in a UITextView. I've added a...
(1) odpowiedzi
2017-11-17 02:11 Swift - First UIView Controller not responding after calling popviewcontroller() from second »
Steps: 1. Navigating from first ViewController ViewController1 to second ViewController TamilVowelsViewController by clicking button1 2. User clicks o...
(0) odpowiedzi
2017-11-16 21:11 How to animate with textures of different sizes in SpriteKit »
I'm trying to animate a walking character's dead but the dying sprites are different on proportion than the walking ones. First I create a SKSpriteNo...
(0) odpowiedzi
2017-11-16 08:11 How safe it is to use third party FRP frameworks for long running project knowing that swift is constantly being changed? »
Background: I need to start working on project which we are hoping to maintain it for long time (Basically reusable components which will be reused i...
(1) odpowiedzi
2017-11-16 07:11 Programmatically create entity/table using CoreData and insert values into that entity in Swift 3 for iOS »
I have been trying to find a way to programmatically create the database entity/table at runtime in Swift 3 for iOS platform. Please explain the proce...
(1) odpowiedzi
2017-11-15 16:11 Core Data batch update »
I am trying to run a batch update on selected objects in my Core Data database (SQLite) but my request returns 0 items updated (no error message). My ...
(1) odpowiedzi
2017-11-15 07:11 Swift 3.0: Type of Expression is ambiguous without more context? »
private func makeRequest<T where T:MappableNetwork>(method method: Alamofire.Method, url: String, parameters: [String: ...
(1) odpowiedzi
2017-11-15 07:11 AudioKit: Can I disable an AKMicrophone without calling AudioKit.stop()? »
I've got an app with two features. One plays an AKMetronome and allows background playback when the app is not in the foreground. The other is a tuner...
(1) odpowiedzi
2017-11-14 23:11 Fixing or avoiding memory leak in default third party library »
I developed an app that includes the ability to preview the subdivision results of a 3D model on the fly. I have my own catmull clark subdivision func...
(1) odpowiedzi
2017-11-14 17:11 Use Swift's Encodable to encode optional properties as null without custom encoding »
I want to encode an optional field with Swift's JSONEncoderusing a struct that conforms to the Encodable protocol. The default setting is that JSONEn...
(0) odpowiedzi
2017-11-14 13:11 Filtering audio in AudioKit »
What i need to do: record audio file; as it's record from iPhone/iPad microphone it can be quiet, so i need to filter it to make it louder; save fil...
(1) odpowiedzi
2017-11-14 12:11 Why a struct declared by let can be changed? »
In the following code, 'ptr' is a struct declared by let, but its member variable 'pointee' could be changed, Why? let ptr = UnsafeMutablePointer...
(4) odpowiedzi
2017-11-14 06:11 Facebook SDK version 4.28.0, App Invites is deprecated »
Facebook SDK version 4.28.0, some products will sunset With the release of the Facebook SDK version 4.28.0, App Invites is deprecated. It will b...
(0) odpowiedzi
2017-11-13 23:11 How to log audio levels in ios without actually recording audio files? »
I am building an app in Swift 2, and trying to log the values of the noise in the room every few seconds. However, I know that my app is also saving t...
(0) odpowiedzi
2017-11-13 23:11 Getting values out of view model structs »
I'm pretty new to swift. Currently, I'm attempting to create a view screen programmatically in Swift 4. The screen is supposed to have a number of ima...
(1) odpowiedzi
2017-11-13 20:11 How to handling login redirects back to app from multiple social login accounts swift? »
I am making an app that allows user to login from different platforms such as google, Facebook , twitter etc. In the App delegate we have to implement...
(1) odpowiedzi
2017-11-13 19:11 Swift 4 : Set Different Date and Time »
I know how to get local date and time, but what I want to do is getting the date and time from different places. For example, I want to find out what ...
(3) odpowiedzi
2017-11-13 18:11 Local Notification not firing in IOS 11 swift4 »
My app works perfectly on ios 10 but on ios 11 it does not push local Notification. Is there any error in my code?. I have searced a lot but couldn't ...
(0) odpowiedzi
2017-11-13 17:11 Multiple enum implementing protocols questions »
I defined enums as confirming to a protocol Eventable: protocol Eventable { var name: String { get } static var all: [Eventable] { get } } e...
(2) odpowiedzi
2017-11-12 21:11 How does cString(using: .utf8) and withUnsafeFileSystemRepresentation(_:) differ from each other? »
Consider the following code snippet: let url = FileManager.default.homeDirectoryForCurrentUser let cString1 = url.absoluteString.cString(using: .utf...
(1) odpowiedzi
2017-11-12 19:11 best way to detect if node touch the frame »
Im building some game with SpriteKit that include balls as SKShapeNode. I create a class that define the balls and their properties (including SKPhysi...
(1) odpowiedzi
2017-11-12 10:11 CLLocation object in swift with latitude and longitude »
I would try to set the latitude and the longitude property of a CLLocation object but I get this error on running: Cannot convert CLlocation objec...
(1) odpowiedzi
2017-11-12 02:11 swift server side server socket error »
I'm suffering from server problem on both perfect and vapor .. The server working for only one time , and once after i update the project and rebuild...
(2) odpowiedzi
2017-11-11 12:11 Should I dealloc a nonnull property; and if so, how? »
I'm exposing a few properties from an Objective-C project to Swift (based on this repo), but have no experience in Objective-C, so I'm rather out of m...
(2) odpowiedzi
2017-11-11 05:11 FCM Push notification not working in iOS 11 »
I need to handle push notification and thats done with lower version of ios but in ios 11 never receive any push notification. i using Firebase Cloud ...
(3) odpowiedzi
2017-11-11 05:11 How can I reload new JSON data from the same site in Swift? »
basically i am making an app that pulls a number from online (using json) and what i want to know is how i can reload that data every 5 seconds or so....
(1) odpowiedzi
2017-11-10 08:11 Swift ObjectMapper - array mapping »
I have a JSON response like: { total_count: 155, size: 75, authors: [{ name: "test1" id: 1 ...
(2) odpowiedzi
2017-11-10 05:11 Module compiled with Swift 4.0 cannot be imported in Swift 3.2.2: AudioKit »
I have just updated xCode to the latest version, and am getting the error when trying to build. "Module compiled with Swift 4.0 cannot be imported in...
(3) odpowiedzi
2017-11-10 03:11 iOS 11.1 feature in Xcode 9.0 »
(This is based on an issue here: https://github.com/dokun1/Lumina/issues/44) Consider the following function: fileprivate var discoverySession: AVCa...
(1) odpowiedzi
2017-11-09 06:11 When are Realm notifications delivered to main thread after writes on a background thread? »
I'm seeing crashes that either shouldn't be possible, or are very much possible and the documentation just isn't clear enough as to why. UPDATE: Alt...
(1) odpowiedzi
2017-11-09 05:11 Any tips for keeping bluetooth apps running in background on iOS? »
I'm building an iPhone app which communicates with a BLE peripheral. I take a reading from the device and do some small computations 10 times a second...
(1) odpowiedzi