How to get names of classes inside a jar file?

How to get names of classes inside a jar file?

objective c 클래스를 swift에서 사용하는 경우를 설명

나의 점수는 9/10

참고 ) https://stackoverflow.com/a/24034488/3151712

Posting the answer if it helps some one facing the same issue.

I found that a pretty straight forward solution for How to do this is given in the iOS Developer Library. Please refer to the following link:

https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-XID_75

Apple Doc says:

To import a set of Objective-C files in the same app target as your Swift code, you rely on an Objective-C bridging header to expose those files to Swift. Xcode offers to create this header file when you add a Swift file to an existing Objective-C app, or an Objective-C file to an existing Swift app.

So I created MyApp-Bridging-Header.h file and just added the following line:

#import "MyModel.h"

Now it lets me use the model in my ViewController.swift as follows:

var myModel = MyModel()
myModel.name = "My name"
myModel.dobString = "11 March,2013"
println ("my model values: Name: myModel.name and dob: myModel.dobString")

FYI to anyone who is trying to figure this out. If you have to create the bridging file from scratch, you also have to specify a path to it in Build Settings > Swift Compiler > Objective-C Bridging Header.

objective c 클래스를 swift에서 사용하는 경우를 설명

나의 점수는 9/10

참고 ) https://stackoverflow.com/a/24034488/3151712

Posting the answer if it helps some one facing the same issue.

I found that a pretty straight forward solution for How to do this is given in the iOS Developer Library. Please refer to the following link:

https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-XID_75

Apple Doc says:

To import a set of Objective-C files in the same app target as your Swift code, you rely on an Objective-C bridging header to expose those files to Swift. Xcode offers to create this header file when you add a Swift file to an existing Objective-C app, or an Objective-C file to an existing Swift app.

So I created MyApp-Bridging-Header.h file and just added the following line:

#import "MyModel.h"

Now it lets me use the model in my ViewController.swift as follows:

var myModel = MyModel()
myModel.name = "My name"
myModel.dobString = "11 March,2013"
println ("my model values: Name: myModel.name and dob: myModel.dobString")

FYI to anyone who is trying to figure this out. If you have to create the bridging file from scratch, you also have to specify a path to it in Build Settings > Swift Compiler > Objective-C Bridging Header.

objective c 클래스를 swift에서 사용하는 경우를 설명

나의 점수는 9/10

참고 ) https://stackoverflow.com/a/24034488/3151712

Posting the answer if it helps some one facing the same issue.

I found that a pretty straight forward solution for How to do this is given in the iOS Developer Library. Please refer to the following link:

https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-XID_75

Apple Doc says:

To import a set of Objective-C files in the same app target as your Swift code, you rely on an Objective-C bridging header to expose those files to Swift. Xcode offers to create this header file when you add a Swift file to an existing Objective-C app, or an Objective-C file to an existing Swift app.

So I created MyApp-Bridging-Header.h file and just added the following line:

#import "MyModel.h"

Now it lets me use the model in my ViewController.swift as follows:

var myModel = MyModel()
myModel.name = "My name"
myModel.dobString = "11 March,2013"
println ("my model values: Name: myModel.name and dob: myModel.dobString")

FYI to anyone who is trying to figure this out. If you have to create the bridging file from scratch, you also have to specify a path to it in Build Settings > Swift Compiler > Objective-C Bridging Header.

Swift: Firebase 3 – How to Load Messages (Ep 9)

my review point is 9/10

firebase 에 관해 쉽게 접근할수 었었다.

https://youtu.be/cw0gLZHJOiE?t=2m   view controller를 아래로 내려가게 하면서 닫고 새로운 view controller가 옆에서 나오게 하는 작업 ( dismissViewControllerAnimated )

https://youtu.be/cw0gLZHJOiE?t=12m15s   xcode console에서 obj 값을 출력 ( po obj이름 )

https://youtu.be/cw0gLZHJOiE?t=12m37s   FIRAuth를 이용해서 uid를 구하는 방법 , timestamp 만드는 예시 ( FIRAuth.auth().currentUser.uid , NSDate().timeIntervalSince1970 )

https://youtu.be/cw0gLZHJOiE?t=17m30s   firebase database에서 데이터 가져오기

https://youtu.be/cw0gLZHJOiE?t=20m17s   dictionary로 되어있는 정보를 이용 obj를 만드는 쉬운 방법 ( setValuesForKeysWithDictionary ) 

https://youtu.be/cw0gLZHJOiE?t=22m31s   firebase작업은 다른 background thread에서 작동한다. main queue에 update하는 경우 ( dispatch_async , dispatch_get_main_queue  )

Swift: Firebase 3 – How to Load Messages (Ep 9)

my review point is 9/10

firebase 에 관해 쉽게 접근할수 었었다.

https://youtu.be/cw0gLZHJOiE?t=2m   view controller를 아래로 내려가게 하면서 닫고 새로운 view controller가 옆에서 나오게 하는 작업 ( dismissViewControllerAnimated )

https://youtu.be/cw0gLZHJOiE?t=12m15s   xcode console에서 obj 값을 출력 ( po obj이름 )

https://youtu.be/cw0gLZHJOiE?t=12m37s   FIRAuth를 이용해서 uid를 구하는 방법 , timestamp 만드는 예시 ( FIRAuth.auth().currentUser.uid , NSDate().timeIntervalSince1970 )

https://youtu.be/cw0gLZHJOiE?t=17m30s   firebase database에서 데이터 가져오기

https://youtu.be/cw0gLZHJOiE?t=20m17s   dictionary로 되어있는 정보를 이용 obj를 만드는 쉬운 방법 ( setValuesForKeysWithDictionary ) 

https://youtu.be/cw0gLZHJOiE?t=22m31s   firebase작업은 다른 background thread에서 작동한다. main queue에 update하는 경우 ( dispatch_async , dispatch_get_main_queue  )