Value of type NSSet has no member image

I have a core data app using xcode 8.3.2 can't figure out what I am missing hopefully I am providing enough context to explain here in my tableview custom cell class class CustomerCell: UITableViewCell { @IBOutlet weak var thumb: UIImageView! @I...
more »

2017-05-20 18:05 (2) Answers

.swift viewcontroller missing (!)

In my project navigator, a .swift file that connects to a viewcontroller has an "!" next to it and says that it's "missing". When I click on the file, it shows the code for that viewcontroller, and my app works, but the title bar in the mainstoryboa...
more »

2017-05-20 18:05 (0) Answers

Xcode 8.3: Run target with input from file

I wrote a simple C++ program that requires some input to run. In the terminal I simply run in ./myProgram < fileWithData.txt. However I could not figure out how to specify and input file for the target executed in Xcode. I used the command line pr...
more »

2017-05-20 16:05 (1) Answers

Lexical or Preprocessor Issue on Xcode 8.3.2

everybody I was developing an iOS app on Xcode 8.2 with cocoapods. And I've upgraded Xcode from v8.2 to v8.3.2 and faced many warnings with corrupted path for every cocoapods framework. "Lexical or Preprocessor Issue: Non-portable path to file 'VVo...
more »

2017-05-20 16:05 (0) Answers

Shared instances and global variables

I am using the Spotify SDK and have followed the instructions from this tutorial: https://medium.com/@elonrubin/ios-spotify-sdk-swift-3-0-tutorial-b629af4b889d The guide uses this function to initialize the SpotifyPlayer: func initializeSpotifyPlaye...
more »

2017-05-20 08:05 (1) Answers

selector with argument gestureRecognizer

Argument of '#selector' does not refer to an '@objc' method, property, or initializer Problem : Above Error when i try to pass argument with selector code snippet: let gestureRecognizer = UITapGestureRecognizer(target: self, action: #selecto...
more »

2017-05-20 06:05 (3) Answers

Border has background color seeping through it

I'm setting the background color to a white border and the border is seeping through the background.I'm looking to have the blue line gone. Can you please suggest a solution to this problem? Here is my code below. And there is an image of what I'm ...
more »

2017-05-20 01:05 (1) Answers

NSOperation completionBlock retain cycle warning?

I have similar code in two parts of my app, xcode gives the warning for one but not the other. From my understanding of the documentation I think there should be no warning in either case. // In one part of my code I have this __block UploadOperatio...
more »

2017-05-19 05:05 (0) Answers

XCode 8.3 Refresh provisioning profile devices

I have added some new devices, How to refresh the provisioning profile. as XCode 8 automatically manage signing assets. I have found this Refresh devices in team provisioning profile managed by Xcode 7? but we can't do that in XCode 8.3 I don't ha...
more »

2017-05-19 04:05 (3) Answers

Where are iOS simulator files?

So because of the poor internet connect I have in China, I downloaded iOS 9.3 simulator SDK from here via multithreads web connection: devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_3-9.3.1.1460411551.dmg...
more »

2017-05-19 04:05 (3) Answers

Use SwiftyJSON to get proper data

This is my JSON data, how can I get src data in 0 in pickArray? "pickArray" : "{\"0\":{\"src\":\"https:\/\/fb-s-d-a.akamaihd.net\/h-ak-xpl1\/v\/t1.0-9\/p720x720\/18010403_1525007564199498_8009700960533638318_n.png?oh=25dbc9c1522dcfdd1d15cdd3e8c0c7da...
more »

2017-05-19 04:05 (2) Answers

Why am I unable to view values in debug area?

After adding an expression -in the debug area-: I am facing an issue, which is: when reaching the desired line (via a breakpoint), the value is always appears as "Invalid expression", with a message logged to the console: Shared Swift state fo...
more »

2017-05-18 14:05 (0) Answers

AlamofireSource doesnt load images

I want to load my image by using AlamofireSource. var images = [InputSource]() for img in arr_imgs { if(img != "") { var mimg = img.replacingOccurrences(of: "\\", with: "/", options: ....
more »

2017-05-18 14:05 (0) Answers

Check if exists phone number in String

Hey I would like to check if UITextView (maybe this could be relevant or not) contains phone number in text. I am using Swift 2.3, but if you got it in Swift 3 I will try to translate it. Should work for these inputs for exemple: "Good morning, 62...
more »

2017-05-18 10:05 (3) Answers