Keep active cell in collectionview in one place

I'm working on a tvOS application where I want the active cell of a collectionView always in the same position. In other words, I don't want the active cell to go through my collectionView but I want the collectionView to go through my active cell. ...
more »

2017-08-17 23:08 (1) Answers

Font size too big for label in stack view

I want to use a font size of 54 pt for labels in a stack view (that's embedded in other stack views), but the labels do not adjust their size and the top of the text is cut off or not shown at all. This doesn't happen if I choose a smaller font size....
more »

2017-08-17 19:08 (1) Answers

COCOAPODS Validation i386 error

I'm trying to creat my own POD, for iOS with my codes and some external libraries and dependencies. The Example attached compiles and build the app correctly with XCODE. But when I'm about to validate with: $> pod lib lint --allow-warnings --ver...
more »

2017-08-17 16:08 (0) Answers

how to handle backspace in uitextfield

I have 6 uitextfield.And i did the autofocus. once user enter one value in one textfield.They will automatically redirect to next textfield. But i dont know how to handle the backspace .Like when user in last textfield and press backspace to delete t...
more »

2017-08-17 10:08 (4) Answers

Do not copy swift libraries with Xcode 8?

How to not automatically embed Swift dynamic libraries in Xcode 8? I've tried setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to "No" (defaults to "No" anyway) yet it still copies Swift dynamic libraries into the app bundle. I'm creating a helper app...
more »

2017-08-17 00:08 (0) Answers

Getting content from an array of type Asset

Im trying to figure out a swift code. I am using Contentful and I'm trying to drill down to get some data. When I do a print of the entry I the value below: "appHeroImages": [Contentful.Link.asset(Contentful.Asset)]] How would I get the data from ...
more »

2017-08-17 00:08 (1) Answers

Can't fetch git source through Podfile

I'm trying to include a git source in my Podfile : pod 'RBStoryboardLink', :git => '' but it gives me the following error : [!] The RBStoryboardLink pod failed to validate due to 1 error. ...
more »

2017-08-16 18:08 (1) Answers

Realm RLM Exception when calling Realm()

I am using Realm for swift 3.1 and have imported it via import RealmSwift and import Realm. When I this line is executed in my swift code I get this error let realm = try? Realm() (or ...= try! Realm()... or let r = ...) >2017-08-16 19:39:53.66...
more »

2017-08-16 14:08 (1) Answers

Completely change the identity of the project

I was going to use some ready third-party written project whose architecture i did like. By the time i am going to change the most of its code. Could someone provide what exactly should i change to completely renew the identity of this project? I gu...
more »

2017-08-16 09:08 (1) Answers

After Delete Row How To Reset Sqlite id value?

i have created sqlite database as follow NSString * sqlStmt =@"CREATE TABLE IF NOT EXISTS SONGS (ID INTEGER PRIMARY KEY AUTOINCREMENT, MOVIENAME TEXT, SONGNAME TEXT)"; after deleting row 7 in database the id values are 1,2,3,4,5,6,8,9... ...
more »

2017-08-16 09:08 (2) Answers

react-native unable to resolve module 'events'

I have created an empty project with the following command: react-native init demoProject after installing npm install -g react-native-cli then I have installed mongoDB with the following command: npm install mongodb --save In the package...
more »

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

Add line break to Xcode output

Say you have a custom object which has a custom description like so: class CustomObject { var customDescription: String { return "Title: Hello, \n Subtitle: World" } } Is there a way to have the line break \n work in the console w...
more »

2017-08-15 15:08 (1) Answers

How to keep value updated after button is pressed?

I have two view controllers, both with table views. Depending on which row you select in the first table view, the second table view cell's are filled with the subcategories of the min category you select in the initial table view. In the second ta...
more »

2017-08-15 09:08 (1) Answers

How do I use the mpi.h in XCode?

I have installed MPICH3.2 from the following the direction in given website I downloaded the tar file and in Downloads/ directory and installed using terminal.I wanted to test if my program works ...
more »

2017-08-14 21:08 (2) Answers

CocoaPod pod installed but not working

I have installed the SideMenu pod for Swift. I have run all the commands in the terminal and it says the pod has installed and there is one dependency. My podfile is as follows: source '' platform :ios, ’10....
more »

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