Data dodania Pytanie
2017-10-04 10:10 Keyboard stuck while clicking on textField to get date from DatePickerDialog »
I am using DatePickerDialog library to get date picker while clicking on time textField. However, when I click on the Trainer-2 textField which is abo...
(4) odpowiedzi
2017-10-04 08:10 Swift Initializer Mystery »
Few blocks of code: This works: import Foundation class Class1 { init(param1: String?) { print("hello") } convenience init() {...
(1) odpowiedzi
2017-10-04 06:10 Adding objects to nsmutablearray swift »
I added the string objects inside the mutablearray : let photoArray: NSMutableArray = [] for photo in media { photoArray.add("\(photo.fileName ??...
(1) odpowiedzi
2017-10-03 15:10 Location Access Request in iOS 11 »
I am requesting the user location in my app. locationManager.requestAlwaysAuthorization() This line of code should return this alert message: Ho...
(2) odpowiedzi
2017-10-03 14:10 How can I populate multiple tableview sections when the contents of the arrays are of different types? »
I'm having a bit of a polymorphism issue. I've got three arrays aList, bList and cList that contain different types of equipment "A", "B", "C". I wa...
(3) odpowiedzi
2017-10-03 12:10 How to set unsafe area background color for ios 11 »
Creating some new view controllers with xcode 9 so now I have a few safe areas to deal with. I am currently trying to do something fullproof, meaning...
(2) odpowiedzi
2017-10-03 10:10 Ambiguous use of 'initialize()' »
I am using third-party library which is implemented on objective c. I have to develop application in swift. The library code which I have to use is ...
(1) odpowiedzi
2017-10-02 22:10 How to remove spaces from a string in Swift? »
I have the need to remove leading and trailing spaces around a punctuation character. For example: Hello , World ... I 'm a newbie iOS Developer. A...
(6) odpowiedzi
2017-10-02 18:10 Setting data source and delegate crashes the app for UITableView »
New here so bear with me... I have a simple View Controller which contains a UITableView. I am not sure whether I should connect the data source and ...
(1) odpowiedzi
2017-10-02 16:10 Ambiguous reference when using selectors »
Ready to use example to test in Playgrounds: import Foundation class Demo { let selector = #selector(someFunc(_:)) func someFunc(_ word: S...
(2) odpowiedzi
2017-10-02 12:10 Access control in swift 4 »
While upgrading to Swift4 from Swift3, I got some issues related to access control. Here is the sample code. Which was there in Swift3, working fine ...
(1) odpowiedzi
2017-10-01 17:10 Can't use Swift Package Manager with my library »
I have an open source Swift camera framework called Lumina, and I would like to be able to use it with all three main iOS dependency management system...
(1) odpowiedzi
2017-10-01 16:10 Swift: how to maximize warnings in Xcode? What is the equivalent for -Wall in swiftc? »
I have a number of Swift-only framework targets within a big iOS app project. I would like to explore the strictness of Swift compiler options to unde...
(1) odpowiedzi
2017-10-01 13:10 Get specific CodingKey for KeyPath »
Consider the following object: struct User: Codable { let id: Int let email: String let name: String } Is it posible to get a specific ...
(3) odpowiedzi
2017-09-30 18:09 Custom cell is not correctly drawn when a row is inserted using insertRows(atPaths) method »
I have a custom cell, which is subclass of UITableViewCell, call it Cell. I have added a UITableViewCell through a storyboard to a tableview ( tablev...
(2) odpowiedzi
2017-09-30 17:09 Xcode 9 Autocomplete Not Working 100% - Partially Working »
This morning, Xcode 9.0 (9A235) shows a new/strange Auto Complete box that is not at all what it used to be. How do I get the full auto-complete box ...
(3) odpowiedzi
2017-09-30 03:09 How to use a generic class without the type argument in Swift? »
I want to encapsulate a generic object in another class without setting the generic type argument. I created a base Animal<T> class and defined ...
(1) odpowiedzi
2017-09-29 17:09 Matching AppKit and SpriteKit colors »
I am building a small utility app for macOS that combines SpriteKit with AppKit. Specifically, I am using an SKView as the "background" for the app wi...
(0) odpowiedzi
2017-09-29 16:09 Swift | Dismiss ViewController and Push other ViewController »
Solved it: I forgot to declare tvx.selectionDelegate = self in VC1, thats why it never executed I'v searched very long and fund two similar answers t...
(4) odpowiedzi
2017-09-29 13:09 PdfKit highlight annotation »
I'm trying to add highlight annotations to documents using PDFKit on iOS. let highlight = PDFAnnotation(bounds: selection.bounds(for: page), ...
(1) odpowiedzi
2017-09-28 20:09 Read/see More at the end of the label »
I am trying to create a read more button at the end of my label. I want it to display 3 lines by default. I am coding in swift not objective c. Only w...
(1) odpowiedzi
2017-09-28 20:09 `Branch.initSession` does not call `andRegisterDeepLinkHandler` callback when app is launched from the link »
We are using Branch to implement deep linking in our iOS app. Now if I run the application, and then try to open it through the link by branch, the br...
(1) odpowiedzi
2017-09-28 15:09 What does $0.1, $0.0, etc. mean in Swift? »
I saw a dictionary data, its value is like: var myDict = ["name": "John", "age": 28] I see a code like below: myDict.flatMap { ...
(1) odpowiedzi
2017-09-28 03:09 Modal Presentation iOS 11 »
I am presenting a modal and it used to go "under" the status bar pre - iOS 11. iOS 10: iOS 11: I would like to get it to display like it did in i...
(1) odpowiedzi
2017-09-27 20:09 Swift | DynamicTableView - Trigger Action with ImageView »
I have a DynamicTableView and every Cell has an ImageView. How do I make an Action with knowing the indexPath.row? The only way I know is to make a T...
(4) odpowiedzi
2017-09-27 15:09 View controller gets pushed with wrong frame »
This bug surfaced with iOS 11, and is related to the new, slightly taller UISearchBar provided by UISearchController. It's best explained by this very...
(0) odpowiedzi
2017-09-27 15:09 How to change inactive tabbar 'more' item textcolor and image? »
I have created a UITabBarController with seven of TabBarItem so all the icon image works fine by rendering as the original image. Now the Question is...
(1) odpowiedzi
2017-09-27 10:09 Alternative to override extension's method »
I want to extend UIView by adding some functions, and override them in any subclass of UIView that I want. I found in apple documentations that I can'...
(1) odpowiedzi
2017-09-26 21:09 Converting an array of strings to an array of concatenated strings »
Im looking for a general and functional solution to concatenate x elements of an array to a new array of strings. Beginning from the first element, fi...
(2) odpowiedzi
2017-09-26 18:09 How does this code find the memory aligned size of a Struct in swift? Why does it need binary operations? »
I am going through the Metal iOS Swift example trying to understand the triple buffering practice they suggest. This is shown inside of the demo for t...
(1) odpowiedzi
2017-09-26 13:09 TextView does not display text »
I use TextView to display a photo, everything works fine, but why, on iPhone, plus the version does not display text with photos, who knows what could...
(1) odpowiedzi
2017-09-25 16:09 Why would I ever use unowned self? »
The following pattern happens a lot in iOS apps: class MyViewController: UIViewController { let myModel = MyModel() override func viewDidL...
(3) odpowiedzi
2017-09-25 13:09 iOS11 photo library access is possible even if settings are set to "never" »
if UIImagePickerController.isSourceTypeAvailable(.photoLibrary) { let imagePicker = UIImagePickerController() imagePicker.sourceType = .photoL...
(0) odpowiedzi
2017-09-25 13:09 Extract a specific string pattern from a String (swift 2) »
I have a app which detects the text in any image user takes from the app or from existing image using OCR. This is working but if image has lots of un...
(1) odpowiedzi
2017-09-25 12:09 iOS: Dynamic Framework based on static library dependency »
I am working on creating a Dynamic Framework (Cocoa Touch Framework) that has to use a VideoKit lib as a core. Library is a .a file with a number of h...
(0) odpowiedzi