Data dodania Pytanie
2017-12-09 23:12 Exclude Swift Class from Bridging Header »
In a Swift project that has mixed Obj-C and C++, I have a class that extends the class belonging to a 3rd party framework. When I compile the project,...
(0) odpowiedzi
2017-12-07 11:12 Detect device from extension file (Swift) »
How can I place my code to identify the device in the Extension file? if UIDevice().userInterfaceIdiom == .pad { switch UIScreen.main.nativeB...
(1) odpowiedzi
2017-12-02 07:12 How to escape from the bracket when writing Objective-C with Xcode? »
I find writing Objective-C with Xcode sometimes could be painful when trying to escape from the bracket, like I have to use the mouse or the directio...
(2) odpowiedzi
2017-12-01 11:12 Xcode Memory Graph Debugging Icon not showing »
I've recently started working on an existing objc project and wanted to check the memory graph debugging tool. As I started a debugger with the app I ...
(0) odpowiedzi
2017-12-01 10:12 How to expose your project code to a Xcode playground when using cocoapods? »
In blog posts like https://useyourloaf.com/blog/adding-playgrounds-to-xcode-projects/, or the kickstarter source code http://github.com/kickstarter/io...
(1) odpowiedzi
2017-11-29 13:11 Understanding breakpoints and threads in swift »
I am trying to wrap my head around debugging and threads in Swift/Xcode. I have added a breakpoint to the beginning of a method and in the callstack, ...
(1) odpowiedzi
2017-11-27 23:11 Can I force the compiler to fail when some protocol functions change their signature? »
Is there a way to mark some Swift functions as implementing some protocol functions so that if the protocol's signature changes, the compiler can mark...
(3) odpowiedzi
2017-11-27 15:11 ld: framework not found libpq »
Im making a iOS app and have to connect to a PostgreSQL database without web service (connect directly with the database). I started my journey from h...
(1) odpowiedzi
2017-11-25 01:11 sqlite3_open works in swift playground not swift app »
when I run the following code in swift playground it returned success. When I copied it to my Xcode project it returned failure. I figure it has som...
(1) odpowiedzi
2017-11-23 17:11 Error Message "Xcode alone is not sufficient on Sierra" »
I'd like to install openCV to vectorize image, but there's a series error message regarding Xcode and Ruby. First, I use terminal to install openCV, ...
(2) odpowiedzi
2017-11-22 11:11 Why my #selector is not working? »
I have a function: @objc func handleLongPress(data: SkelbimasModel, _ gestureRecognizer:UIGestureRecognizer){ if gestureRecognizer.state != .be...
(2) odpowiedzi
2017-11-21 09:11 Xcode "Analyze" message confusion »
I have inherited an old Objective C project which is not using ARC, and due to third party library uses, can use ARC. I'm attempting to resolve a num...
(2) odpowiedzi
2017-11-21 05:11 App crashing on launch in iPhone x? »
I have developed an app with swift 4 & Xcode 9. Whenever i launch the app its crashes. It does not give any error on Console. I studied it that i...
(5) odpowiedzi
2017-11-15 06:11 Can I write files into a HTML file using Xcode and then load it on a web view? »
I have a file named editor.html as of right now. Its static and loads the HTML content onto the web view whenever it is called. But as my HTML code (...
(1) 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 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-07 11:11 How to Delete contents of file using swift 4.0 language »
I would just like to know the code to delete the contents of the existing file in a directory ...
(2) odpowiedzi
2017-11-07 08:11 Google Banner Ad is not displaying in Iphone x »
please help me if anyone know it, its not displaying actual ad, just showing test ad, i am trying to display in simulator, is this not display in ip...
(1) odpowiedzi
2017-11-06 11:11 AVCaptureDevice isFlashModeSupported deprecated iOS 10 »
I am using AVCaptureDevice's instance method "isFlashModeSupported" as below: NSArray *captureDeviceType = @[AVCaptureDeviceTypeBuiltInWideAngleCamer...
(2) odpowiedzi
2017-11-05 10:11 Application name on UILabel »
I would like to put application name on UILabel. I have found how to put App version or App build using <<APP_VERSION>> or <<APP_BU...
(1) odpowiedzi
2017-11-05 06:11 Creating a pixel buffer Objective-C »
I want to create an NSOpenGLPixelBuffer for offscreen rendering. For now, I'm even unable to init it. Here's the code: NSOpenGLPixelFormatAttribute a...
(2) odpowiedzi
2017-11-03 13:11 Add two coordinates in a button function to launch mapKit and start navigation between two points (Swift) »
I'm using this class import UIKit import CoreLocation import GoogleMaps import GooglePlaces import SwiftyJSON import Alamofire import MapKit class ...
(1) odpowiedzi
2017-11-03 09:11 NSDictionary find keyPath »
I have a random dictionary, I want to iterate over all objects that are inside that dictionary. Is there a way to find keyPath of object that is insid...
(1) odpowiedzi
2017-11-01 20:11 Image for Navigation Bar with Large Title iOS 11 »
AppStore app has an icon with an image on the right side of the NabBar with Large Title: Would really appreciate if anyone knows how to implement it...
(1) odpowiedzi
2017-11-01 13:11 How can I check the built-in function implementation in Objective-C? »
I would like to ask if there is a possibility to check a built-in function implementation in Xcode IDE. I mean - is there something like CTRL + [click...
(3) odpowiedzi
2017-11-01 09:11 UITableView button image disappears while scrolling »
I have a UITableView (like FaceBook post where I want to like, share, comment). When I click one like button it should turn to some other image and al...
(4) odpowiedzi
2017-10-31 10:10 Override font in size class programmatically »
I have font of an testLabel as Helvetica Neue 12.0 in compact width and compact height class, which I set on the storyboard. I did this in viewWillA...
(1) odpowiedzi
2017-10-25 13:10 Swift developed code not working in Xcode 8.x or Xcode 7.x »
When I open swift2.3 developed project in Xcode 8.x (8.1,8.2.1,8.3.3)it is showing lots of errors of 3rd party files. I did below actions I do pod ...
(1) odpowiedzi
2017-10-23 17:10 Why can't an @IBOutlet be assigned let instead of var in Swift? »
I'm following a tutorial on Swift and I noticed that the author uses var instead of let when declaring an @IBOutlet variable. So I became curious as ...
(5) odpowiedzi
2017-10-23 17:10 Macbook crashes when compiling app »
When compiling my project the compiler gets stuck on this class, after about 5 minutes of attempting to build I get a message telling me I'm out of sy...
(1) odpowiedzi
2017-10-22 23:10 Failed to obtain sandbox extension for path Swift playground error »
I am trying to parse data from an API using JSON and get the following error: Failed to obtain sandbox extension for path=/var/folders/4g/g8pv7pms3_...
(1) odpowiedzi
2017-10-22 12:10 watchOS 4 contentFrame for multiple interface controller pages »
I have an Apple Watch app which consists of a main page that has a table view. When selecting a row, I am presenting some InterfaceControllers as page...
(0) odpowiedzi
2017-10-22 09:10 Why private is unaccessible to the extension? »
Here is my ViewController.swift file: class ViewController: UIViewController { private var myInt = 10 } extension ViewController { func prin...
(1) odpowiedzi
2017-10-21 05:10 Unrecognised selector crash when assigning delegate »
I am using NSXMLParser to parse xml responses from a card processor. This code has been running ok for afew years until upgrading to xcode 9 and runni...
(1) odpowiedzi
2017-10-18 12:10 XCode 9 is being crashed on opening all storyboard files »
I have tried following solutions to fix this issue removed derive data clean build create new storyboard file ...
(2) odpowiedzi