New facebook login redirect flow on iOS

As of iOS 11, I'm seeing a new login flow when using FBSDKLoginKit and FBSDKCoreKit. I realize apple's recent change(s) to how apps talk with each other re: facebook credentials mean we first have to go through safari during the authentication flow.....
more »

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

Multiple Release Environment with Xcode 9 - Swift

I have finished writing a project and released to AppStore. Now i want to duplicate the project and change Bundle ID, Signing certificates, Splash Screen, the project specific links and images used in Storyboard. Since the Model classes and business...
more »

2017-10-04 15:10 (1) Answers

iOS App displayed with grey icon in Testflight

Deploying my iOS application to Testflight results in a grey-ish app icon. All the icons are PNG files saved without transparency. In XCode 9.0 everything looks fine: In iTunes Connect the app icons seems to have the right color: Yet Testflig...
more »

2017-10-04 15:10 (1) Answers

Photopicker & FB GrapSharer issues in iOS 11

My code was working fine on iOS 10 but after updating to iOS 11 nothing seems to work. This is my code For sharing video on facebook : internal func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [Strin...
more »

2017-10-04 12:10 (0) Answers

Loop is taking too long to process

I am using following to code to arrange the array of contacts in sections (for e.g. contact with prefix "A" should show under "A" section). If there are contacts 4-5 hundred then it takes 20 sec to process. Can you please check what is issue here? ...
more »

2017-10-04 09:10 (2) Answers

Swift Initializer Mystery

Few blocks of code: This works: import Foundation class Class1 { init(param1: String?) { print("hello") } convenience init() { self.init(param1: nil) } } class SubClass1: Class1 { } let obj = SubClass1() In th...
more »

2017-10-04 08:10 (1) Answers

Adding objects to nsmutablearray swift

I added the string objects inside the mutablearray : let photoArray: NSMutableArray = [] for photo in media { photoArray.add("\(photo.fileName ?? "")") } Then I get an output like: <__NSSingleObjectArrayI 0x1c02069e0>( ( "Car", ...
more »

2017-10-04 06:10 (1) Answers

How can I stop video when user is scrolling

I have a tableView which gets data from the database. Some of the cells in my TableView contain videos in them and when we come across a video it displays properly. My issue is that if someone keeps scrolling then that video still keeps playing. I w...
more »

2017-10-03 18:10 (1) Answers

Xcode Framework Modules

I'm having an issue implementing modules for my particular build configuration. I have a bunch of dynamic frameworks that I would like to add module map files to so that they can be naturally imported into Swift without having to use Objective-C Brid...
more »

2017-10-03 17:10 (1) Answers

Starting the simulator in XCode 9 (not headless)

I am trying to run both my unit and ui tests with xcodebuild like: $ xcodebuild -scheme "MyAppScheme" -destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=11.0' build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO The problem is that th...
more »

2017-10-03 16:10 (1) Answers

Give UITextView a clickable URL link

Hi I've been on this problem for a while now, I read a couple of posts already an I can't understand how to make a clickable UITextView that sends on internet. Here is my code: func transformText(text: String, underlined: Bool, linkURL: String) ->...
more »

2017-10-03 16:10 (3) Answers

Show image in text field

I have added button in accessory view of text field. On click of this button i want show the image/icon in text of text field. How can i do this? I tried this : let fullString = NSMutableAttributedString(string: self.text ?? "") let image1Atta...
more »

2017-10-03 16:10 (0) Answers

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 keeping the unsafe area as it is (since I always display the status bar) and having the background ...
more »

2017-10-03 12:10 (2) Answers

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 'initialize' @interface VidyoClientConnector : NSObject {} +(BOOL) Initialize; +(BOOL) Set...
more »

2017-10-03 10:10 (1) Answers

Swift generic protocol function with self

I have a generic class that conforms to a delegate protocol. I want to be able to pass self in the protocol methods, but I can't figure out how. protocol BodyPartManagerDelegate: class { func doit(manager: BodyPartManager<Any>) } class B...
more »

2017-10-03 06:10 (1) Answers

How use Objective-c method in my Swift Class

Hello I want to use this method inside my swift class, already create the header, but I only manage to access the method (setApiKey). this is the code in objective c #import <Foundation/Foundation.h> @class CLQResponseHeaders, CLQError; @clas...
more »

2017-10-03 05:10 (0) Answers

Open Safari from XCTestCase

According to Apple's documentaion, I should be able to launch an app based on its bundle ID using the code below. // Open safariapp let safariApp = XCUIApplication(bundleIdentifier: "") // Launch safari app safariApp.launch() ...
more »

2017-10-02 22:10 (1) Answers