Data dodania Pytanie
2017-02-18 21:02 Marking a symbol as undefined in iOS framework »
I'm building an iOS framework using Swift and Objective-C (have to use both of them due to other constraints). In my objective-c code, I need to use ...
(1) odpowiedzi
2017-02-18 18:02 XCode: How to change layout of views between landscape and portrait mode »
In portrait mode I have four views on top of one another from the top to the bottom of the view controller (see image). I then want to change the p...
(2) odpowiedzi
2017-02-18 06:02 Where to store API keys on Swift? »
I have a bunch of API keys and secrets (Stripe, Cloudinary etc), that are currently hard coded in my app. Where is the right place to store them? Shou...
(2) odpowiedzi
2017-02-18 04:02 Programmatically created back button does not show up in navigation bar? »
To make this simple, because of the app design I cannot use an embedded navigation controller and must instead use a manual back button on the view co...
(2) odpowiedzi
2017-02-18 00:02 CGAffineTransform disfigure UIBarButton after a few rotation »
Has anyone seen a situation when trying to animate a symmetrically shaped UIBarButton with CGAffineTransform rotation for a few times, then ended up w...
(1) odpowiedzi
2017-02-17 22:02 how to store the info and share it in facebook »
How there I'm working with an app and I suppose to share content I've already can display the screen to share in facebook but my info isn't appear, wh...
(0) odpowiedzi
2017-02-17 14:02 in Swift how do I interleave NSMutableParagraphStyle() and NSMutableAttributedString to format a string to be displayed in UITextView? »
In response to an example I posted previously, Andreas Oetjen showed a neat way to display a table of fractional and decimal numbers in textView using...
(1) odpowiedzi
2017-02-17 11:02 Setting isTranslucent to false on tabBar makes my bottom button disappear »
I have the following simple case: A UINavigationController, with a root view controller which contains a tableView spanning the whole view, and then ...
(1) odpowiedzi
2017-02-17 09:02 swift: returning a child node with the same position »
I have Two Sprite nodes in a function from a swift file. Both nodes are similar in size and position. Node2 is a child of node. When the nodes are a...
(1) odpowiedzi
2017-02-17 00:02 Make a type itself -- not its instances -- conform to a protocol »
I was wondering if it is possible in Swift to make a type conform to a protocol, so that I can treat the type itself as conforming to a protocol the w...
(0) odpowiedzi
2017-02-16 23:02 Bitwise operations in Swift, reading values from beacon data »
I need some help interpreting a formula. This is from the documentation of a beacon I am experimenting with. I have written it in Swift but I can't ge...
(1) odpowiedzi
2017-02-16 21:02 == overload for custom class is not always called »
I have a custom operator defined globally like so: func ==(lhs: Item!, rhs: Item!)->Bool { return lhs?.dateCreated == rhs?.dateCreated } And...
(1) odpowiedzi
2017-02-16 02:02 Iterating through an array of strings, fetched from MongoDB »
I'm using the MongoKitten library to fetch documents from mongoDB. I have the following document in my mongoDB: { ... foo: ["A", "B"] .....
(3) odpowiedzi
2017-02-15 22:02 Swift calling static methods: type(of: self) vs explicit class name »
In swift, an instance func can't call a static/class func without prefixing the method call with the class name. OR you can use type(of: self), e.g c...
(2) odpowiedzi
2017-02-15 08:02 How to restrict app download only from the iPhone 6S and above devices in Apple's App Store? »
The game app uses so much RAM up to 1GB ...
(0) odpowiedzi
2017-02-15 03:02 Q re: cleaning up an an array without moving indexes »
I'm attempting to complete HackerRank's Abbreviation challenge in Swift. The physics for poets of what I'm trying to determine if a given abbreviatio...
(2) odpowiedzi
2017-02-14 17:02 How to make an object spin in the air Swift 2.0 »
I have an object that I can drag and toss, and I want to make it so that when you release, it spins until it hits the ground. I'm not sure how to make...
(0) odpowiedzi
2017-02-14 16:02 Issue calling externally assigned closure from IBAction »
I have this UIView subclass: class EmptyAlbumsView: UIView { class func instanceFromNib() -> EmptyAlbumsView { return R.nib.emptyAlbumsView.f...
(1) odpowiedzi
2017-02-14 09:02 What's the correct way to create a dictionary typealias? »
If I want to define a typealias for a Dictionary, which accept String as the key, and String for the value, but I also want it to can accept nil, whic...
(2) odpowiedzi
2017-02-14 07:02 Exclude some views from middleware Vapor »
I have created the Vapor project. I have registered two views and two API's as like below. drop.get { req in return try drop.view.make("i...
(1) odpowiedzi
2017-02-13 18:02 Build failed due to Arm64 and Armv7? »
I tried to add Firebase to my iOS application, and before I added it, everything worked. Afterwords I keep getting just one error, claiming to build f...
(0) odpowiedzi
2017-02-13 14:02 Cast to right generic from array in Swift »
I have a Protocol called Composite. This protocol has an array composites: [Composite] I also have a generic subclass GenericSubclass<T>: Comp...
(0) odpowiedzi
2017-02-13 12:02 AVPlayerControllerTimeResolver instance is getting deallocated when I come from background to foreground »
Hi all I am facing a strange issue when I am playing a video my AVPlayerControllerTimeResolver instance is getting deallocated when I come from backgr...
(0) odpowiedzi
2017-02-13 02:02 In Swift, what are the semantics of subscripts yielding (or receiving) non-object types? »
The Swift book does not clearly document the semantics of non-object types in conjunction with subscripts. The most obvious example is a Dictionary w...
(1) odpowiedzi
2017-02-12 18:02 How do eliminate the "jump" in my CABasicAnimation? »
Using this code: func rotateTheView(_ aView: UIView, inClockwiseDirection isClockwise: Bool) { let multiplier = (isClockwise ? 1 : -1) let ke...
(2) odpowiedzi
2017-02-12 13:02 Convert plain string to JSON and back in Swift »
Let's say there's a JSON-string I got from server: "\"3\"" (with quotes, i.e. length == 3 here) In Android-world, I can do: gson.fromJson(json, new ...
(1) odpowiedzi
2017-02-12 12:02 Swift restore original image color after casting a tint »
I have an image, inside a UIImageView, that comes with a default color, let's say a custom grey. In my code at some point I set a different tint in t...
(1) odpowiedzi
2017-02-12 09:02 SDWebImage changing images while tableview scrolling »
There is a TableView with Cells and there is ImageView in each of them. I use SDWebImage to load images and it works fine, but when I scroll fast - I ...
(3) odpowiedzi
2017-02-12 00:02 GameCenter Leaderboard will not update after release »
GameCenter has been working fine before release when updating the high scores. Now, it has been over 24 hours and the highscores will not update at al...
(1) odpowiedzi
2017-02-11 23:02 How to make text appear on button? -SpriteKit »
I am new to SpriteKit, and I am creating a game where I have designed the main menu with sketch and apply the image to spritekit as my background imag...
(1) odpowiedzi
2017-02-11 22:02 Is there a way to use my Rust library from Swift? »
I am aware that this question has been asked before (nearly 2 years ago though), still, I'd like to encounter if there are any new methods or articles...
(0) odpowiedzi
2017-02-11 19:02 Sound playing through SKAction but not through AVAudioPlayer »
I've got a vexing problem with getting sound to play in a game but can't seem to get any output through the AVAudioPlayer. Originally this was set up ...
(2) odpowiedzi
2017-02-11 01:02 How can I convert pods WebRTC or libjingle_peerconnection to work with Swift3 »
I am currently trying to implement WebRTC for an iOS App. I found a precompiled library (WebRTC) available by pod. However there is no doc at all and ...
(0) odpowiedzi
2017-02-11 00:02 adding a pod to a universal framework library using cocoapods »
am using CocoaPods 1.2 and i have a project with 2 targets, one is the main iPhone app and the other one is cocoa touch framework library. I have no ...
(2) odpowiedzi
2017-02-10 19:02 Swift - Log all requests in mac app »
I have tried to use NSURLProtocol to log all requests in a Swift 2.3 project. However not all URL requests are being logged. Specifically all the Alam...
(2) odpowiedzi