Can't read some swift SyntaxHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?Changing views keeps giving me attempt to present vc1 on vc whose view is not in the window hierarchyiOS Login / Sign Out Implementation in Swift

Freedom of Speech and Assembly in China

Expected maximum number of unpaired socks

The Maltese Falcon

Why is this integration method not valid?

Do copyright notices need to be placed at the beginning of a file?

Why is 'additive' EQ more difficult to use than 'subtractive'?

How did NASA Langley end up with the first 737?

Is there a simple example that empirical evidence is misleading?

Why did Jon Snow admit his fault in S08E06?

Can a UK national work as a paid shop assistant in the USA?

What is the use case for non-breathable waterproof pants?

Creating second map without labels using QGIS?

Why was this character made Grand Maester?

First Program Tic-Tac-Toe

Heat lost in ideal capacitor charging

Cardio work for Muay Thai fighters

3 prong range outlet

Finding all files with a given extension whose base name is the name of the parent directory

Why A=2 and B=1 in the call signs for Spirit and Opportunity?

Who knighted this Game of Thrones character?

Burned out due to current job, Can I take a week of vacation between jobs?

Which European Languages are not Indo-European?

...And they were stumped for a long time

How can I properly write this equation in Latex?



Can't read some swift Syntax


How to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?Changing views keeps giving me attempt to present vc1 on vc whose view is not in the window hierarchyiOS Login / Sign Out Implementation in Swift






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-3















I'm learning swift, but sometimes when i look at answers to questions and some of them are impenetrable. How do I implement the following?




If you call - [UITableView setFrame:] from - [UITableViewController
viewDidAppear:], it works:



- (void)viewDidAppear:(BOOL)animated

[self.tableView setFrame:CGRectMake(x, y, w, h)];



In order to avoid having black bars on each side of the table view,
set the background color of the application's main window to white:



[[[UIApplication sharedApplication] keyWindow] setBackgroundColor:[UIColor whiteColor]];



Do I override view did appear? what is with the -(void), and why is the self.tableView line in brackets, and what's the final line represent?










share|improve this question

















  • 4





    Before Swift, we developed with ObjectiveC. This is what it looks like :)

    – Alladinian
    Mar 23 at 23:30






  • 1





    It's Objective C, one thing you are going to want to do, is learn how to read it, even at a basic level, as many of the existing answers and solutions are written in ObjC

    – MadProgrammer
    Mar 23 at 23:35

















-3















I'm learning swift, but sometimes when i look at answers to questions and some of them are impenetrable. How do I implement the following?




If you call - [UITableView setFrame:] from - [UITableViewController
viewDidAppear:], it works:



- (void)viewDidAppear:(BOOL)animated

[self.tableView setFrame:CGRectMake(x, y, w, h)];



In order to avoid having black bars on each side of the table view,
set the background color of the application's main window to white:



[[[UIApplication sharedApplication] keyWindow] setBackgroundColor:[UIColor whiteColor]];



Do I override view did appear? what is with the -(void), and why is the self.tableView line in brackets, and what's the final line represent?










share|improve this question

















  • 4





    Before Swift, we developed with ObjectiveC. This is what it looks like :)

    – Alladinian
    Mar 23 at 23:30






  • 1





    It's Objective C, one thing you are going to want to do, is learn how to read it, even at a basic level, as many of the existing answers and solutions are written in ObjC

    – MadProgrammer
    Mar 23 at 23:35













-3












-3








-3








I'm learning swift, but sometimes when i look at answers to questions and some of them are impenetrable. How do I implement the following?




If you call - [UITableView setFrame:] from - [UITableViewController
viewDidAppear:], it works:



- (void)viewDidAppear:(BOOL)animated

[self.tableView setFrame:CGRectMake(x, y, w, h)];



In order to avoid having black bars on each side of the table view,
set the background color of the application's main window to white:



[[[UIApplication sharedApplication] keyWindow] setBackgroundColor:[UIColor whiteColor]];



Do I override view did appear? what is with the -(void), and why is the self.tableView line in brackets, and what's the final line represent?










share|improve this question














I'm learning swift, but sometimes when i look at answers to questions and some of them are impenetrable. How do I implement the following?




If you call - [UITableView setFrame:] from - [UITableViewController
viewDidAppear:], it works:



- (void)viewDidAppear:(BOOL)animated

[self.tableView setFrame:CGRectMake(x, y, w, h)];



In order to avoid having black bars on each side of the table view,
set the background color of the application's main window to white:



[[[UIApplication sharedApplication] keyWindow] setBackgroundColor:[UIColor whiteColor]];



Do I override view did appear? what is with the -(void), and why is the self.tableView line in brackets, and what's the final line represent?







ios swift xcode






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 23 at 23:27









JeremyJeremy

149116




