+ 2

what static void main

23rd Aug 2016, 11:01 AM
Nabarup Ghosh
Nabarup Ghosh - avatar
2 odpowiedzi
+ 3
Swift doesn't have main method. What do you want to know?
23rd Aug 2016, 11:27 AM
Aung Thuya
Aung Thuya - avatar
+ 1
Probably your question is 'where is main() function in swift which we had in objective-c "main.m" file'. It is changed to @UIApplicationMain attribute in swift. Further recommended read: https://stackoverflow.com/questions/24516250/what-does-uiapplicationmain-mean
29th Sep 2017, 3:29 PM
Shahan Ayyub
Shahan Ayyub - avatar