SkyFloatingLabelTextField icon indicating copy to clipboard operation
SkyFloatingLabelTextField copied to clipboard

Crashing when set title programatically

Open gour-next opened this issue 6 years ago • 7 comments

ℹ Please fill out this template when filing an issue. All lines beginning with an ℹ symbol instruct you with what info we expect. Please remove this line and all above before submitting.

Before you start, are you using the latest SkyFloatingLabelTextField release?

Issues are for feature requests, and bugs; questions should go to Stack Overflow with the tag skyfloatinglabeltextfield.

Report

What did you do?

ℹ I download this project by using Carthege. After that I assign a UItextField class name to 'SkyFloatingLabelTextField' in storyboard and reference in ViewController. After that I am going to set title on that textfield and its not working. Though I can set text and change the background color of the textfield.

What did you expect to happen?

ℹ Application should not be crashed at least.

What happened instead?

ℹ Please replace this with of what happened instead.

Environment

ℹ xcode 9.0.1, iOS 11.0

Xcode Version: SkyFloatingLabelTextField Version: Deployment Target: Base SDK: Method of Integration: CocoaPods | Carthage | Manual

Project that demonstrates the issue

ℹ Please link to a project we can download that reproduces the issue if applicable.

gour-next avatar Nov 10 '17 03:11 gour-next

Hi, do you have a reproducible example for this you could share?

k0nserv avatar Nov 23 '17 10:11 k0nserv

test.zip Here you have an example, with Xcode 9.3, the app crash when I try to set the title manually.

MauricioDomenech avatar Apr 12 '18 18:04 MauricioDomenech

Thanks, I just realised that I don't have Xcode 9.3 and cannot install it since I'm still on Sierra. What's the error you are seeing?

k0nserv avatar Apr 13 '18 08:04 k0nserv

Bump

k0nserv avatar May 28 '18 16:05 k0nserv

@k0nserv

I encounter the same scenario in Xcode 9.4.1.

This is the error I get: Unknown class SkyFloatingLabelTextField in Interface Builder file.

I installed the library through Carthage.

Another issue that's potentially related is being unable to assign the module under the Custom Class in the Interface Builder.

remingtonchan avatar Jun 21 '18 02:06 remingtonchan

@remingtonchan You should have to assing the module with Carthage I believe because Carthage imports the project as a framework

k0nserv avatar Jun 21 '18 08:06 k0nserv

@k0nserv

I drag the framework to Linked Frameworks and Libraries.

And I do not encounter an error when I reference an object of the SkyFloatingLabelTextField type.

But for the module under Custom Class in the Interface Builder, nothing shows in the drop down. Manually typing in the module name (SkyFloatingLabelTextField) also yields the same error.

EDIT:

I found out that I also cannot jump to SkyFloatingLabelTextField's definition, encountering this error:

Couldn't Generate Swift Representation:

Error (from SourceKit):
"Connection Interrupted"

EDIT 2:

I ended up copying the files under the Sources folder manually to resolve my issue.

remingtonchan avatar Jun 21 '18 23:06 remingtonchan