149116







  • 4





    Before Swift, we developed with ObjectiveC. This is what it looks like :)

    – Alladinian
    Mar 23 at 23:30






  • 1





    It's Objective C, one thing you are going to want to do, is learn how to read it, even at a basic level, as many of the existing answers and solutions are written in ObjC

    – MadProgrammer
    Mar 23 at 23:35












  • 4





    Before Swift, we developed with ObjectiveC. This is what it looks like :)

    – Alladinian
    Mar 23 at 23:30






  • 1





    It's Objective C, one thing you are going to want to do, is learn how to read it, even at a basic level, as many of the existing answers and solutions are written in ObjC

    – MadProgrammer
    Mar 23 at 23:35







4




4





Before Swift, we developed with ObjectiveC. This is what it looks like :)

– Alladinian
Mar 23 at 23:30





Before Swift, we developed with ObjectiveC. This is what it looks like :)

– Alladinian
Mar 23 at 23:30




1




1





It's Objective C, one thing you are going to want to do, is learn how to read it, even at a basic level, as many of the existing answers and solutions are written in ObjC

– MadProgrammer
Mar 23 at 23:35





It's Objective C, one thing you are going to want to do, is learn how to read it, even at a basic level, as many of the existing answers and solutions are written in ObjC

– MadProgrammer
Mar 23 at 23:35












1 Answer
1






active

oldest

votes


















4














As @Alladinian mentioned, it's Objective-C. Another language you can use for iOS development.

You can get basics of language for example on wiki



Answering your question, in swift it will look like:



override func viewDidAppear(_ animated: Bool) 
super.viewDidAppear(animated)
tableView.frame = CGRect(x: x, y: y, width: w, height: h)



and



UIApplication.shared.keyWindow?.backgroundColor = UIColor.white





share|improve this answer

























  • @LeoDabus I definitely agree with you, but it missing in original code as well

    – ManWithBear
    Mar 24 at 1:17











  • Thank you kindly.

    – Jeremy
    Mar 24 at 18:47











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55319320%2fcant-read-some-swift-syntax%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














As @Alladinian mentioned, it's Objective-C. Another language you can use for iOS development.

You can get basics of language for example on wiki



Answering your question, in swift it will look like:



override func viewDidAppear(_ animated: Bool) 
super.viewDidAppear(animated)
tableView.frame = CGRect(x: x, y: y, width: w, height: h)



and



UIApplication.shared.keyWindow?.backgroundColor = UIColor.white





share|improve this answer

























  • @LeoDabus I definitely agree with you, but it missing in original code as well

    – ManWithBear
    Mar 24 at 1:17











  • Thank you kindly.

    – Jeremy
    Mar 24 at 18:47















4














As @Alladinian mentioned, it's Objective-C. Another language you can use for iOS development.

You can get basics of language for example on wiki



Answering your question, in swift it will look like:



override func viewDidAppear(_ animated: Bool) 
super.viewDidAppear(animated)
tableView.frame = CGRect(x: x, y: y, width: w, height: h)



and



UIApplication.shared.keyWindow?.backgroundColor = UIColor.white





share|improve this answer

























  • @LeoDabus I definitely agree with you, but it missing in original code as well

    – ManWithBear
    Mar 24 at 1:17











  • Thank you kindly.

    – Jeremy
    Mar 24 at 18:47













4












4








4







As @Alladinian mentioned, it's Objective-C. Another language you can use for iOS development.

You can get basics of language for example on wiki



Answering your question, in swift it will look like:



override func viewDidAppear(_ animated: Bool) 
super.viewDidAppear(animated)
tableView.frame = CGRect(x: x, y: y, width: w, height: h)



and



UIApplication.shared.keyWindow?.backgroundColor = UIColor.white





share|improve this answer















As @Alladinian mentioned, it's Objective-C. Another language you can use for iOS development.

You can get basics of language for example on wiki



Answering your question, in swift it will look like:



override func viewDidAppear(_ animated: Bool) 
super.viewDidAppear(animated)
tableView.frame = CGRect(x: x, y: y, width: w, height: h)



and



UIApplication.shared.keyWindow?.backgroundColor = UIColor.white






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 24 at 1:18









Leo Dabus

141k33293369




141k33293369










answered Mar 23 at 23:36









ManWithBearManWithBear

1,854720




1,854720












  • @LeoDabus I definitely agree with you, but it missing in original code as well

    – ManWithBear
    Mar 24 at 1:17











  • Thank you kindly.

    – Jeremy
    Mar 24 at 18:47

















  • @LeoDabus I definitely agree with you, but it missing in original code as well

    – ManWithBear
    Mar 24 at 1:17











  • Thank you kindly.

    – Jeremy
    Mar 24 at 18:47
















@LeoDabus I definitely agree with you, but it missing in original code as well

– ManWithBear
Mar 24 at 1:17





@LeoDabus I definitely agree with you, but it missing in original code as well

– ManWithBear
Mar 24 at 1:17













Thank you kindly.

– Jeremy
Mar 24 at 18:47





Thank you kindly.

– Jeremy
Mar 24 at 18:47



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55319320%2fcant-read-some-swift-syntax%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript