Profile Photo
hey guys! I am using a custom transition animation to transition between view controllers. Here is the code   extension UIViewController {     func presentDetail(_ viewControllerToPresent: UIViewController) {         let transition = CATransition()         transition.duration = 0.3         transition.type = CATransitionType.push        … (Show more)
in Cocoa Touch
Profile Photo
hello everyone, i'm new at coding and if possible i need help with my app. i'm trying to perform a segue from a button inside a custom cell to another VC. The button inside the cell is querying data from Firebase and grabbing the results from a query and using them to do a bigger query, then it needs to send the data in another VC. Every label… (Show more)
in Swift
Profile Photo
A closure insists on having a function with the signature:   (_) -> _  I don't understand what this means. I thought it would be the same as (Any) -> Any, but the compiler won't accept the function I'm trying to use, which looks like (T) -> Range<T> . The generic T has been declared as Comperable.
in Swift
Profile Photo
Hi everyone, as usual I'll start saying that I'm a newbie (even if I'm an oldie ), so forgive me if I can't explain myself in a correct technical way.   I'm currently learning Swift and somehow I've created a game. I would like to know how can I make the combo/bonus little balloon views that other games present when the user obtain point… (Show more)
in Cocoa Touch
Profile Photo
I created a tableview using custom cell. I want reload the target cell, let's say [section = 0, row = 0], and use the UITableView.reloadRows method. let indexPath = IndexPath.init(row: 0, section: 0)… (Show more)
in Getting Started
Profile Photo
Project Information:   I have three views: 'Main, AddTask, and TaskTable' and three view controllers: 'MainVC, AddTaskVC, TaskTableVC'. My 'Main' view has an embedded 'UITableView' which is 'TaskTable'. My 'Main' view also has a button that presents a modal view which is 'AddTask'. My 'AddTask' view has a button that dismisses itself. My… (Show more)
in Swift
Profile Photo
Hello, How to get bluetooth device connect/disconnect from setting event in project in Objective-C or Swift? Can you help me to get this event? Thanks. Tushar Ramoliya
in Developer Forums
Profile Photo
Xcode 11 Beta 4 Crashes when clicking on the Swift file from the left panel(For SwiftUI or NonSwiftUI projects Both). It happens in both cases(Creating a new project or using the existing one). Example: 1. Open a New or existing Xcode Swift Project(SwiftUI or Non-SwiftUI) 2. Click on the. Swift file on the left panel 3. Boom!! Xcode… (Show more)
in Xcode IDE and Editor
Profile Photo
After update the Xcode 11 to beta 4, I can't to start it. All time I try it chases. I am using Catalina beta 4 in my MacBook Pro 15.   Ssomeone knows what do I have to do?
in Xcode IDE and Editor
Profile Photo
Hi everyone,   I'm building iPhone application on iOS 11.0 and over, Swift 5. The application needs to open iPhone settings top screen so I found code like   UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!, options: [:], completionHandler: nil)   this code work well but it's open application specific setting screen.… (Show more)
in Swift
Profile Photo
I want to write a function that takes an array of doubles and partitions them into a given number of "bins", based on their value. Obviously this would be useful for graphing the distribution of the elements of a data set. Before writing all the code myself, I'm wondering if there are some built-in features of Swift collections that might save me… (Show more)
in Swift
Load more items