Data dodania Pytanie
2017-08-01 12:08 Multiple iOS apps with single database and single log on »
I created multiple apps in android with single database (Content provider) , single log on (which means if i login in one app it should work for all ,...
(2) odpowiedzi
2017-08-01 09:08 How to make the TouchesMoved with individual direction? »
Please share some knowledge about how to make the direction individually in touches moved. I don't need the two directions at the time. Need individua...
(0) odpowiedzi
2017-07-31 20:07 Adding multiple arrays to form one final array. Debug swift xcode »
I am trying to create a flashcard app. I successfully got the app too the point where there were 11 different arrays of flashcards and all of these ar...
(2) odpowiedzi
2017-07-31 17:07 Change size of a UIImageView in storyboard »
I have a UIImageView and several UIViews in a UIViewController on my storyboard, but on a iPhone 4s, part of my UIImageView is located on another view...
(2) odpowiedzi
2017-07-31 14:07 how to change "done" button title of uiwebview keyboard toolbar »
Is there a way to change the title of the done button on the UIWebView keyboard toolbar? I have seen this question but it's about SFSafariViewContro...
(0) odpowiedzi
2017-07-31 10:07 Cannot convert generic type to generic of Any/super class »
I'm trying to understand why i'm getting error in the following code: class A <T> {} class B {} class C : B {} let a = A<C>() as A<B&...
(0) odpowiedzi
2017-07-30 22:07 Using an SKAction to call a function with parameters »
I am trying to call a function via an SKAction that takes 1 input parameter. When I declare the SKAction, I get an error: "Cannot convert value of t...
(2) odpowiedzi
2017-07-30 19:07 Swift how to sort an array of custom objects in a given order with property »
I have an array of restaurantsIds in a specific order. I make a network call to get Restaurants for each one of these ids. I am returned with all the ...
(3) odpowiedzi
2017-07-30 10:07 Is deinit called when init throws an exception? »
Consider the following example class: class SocketWrapper { let sock: Int32 init() throws { try sock = SocketWrapper.createSocket() ...
(1) odpowiedzi
2017-07-29 21:07 tableview data not showing properly in swift »
Tableview with three checkbox[in,out,absent] if click any one check box[in,out,absent] it's call the Json service and display the data in tableview...
(1) odpowiedzi
2017-07-29 17:07 AVAudioPlayer not playing sound when tap gesture recognizer pressed »
I am creating a flashcard app. Right now I am at the point where I can swipe left and right through each image. Each image has a sound file associat...
(3) odpowiedzi
2017-07-29 09:07 UICollection horizontally scroll, so reduce the space between cell item »
I take UICollectionView and set horizontal scroll. Now In this one image view is there, All working perfect except cell spacing. In collectionView I s...
(4) odpowiedzi
2017-07-29 08:07 Opentok: OTCameraCaptureResolutionHigh equivalent variable in swift »
I need to change the video quality of my publisher. I face a conversion problem from Objective C to Swift 3.0. Here is my Objective C code: OTPub...
(1) odpowiedzi
2017-07-29 02:07 Weird bug when compiling for release? »
This line in my code is where my app keeps crashing only upon the release build. self.setup.monthByInt = [1:"January", 2:"February", 3:"March", 4:"Ap...
(1) odpowiedzi
2017-07-29 00:07 Tap screen for sound(array of sound files), xcode and swift »
CURRENTLY - I am in the midst of building a flashcard app. The app displays an array of flash cards which the user can swipe left and right through(c...
(2) odpowiedzi
2017-07-28 18:07 Reordering cell interactively with resized imageView »
I want to be able to reorder cells in my collectionview but have the cell that is moving's image be scaled down to a smaller size for the duration of ...
(0) odpowiedzi
2017-07-28 16:07 Since inserting UITableViewAutomaticDimension returned cells are tiny »
I am working on a comment section for my app and want my cells to resize themselves automatically. If I replace UITableViewAutomaticDimension with an...
(1) odpowiedzi
2017-07-28 09:07 About strong reference cycles for closures in Swift »
I have defined a class called Person. This is my code: class Person { var closure: (() -> ())? var name: String init...
(1) odpowiedzi
2017-07-28 06:07 What is a good way to display a spinner at the bottom of a tableview when a user scrolls, but the tableview cells load slowly? »
I have a UITableView that displays some content. When the user scrolls upward, the cells below don't always load immediately. This creates an area of ...
(1) odpowiedzi
2017-07-27 23:07 Making only some rows deletable in a UITableView [Swift 3.0 - Xcode 8] »
I have an array fruit = ["Apple", "Orange", "Pear", "Kiwi"] that has Entity FOOD and is presented in an UItableView. Is there a way to make some conte...
(1) odpowiedzi
2017-07-27 18:07 Swift protocol with associatedtype (ambiguous for type lookup) »
I need to create generic function in protocol with default implementation in extension. It func should work with item as enum:RawRepresentable where R...
(1) odpowiedzi
2017-07-27 17:07 Create instance of class based on function argument »
Suppose I have three classes: import Foundation class A { init() { print("A") } } class B { init() { print("B") } ...
(1) odpowiedzi
2017-07-26 22:07 Determine 3D touch availability for the device »
I want to know if the device supports 3D Touch. I don't like to use the forceTouchCapability property of the UITraitCollection, because it may return ...
(1) odpowiedzi
2017-07-26 18:07 LGSideMenuController: Registration of several local push notifications leads to delay in screen handling »
I noticed a strange issue when I registered several local push notifications: for model in myModelArray { let calendar = Calendar.current let...
(1) odpowiedzi
2017-07-26 14:07 Is it safe to force unwrap variables that have been optionally accessed in the same line of code? »
someFunction(completion: { [weak self] in self?.variable = self!.otherVariable }) Is this always safe? I access the optional self in the beginni...
(5) odpowiedzi
2017-07-25 15:07 Xcode debug memory graph showing released object »
I've been looking in the Xcode Memory Graph tool for a project and was noticing some odd behaviour. Hoping someone might be able to explain what's goi...
(1) odpowiedzi
2017-07-25 11:07 Swift unrecognized selector sent to instance segmented control »
I trying to add selector to my UISegmentedControl. segmentedControl = UISegmentedControl(items: items) segmentedControl.layer.cornerRadius = ...
(2) odpowiedzi
2017-07-25 09:07 Swift 3: Checking if app is in background »
I need to check if the app is moved to the background. Why? Well because my app works with bluetooth and only one person can be connected to this dev...
(3) odpowiedzi
2017-07-24 23:07 Swift: How to make my character in my game only be able to jump once he hits the ground? »
I'm developing a game where my character jumps from land to land. I have everything down and done except my remaining problem is if you keep tapping t...
(2) odpowiedzi
2017-07-24 22:07 Why does `+=` not work with implicitly unwrapped optionals »
Why does += not work with implicitly unwrapped optionals, for instance: var count: Int! = 10 count = count + 10 // This works count += 10 // this doe...
(1) odpowiedzi
2017-07-24 09:07 My Xcode swift project name contains space, so while creating bridging header i need to maintain space »
My project name Crisp Air in swift language. i want to use objective c files using pods for that purpose i have created bridging header like Crisp Air...
(1) odpowiedzi
2017-07-24 00:07 In Swift 3, what is a way to compare two closures? »
Suppose you have two closures of type (Int)->() in Swift 3 and test to see if they are the same as each other: typealias Baz = (Int)->() let cl...
(2) odpowiedzi
2017-07-23 18:07 what is the difference heightForRowAt vs estimatedHeightForRowAt? »
Normally when i want set my row height then set func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { ...
(2) odpowiedzi
2017-07-23 17:07 observeValue called twice on UserDefaults »
My main view controller is added as observer for some key in UserDefault. But every time the value changed, observeValue is called twice. The stacks...
(0) odpowiedzi
2017-07-23 02:07 Timer going into negatives/not reseting »
I am trying to set a countdown timer for my app. My code works so that every time the image whiteDot is dragged and containing smallDot the countdown ...
(2) odpowiedzi