<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>CodeProject Latest postings for iOS</title>
    <link>https://www.codeproject.com</link>
    <description>Latest postings for iOS from CodeProject</description>
    <language>en-us</language>
    <image>
      <title>CodeProject Latest postings for iOS</title>
      <url>https://www.codeproject.com/App_Themes/Std/Img/logo100x30.gif</url>
      <link>https://www.codeproject.com</link>
      <width>100</width>
      <height>30</height>
      <description>CodeProject</description>
    </image>
    <copyright>Copyright  CodeProject, 1999-2024</copyright>
    <webMaster>Webmaster@codeproject.com (Webmaster)</webMaster>
    <lastBuildDate>Fri, 01 Sep 2023 14:19:00 GMT</lastBuildDate>
    <ttl>20</ttl>
    <generator>C# Hand-coded goodness</generator>
    <item>
      <title>PLEASE READ: How to get an answer to your question</title>
      <description>For those new to message boards please try to follow a few simple rules when posting your question.&lt;ol&gt;&lt;li&gt;&lt;b&gt;Choose the correct forum for your message&lt;/b&gt;. Posting a VB.NET question in the C++ forum will end in tears.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;&lt;b&gt;Be specific!&lt;/b&gt; Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Keep the subject line brief, but descriptive. eg "File Serialization problem"&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;&lt;b&gt;Do not remove or empty a message&lt;/b&gt; if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;If you are posting source code with your question, place it inside &amp;lt;pre&amp;gt;&amp;lt;/pre&amp;gt; tags. We advise you also check the "Encode "&amp;lt;" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums. &lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;No advertising or soliciting.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
&lt;div class="signature"&gt;cheers&lt;br /&gt;
Chris Maunder&lt;/div&gt;</description>
      <author>Chris Maunder</author>
      <link>https://www.codeproject.com/Messages/4979570/PLEASE-READ-How-to-get-an-answer-to-your-question</link>
      <pubDate>Wed, 14 Jan 2015 02:36:00 GMT</pubDate>
      <guid>3_4979570</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>IOS app for Arduino IoT</title>
      <description>Hi everyone, I hope you are doing well.&lt;br /&gt;
&lt;br /&gt;
I'm working on a project that involves Arduino microcontroller and I would like to develop an app that can control such devices. I'm using wifi as communication protocol.&lt;br /&gt;
&lt;br /&gt;
By any chance do you have any examples (simple source code) that I can use as a reference to make communication between an IOS app and Arduino?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
Regards</description>
      <author>noram wireless</author>
      <link>https://www.codeproject.com/Messages/5960074/IOS-app-for-Arduino-IoT</link>
      <pubDate>Fri, 01 Sep 2023 14:19:00 GMT</pubDate>
      <guid>3_5960074</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>Immediate help for presentation writing</title>
      <description>&lt;div class='pre-lang' id='premain751118'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode751118' class='copy-code' data-index='751118' style='visibility:hidden'&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 460 460" style="width: 16px;height:16px;" xml:space="preserve"&gt;
&lt;g&gt;
&lt;path d="M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272
    c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729
    c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z"&gt;&lt;/path&gt;
&lt;path d="M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272
    c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068
    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001
    C291.206,428.715,289.92,430,288.341,430z"&gt;&lt;/path&gt;	
&lt;/g&gt;
&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre751118' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
Hello
Friends, I am a newbie
I want to write a program that receives several inputs &lt;span class="code-sdkkeyword"&gt;from&lt;/span&gt; the user, puts the inputs &lt;span class="code-keyword"&gt;in&lt;/span&gt; an array, and by selecting a button, displays these inputs one by one &lt;span class="code-keyword"&gt;in&lt;/span&gt; the message box, that &lt;span class="code-keyword"&gt;is&lt;/span&gt;, every time I click OK on the message box, it displays the second input And it will &lt;span class="code-keyword"&gt;continue&lt;/span&gt; like &lt;span class="code-keyword"&gt;this&lt;/span&gt; until the entries entered by the user are finished, it &lt;span class="code-keyword"&gt;is&lt;/span&gt; very urgent, please help me&lt;/pre&gt;</description>
      <author>siyavash440ر 11</author>
      <link>https://www.codeproject.com/Messages/5898223/Immediate-help-for-presentation-writing</link>
      <pubDate>Sat, 10 Sep 2022 19:33:00 GMT</pubDate>
      <guid>3_5898223</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>Not Enough Storage，这堆英文是什么鬼?</title>
      <description>Not Enough Storage&lt;br /&gt;
This iPhone cannot be backed upbecause there is not enough iCloudstorage available.&lt;br /&gt;
You can manage your storage in Settings.</description>
      <author>xnny</author>
      <link>https://www.codeproject.com/Messages/5889287/Not-Enough-Storage</link>
      <pubDate>Mon, 25 Jul 2022 04:36:00 GMT</pubDate>
      <guid>3_5889287</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>Howto: Exchange data from network to mobile app</title>
      <description>Hi
&lt;br /&gt;
Just started on a test project to see how to access data on the company network in a mobile app.&lt;br /&gt;
Short I have some data logged into a SQL table that I want to display/access on a phone (both Android and iPhone).&lt;br /&gt;
&lt;br /&gt;
So inspired from something I worked on some years ago and some google'ing I made a WCF service and are trying to access it in Xamarin.&lt;br /&gt;
&lt;br /&gt;
BUT... I am now in doubt if what I am doing is the best way to do it?&lt;br /&gt;
I have just read that WCF is dead and I am not sure if Xamarin is also dead.&lt;br /&gt;
So before using to much time running in the wrong direction... &lt;br /&gt;
&lt;br /&gt;
Is WCF the best way to go, or what should I use?&lt;br /&gt;
Same with Xamarin - better alternative?&lt;br /&gt;
&lt;br /&gt;
I hope this is not to stupid a question that have been asked a zillion times and I just havn't stumpled across it....&lt;br /&gt;
&lt;br /&gt;
Thanks in advance &lt;img src="https://www.codeproject.com/script/Forums/Images/smiley_smile.gif" align="top" alt="Smile | :)" /&gt; &lt;br /&gt;
//David</description>
      <author>David_DK</author>
      <link>https://www.codeproject.com/Messages/5853624/Howto-Exchange-data-from-network-to-mobile-app</link>
      <pubDate>Mon, 10 Jan 2022 08:17:00 GMT</pubDate>
      <guid>3_5853624</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>AES-GCM 256 Encrypt &amp;amp; Decrypt in iOS Swift Sync with .Net output</title>
      <description>&lt;div class='pre-lang' id='premain751118'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode751118' class='copy-code' data-index='751118' style='visibility:hidden'&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 460 460" style="width: 16px;height:16px;" xml:space="preserve"&gt;
&lt;g&gt;
&lt;path d="M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272
    c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729
    c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z"&gt;&lt;/path&gt;
&lt;path d="M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272
    c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068
    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001
    C291.206,428.715,289.92,430,288.341,430z"&gt;&lt;/path&gt;	
&lt;/g&gt;
&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre751118' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
I want to use AES-GCM encryption of a plaintext with &lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt;key&amp;#39;&lt;/span&gt; only. The &lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt;key&amp;#39;&lt;/span&gt; will be received &lt;span class="code-sdkkeyword"&gt;from&lt;/span&gt; backend (.net), &lt;span class="code-keyword"&gt;in&lt;/span&gt; webservice response. The same key will be used later &lt;span class="code-keyword"&gt;in&lt;/span&gt; backend &lt;span class="code-keyword"&gt;as&lt;/span&gt; well to decrypt the encrypted &lt;span class="code-sdkkeyword"&gt;value&lt;/span&gt;.

I have used extension &lt;span class="code-keyword"&gt;as&lt;/span&gt; follwoing

To generate &lt;span class="code-keyword"&gt;string&lt;/span&gt; to Symetric key

extension SymmetricKey {
init(&lt;span class="code-keyword"&gt;string&lt;/span&gt; keyString: &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt;, size: SymmetricKeySize = .bits256) throws {
guard &lt;span class="code-keyword"&gt;var&lt;/span&gt; keyData = keyString.data(&lt;span class="code-keyword"&gt;using&lt;/span&gt;: .utf8) &lt;span class="code-keyword"&gt;else&lt;/span&gt; {
  print(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Could not create base64 encoded Data from String."&lt;/span&gt;)
  &lt;span class="code-keyword"&gt;throw&lt;/span&gt; CryptoKitError.incorrectParameterSize
}

&lt;span class="code-sdkkeyword"&gt;let&lt;/span&gt; keySizeBytes = size.bitCount / &lt;span class="code-digit"&gt;8&lt;/span&gt;
keyData = keyData.subdata(&lt;span class="code-keyword"&gt;in&lt;/span&gt;: &lt;span class="code-digit"&gt;0&lt;/span&gt;..&amp;lt;keySizeBytes)

guard keyData.count &amp;gt;= keySizeBytes &lt;span class="code-keyword"&gt;else&lt;/span&gt; { &lt;span class="code-keyword"&gt;throw&lt;/span&gt; CryptoKitError.incorrectKeySize }
self.init(data: keyData)
} }

Encryption &amp;amp; Decryption code snipet:

func aesgcmEncryptDecrypt() {
        &lt;span class="code-sdkkeyword"&gt;let&lt;/span&gt; str : &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt; = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;FwhXRYJ$xLf?^Kh6_&amp;amp;YfTJ%RuG+EqcTY"&lt;/span&gt;    
        &lt;span class="code-keyword"&gt;var&lt;/span&gt; key : SymmetricKey = SymmetricKey(size: .bits256)
        &lt;span class="code-keyword"&gt;do&lt;/span&gt;{
            key = &lt;span class="code-keyword"&gt;try&lt;/span&gt; SymmetricKey(&lt;span class="code-keyword"&gt;string&lt;/span&gt;: str)
        }&lt;span class="code-keyword"&gt;catch&lt;/span&gt;{        
        }
        &lt;span class="code-sdkkeyword"&gt;let&lt;/span&gt; plain = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;HOW ARE YOU?"&lt;/span&gt;
        &lt;span class="code-sdkkeyword"&gt;let&lt;/span&gt; nonce = try! AES.GCM.Nonce(data: Data(base64Encoded: &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;fv1nixTVoYpSvpdA"&lt;/span&gt;)!)
        &lt;span class="code-sdkkeyword"&gt;let&lt;/span&gt; tag = Data(base64Encoded: &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;e1eIgoB4+lA/j3KDHhY4BQ=="&lt;/span&gt;)!
        &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt; Encrypt&lt;/span&gt;
        &lt;span class="code-sdkkeyword"&gt;let&lt;/span&gt; sealedBox = try! AES.GCM.seal(plain.data(&lt;span class="code-keyword"&gt;using&lt;/span&gt;: .utf8)!, &lt;span class="code-keyword"&gt;using&lt;/span&gt;: key, 
        nonce: nonce, authenticating: tag)
        &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt; Decrypt&lt;/span&gt;
        &lt;span class="code-sdkkeyword"&gt;let&lt;/span&gt; sealedBoxRestored = try! AES.GCM.SealedBox(combined: sealedBox.combined!)
        &lt;span class="code-sdkkeyword"&gt;let&lt;/span&gt; decrypted = try! AES.GCM.open(sealedBoxRestored, &lt;span class="code-keyword"&gt;using&lt;/span&gt;: key, 
        authenticating: tag)
        Swift.print(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Combined:\n\(sealedBox.combined!.base64EncodedString())\n"&lt;/span&gt;)
        Swift.print(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Cipher:\n\(sealedBox.ciphertext.base64EncodedString())\n"&lt;/span&gt;)
        Swift.print(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Nonce:\n\(nonce.withUnsafeBytes { 
            Data(Array($0)).base64EncodedString() })\n"&lt;/span&gt;)
        Swift.print(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Tag:\n\(tag.base64EncodedString())\n"&lt;/span&gt;)
        Swift.print(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Decrypted:\n\(String(data: decrypted, encoding: .utf8)!)\n"&lt;/span&gt;)
    }
Our(generated &lt;span class="code-sdkkeyword"&gt;from&lt;/span&gt; &lt;span class="code-keyword"&gt;this&lt;/span&gt; code &amp;amp; .Net code) encrypted text &lt;span class="code-keyword"&gt;is&lt;/span&gt; not matching. Anyone can help me, what I am doing wrong, detailing will be more helpful. Basically I was looking &lt;span class="code-keyword"&gt;for&lt;/span&gt; saloution &lt;span class="code-keyword"&gt;in&lt;/span&gt; Objective-C but I did not &lt;span class="code-keyword"&gt;get&lt;/span&gt; any supported library &lt;span class="code-keyword"&gt;for&lt;/span&gt; Objective-C.&lt;/pre&gt;</description>
      <author>Bb M</author>
      <link>https://www.codeproject.com/Messages/5818644/AES-GCM-256-Encrypt-amp-Decrypt-in-iOS-Swift-Sync</link>
      <pubDate>Sat, 03 Jul 2021 22:18:00 GMT</pubDate>
      <guid>3_5818644</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>GetComputerObjectNameW Win32 equivalent iOS API</title>
      <description>Hi All,&lt;br /&gt;
&lt;br /&gt;
There is GetComputerObjectNameW win32 api at below link. Could someone tell me what is equivalent api. I want to use it for iOS C objective program.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.microsoft.com/en-us/windows/win32/api/secext/nf-secext-getcomputerobjectnamew"&gt;GetComputerObjectNameW function (secext.h) - Win32 apps | Microsoft Docs&lt;/a&gt;[&lt;a href="https://docs.microsoft.com/en-us/windows/win32/api/secext/nf-secext-getcomputerobjectnamew" target="_blank" title="New Window"&gt;^&lt;/a&gt;]</description>
      <author>rajneshmalik</author>
      <link>https://www.codeproject.com/Messages/5796294/GetComputerObjectNameW-Win32-equivalent-iOS-API</link>
      <pubDate>Fri, 26 Mar 2021 08:34:00 GMT</pubDate>
      <guid>3_5796294</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>macos offset value</title>
      <description>how to find macos offset value&lt;br /&gt;
&lt;br /&gt;
macos 10.15.1 = 0xA21F &lt;br /&gt;
&lt;br /&gt;
how to find other macos systems. some one tell me</description>
      <author>dsec12</author>
      <link>https://www.codeproject.com/Messages/5790091/macos-offset-value</link>
      <pubDate>Fri, 26 Feb 2021 05:58:00 GMT</pubDate>
      <guid>3_5790091</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>joke</title>
      <description>&lt;img src="https://www.codeproject.com/script/Forums/Images/smiley_laugh.gif" align="top" alt="Laugh | :laugh:" /&gt;   &lt;img src="https://www.codeproject.com/script/Forums/Images/smiley_laugh.gif" align="top" alt="Laugh | :laugh:" /&gt;</description>
      <author>Member 14908996</author>
      <link>https://www.codeproject.com/Messages/5741621/joke</link>
      <pubDate>Fri, 07 Aug 2020 09:55:00 GMT</pubDate>
      <guid>3_5741621</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>IOS</title>
      <description>Is the functionality of IOS better than android or not?</description>
      <author>Member 14908996</author>
      <link>https://www.codeproject.com/Messages/5741617/IOS</link>
      <pubDate>Fri, 07 Aug 2020 10:16:00 GMT</pubDate>
      <guid>3_5741617</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>Webview or Native App for electronic signature form</title>
      <description>Hi all,&lt;br /&gt;
I am new to IOS but my company policies to use ipad for document signing.&lt;br /&gt;
I have a question.&lt;br /&gt;
Could you guide me how to start in IOS to build this kind of app ?&lt;br /&gt;
Native or webview or hybrid ?&lt;br /&gt;
Can i use the on device signature of Ipad to capure and store it ?&lt;br /&gt;
&lt;br /&gt;
Many thanks</description>
      <author>jlmto</author>
      <link>https://www.codeproject.com/Messages/5691164/Webview-or-Native-App-for-electronic-signature-for</link>
      <pubDate>Thu, 16 Jan 2020 07:40:00 GMT</pubDate>
      <guid>3_5691164</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>What is free solution to intergrate Digital Signature to App</title>
      <description>Hi all,&lt;br /&gt;
I am looking for a solution to hire a team to write an app will load data from sql server to a form and digital signature.&lt;br /&gt;
Could you suggest me a solution ?&lt;br /&gt;
It take me a lot of pressure to do this task</description>
      <author>Member 14714062</author>
      <link>https://www.codeproject.com/Messages/5690169/What-is-free-solution-to-intergrate-Digital-Signat</link>
      <pubDate>Sun, 12 Jan 2020 17:29:00 GMT</pubDate>
      <guid>3_5690169</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>How to create folder on IOS device in Cordova</title>
      <description>Hi, &lt;br /&gt;
    I am developing ios app, in that need to create folder on ios device, i am using following code to create folder named "FT2019" ,is it my code is correct ? if correct then how see that folder on ios device physically.&lt;br /&gt;
&lt;br /&gt;
&lt;div class='pre-lang' id='premain109923'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode109923' class='copy-code' data-index='109923' style='visibility:hidden'&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 460 460" style="width: 16px;height:16px;" xml:space="preserve"&gt;
&lt;g&gt;
&lt;path d="M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272
    c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729
    c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z"&gt;&lt;/path&gt;
&lt;path d="M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272
    c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068
    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001
    C291.206,428.715,289.92,430,288.341,430z"&gt;&lt;/path&gt;	
&lt;/g&gt;
&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre109923' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
&lt;span class="code-keyword"&gt;if&lt;/span&gt; (device.platform.toLowerCase() == &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;android"&lt;/span&gt;) {
                window.resolveLocalFileSystemURL(cordova.file.externalRootDirectory, onFileSystemSuccess, onError);
            } &lt;span class="code-keyword"&gt;else&lt;/span&gt; {
                window.requestFileSystem(LocalFileSystem.PERSISTENT, &lt;span class="code-digit"&gt;0&lt;/span&gt;, onFileSystemSuccess, onError);
            }



function onFileSystemSuccess(fileSystem) {
            &lt;span class="code-keyword"&gt;var&lt;/span&gt; entry = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;"&lt;/span&gt;;
            &lt;span class="code-keyword"&gt;if&lt;/span&gt; (device.platform.toLowerCase() == &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;android"&lt;/span&gt;) {
                entry = fileSystem;
            } &lt;span class="code-keyword"&gt;else&lt;/span&gt; {
                entry = fileSystem.root;
            }
            entry.getDirectory(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;FT2019"&lt;/span&gt;, {
                create: &lt;span class="code-keyword"&gt;true&lt;/span&gt;,
                exclusive: &lt;span class="code-keyword"&gt;false&lt;/span&gt;
            }, onGetDirectorySuccess, onGetDirectoryFail);
        };



        function onError(e) {
            alert(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Fail to get folder"&lt;/span&gt;);
        };




        function onGetDirectorySuccess(dir) {
            dummyFilePath = dir.toURL();
        };


        function onGetDirectoryFail(dir) {
            alert(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Fail to get folder"&lt;/span&gt;);
        };&lt;/pre&gt;&lt;br /&gt;
&lt;div class="signature"&gt;Regards&lt;br /&gt;
   Aravindb&lt;/div&gt;</description>
      <author>Aravindba</author>
      <link>https://www.codeproject.com/Messages/5672043/How-to-create-folder-on-IOS-device-in-Cordova</link>
      <pubDate>Wed, 23 Oct 2019 10:27:00 GMT</pubDate>
      <guid>3_5672043</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>How do I unwrap an optional within a struct and use an if statement to print the optional?</title>
      <description>I am getting an error message for my use of nil and I am confused on how to properly unwrap the optional while placing it in an if statement to print out a string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    &lt;div class='pre-lang' id='premain109923'&gt;&lt;div&gt;Swift&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode109923' class='copy-code' data-index='109923' style='visibility:hidden'&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 460 460" style="width: 16px;height:16px;" xml:space="preserve"&gt;
&lt;g&gt;
&lt;path d="M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272
    c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729
    c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z"&gt;&lt;/path&gt;
&lt;path d="M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272
    c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068
    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001
    C291.206,428.715,289.92,430,288.341,430z"&gt;&lt;/path&gt;	
&lt;/g&gt;
&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre109923' style='margin-top:0;' class='lang-swift' data-language='Swift' data-allowShrink='True' data-collapse='False'&gt;
&lt;span class="code-keyword"&gt;struct&lt;/span&gt; DatingProfile{
      &lt;span class="code-keyword"&gt;var&lt;/span&gt; Name: &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt;
      &lt;span class="code-keyword"&gt;var&lt;/span&gt; Age: &lt;span class="code-sdkkeyword"&gt;Int&lt;/span&gt;
      &lt;span class="code-keyword"&gt;var&lt;/span&gt; City: &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt;
      &lt;span class="code-keyword"&gt;var&lt;/span&gt; FavoriteMovie: &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt;? 
      &lt;span class="code-keyword"&gt;var&lt;/span&gt; Hobbies: &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt;?
     
    }
    
    &lt;span class="code-keyword"&gt;let&lt;/span&gt; myDatingProfile = DatingProfile(Name: &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;William"&lt;/span&gt;, Age: &lt;span class="code-digit"&gt;30&lt;/span&gt;, City: &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;North Hollywood"&lt;/span&gt;, FavoriteMovie: &lt;span class="code-sdkkeyword"&gt;nil&lt;/span&gt; , Hobbies: &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Basketball"&lt;/span&gt;)
    
    &lt;span class="code-keyword"&gt;if&lt;/span&gt; &lt;span class="code-keyword"&gt;let&lt;/span&gt; myFavoriteMovie = FavoriteMovie = &lt;span class="code-sdkkeyword"&gt;nil&lt;/span&gt;{
      &lt;span class="code-sdkkeyword"&gt;print&lt;/span&gt;(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;\(Name) does not have a favorite movie"&lt;/span&gt;)
       
    }&lt;span class="code-keyword"&gt;else&lt;/span&gt; {
      
        &lt;span class="code-sdkkeyword"&gt;print&lt;/span&gt;(myDatingProfile.FavoriteMovie)
      }
      
    }&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
exit status 1&lt;br /&gt;
main.swift:12:26: error: use of unresolved identifier 'FavoriteMovie'&lt;br /&gt;
if let myFavoriteMovie = FavoriteMovie = nil{&lt;br /&gt;
                         ^~~~~~~~~~~~~&lt;br /&gt;
main.swift:13:12: error: use of unresolved identifier 'Name'&lt;br /&gt;
  print("\(Name) does not have a favorite movie")&lt;br /&gt;
           ^~~~&lt;br /&gt;
main.swift:17:11: warning: expression implicitly coerced from 'String?' to 'Any'&lt;br /&gt;
    print(myDatingProfile.FavoriteMovie)&lt;br /&gt;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
main.swift:17:27: note: provide a default value to avoid this warning&lt;br /&gt;
    print(myDatingProfile.FavoriteMovie)&lt;br /&gt;
          ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~&lt;br /&gt;
                                        ?? &amp;lt;#default value#&amp;gt;&lt;br /&gt;
main.swift:17:27: note: force-unwrap the value to avoid this warning&lt;br /&gt;
    print(myDatingProfile.FavoriteMovie)&lt;br /&gt;
          ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~&lt;br /&gt;
                                       !&lt;br /&gt;
main.swift:17:27: note: explicitly cast to 'Any' with 'as Any' to silence this warning&lt;br /&gt;
    print(myDatingProfile.FavoriteMovie)&lt;br /&gt;
          ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~&lt;br /&gt;
                                        as Any&lt;br /&gt;
main.swift:20:1: error: extraneous '}' at top level&lt;br /&gt;
}&lt;br /&gt;
^</description>
      <author>WilliamChen7</author>
      <link>https://www.codeproject.com/Messages/5646619/How-do-I-unwrap-an-optional-within-a-struct-and-us</link>
      <pubDate>Wed, 24 Jul 2019 18:06:00 GMT</pubDate>
      <guid>3_5646619</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>How to remove MDM profile installed on 2018 iPad Pro 256GB model?</title>
      <description>I got a free iPad from my college, and I need to remove any possibility of them locking it down. How do I do this? Also what factors do they need to remotely lock it down using the mdm profile? Do I need to be a certain distance from them? Do I need to be in the same country? Bcuz I’m currently over seas during summer vacation, so am I safe right now? The iPad is working as of right now. Oh and please don’t bother with convincing me not to do this, I know the risks involved and I’m still gonna do it, I’ve already made arrangements to transfer to another university , and I’m not paying to keep the iPad, I got the iPad 9months ago and I’ve grown attached to it, yet I can’t afford to pay for it, hence why I must remove the MDM profile, can someone tell me how? Or if there’s an easier way to prevent them from locking my iPad down remotely without removing the MDM profile and without me buying the iPad from them, then I’m all ears. Please help. Thanks.</description>
      <author>TovinoThomas</author>
      <link>https://www.codeproject.com/Messages/5635255/How-to-remove-MDM-profile-installed-on-2018-iPad-P</link>
      <pubDate>Wed, 12 Jun 2019 06:45:00 GMT</pubDate>
      <guid>3_5635255</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>iOS vs Android, what made you pick iOS?</title>
      <description>&lt;div class='pre-lang' id='premain946302'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode946302' class='copy-code' data-index='946302' style='visibility:hidden'&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 460 460" style="width: 16px;height:16px;" xml:space="preserve"&gt;
&lt;g&gt;
&lt;path d="M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272
    c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729
    c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z"&gt;&lt;/path&gt;
&lt;path d="M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272
    c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068
    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001
    C291.206,428.715,289.92,430,288.341,430z"&gt;&lt;/path&gt;	
&lt;/g&gt;
&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre946302' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
I am a &lt;span class="code-keyword"&gt;long&lt;/span&gt; time Android user who started learning iOS development a &lt;span class="code-keyword"&gt;while&lt;/span&gt; back and switched to learning Android. Wondering &lt;span class="code-keyword"&gt;if&lt;/span&gt; I made the wrong decision. There &lt;span class="code-keyword"&gt;is&lt;/span&gt; far more content available &lt;span class="code-keyword"&gt;for&lt;/span&gt; iOS than Android, but &lt;span class="code-keyword"&gt;as&lt;/span&gt; an Android user I&lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt;m struggling on a decision. I&amp;#39;&lt;/span&gt;m not really &lt;span class="code-keyword"&gt;in&lt;/span&gt; a position to buy a &lt;span class="code-keyword"&gt;new&lt;/span&gt; phone.

What made you pick iOS over Android?&lt;/pre&gt;</description>
      <author>TovinoThomas</author>
      <link>https://www.codeproject.com/Messages/5635254/iOS-vs-Android-what-made-you-pick-iOS</link>
      <pubDate>Wed, 12 Jun 2019 06:45:00 GMT</pubDate>
      <guid>3_5635254</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>I try to create a path between two planets, I have no compilation error but I do not understand why there is nothing that appears on my simulator</title>
      <description>&lt;div class='pre-lang' id='premain946302'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode946302' class='copy-code' data-index='946302' style='visibility:hidden'&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 460 460" style="width: 16px;height:16px;" xml:space="preserve"&gt;
&lt;g&gt;
&lt;path d="M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272
    c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729
    c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z"&gt;&lt;/path&gt;
&lt;path d="M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272
    c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068
    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001
    C291.206,428.715,289.92,430,288.341,430z"&gt;&lt;/path&gt;	
&lt;/g&gt;
&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre946302' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
I create a mobile shooting video game, I would like to create a line between each planet (&lt;span class="code-digit"&gt;8&lt;/span&gt; planets &lt;span class="code-keyword"&gt;in&lt;/span&gt; total) to form a path but I &lt;span class="code-keyword"&gt;do&lt;/span&gt; not understand why my line does not appear. Here &lt;span class="code-keyword"&gt;is&lt;/span&gt; my code: I want to say that I start &lt;span class="code-keyword"&gt;in&lt;/span&gt; Swift and Spritekit.

Here &lt;span class="code-keyword"&gt;is&lt;/span&gt; my code

 &lt;span class="code-keyword"&gt;var&lt;/span&gt; line = SKShapeNode()
            &lt;span class="code-sdkkeyword"&gt;let&lt;/span&gt; path = CGMutablePath()
            path.addLines(between: [CGPoint(x: size.width * &lt;span class="code-digit"&gt;0&lt;/span&gt;.&lt;span class="code-digit"&gt;3&lt;/span&gt; , y: size.height * &lt;span class="code-digit"&gt;0&lt;/span&gt;.&lt;span class="code-digit"&gt;9&lt;/span&gt;), CGPoint(x: self.size.width/2, y: self.size.height/1.&lt;span class="code-digit"&gt;22&lt;/span&gt;)])
            line.path = bezierPath.cgPath
            line.strokeColor = SKColor.red
            line.lineWidth = &lt;span class="code-digit"&gt;2&lt;/span&gt;
            addChild(line)&lt;/pre&gt;</description>
      <author>Member 14197715</author>
      <link>https://www.codeproject.com/Messages/5613291/I-try-to-create-a-path-between-two-planets-I-have</link>
      <pubDate>Tue, 26 Mar 2019 13:55:00 GMT</pubDate>
      <guid>3_5613291</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>xamarin forms cropping in ios</title>
      <description>in the link bellow I had a project with the cropping just in ios, I had a problem with the quality of the image after cropping, I don't know where I've done wrong. iwish someone would help on it.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=""&gt;&lt;/a&gt;&lt;a href="https://github.com/SoniaCH/CroppingIOS"&gt;GitHub - SoniaCH/CroppingIOS: this is a croppin of an image with ios&lt;/a&gt;[&lt;a href="https://github.com/SoniaCH/CroppingIOS" target="_blank" title="New Window"&gt;^&lt;/a&gt;]</description>
      <author>Member 14141589</author>
      <link>https://www.codeproject.com/Messages/5593439/xamarin-forms-cropping-in-ios</link>
      <pubDate>Wed, 06 Feb 2019 15:04:00 GMT</pubDate>
      <guid>3_5593439</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>Azure Devops not creating IPA file for Xamarin iOS build</title>
      <description>I have a &lt;b&gt;Xamarin.Forms&lt;/b&gt; app that I am building using &lt;b&gt;Azure DevOps&lt;/b&gt;. I am using &lt;b&gt;Visual Studio 2017&lt;/b&gt; 15.8.1. The build step for the project completes without any errors, but the &lt;i&gt;Publish&lt;/i&gt; step fails to copy the IPA file as one hasn't been created.&lt;br /&gt;
&lt;br /&gt;
The build log shows the following &lt;i&gt;MSBUILD&lt;/i&gt; generated statement that the build invoked.&lt;br /&gt;
&lt;div class='pre-lang' id='premain946302'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode946302' class='copy-code' data-index='946302' style='visibility:hidden'&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 460 460" style="width: 16px;height:16px;" xml:space="preserve"&gt;
&lt;g&gt;
&lt;path d="M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272
    c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729
    c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z"&gt;&lt;/path&gt;
&lt;path d="M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272
    c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068
    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001
    C291.206,428.715,289.92,430,288.341,430z"&gt;&lt;/path&gt;	
&lt;/g&gt;
&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre946302' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
msbuild IFMDriverServices.iOS.csproj /p:Configuration=Release /p:Platform=iPhoneSimulator /p:BuildIpa=&lt;span class="code-keyword"&gt;true&lt;/span&gt; /p:Codesignkey=identity /p:CodesignProvision=&lt;span class="code-digit"&gt;123456&lt;/span&gt;&lt;/pre&gt;I have tasks that successfully install the Apple certificate and mobile provisioning that run before the build task.&lt;br /&gt;
&lt;br /&gt;
What am I missing? How do I create the IPA file?&lt;br /&gt;
&lt;div class="signature"&gt;"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.dominicburford.co.uk"&gt;Home&lt;/a&gt; | &lt;a href="http://tinyurl.com/mkmujpg"&gt;LinkedIn&lt;/a&gt; | &lt;a href="http://tinyurl.com/lanmqnt"&gt;Google+&lt;/a&gt; | &lt;a href="http://twitter.com/domburf/"&gt;Twitter&lt;/a&gt;&lt;/div&gt;</description>
      <author>Dominic Burford</author>
      <link>https://www.codeproject.com/Messages/5559993/Azure-Devops-not-creating-IPA-file-for-Xamarin-iOS</link>
      <pubDate>Fri, 05 Oct 2018 10:30:00 GMT</pubDate>
      <guid>3_5559993</guid>
      <subject>iOS</subject>
    </item>
    <item>
      <title>please help translate objc c to swift</title>
      <description>&lt;div class='pre-lang' id='premain946302'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode946302' class='copy-code' data-index='946302' style='visibility:hidden'&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 460 460" style="width: 16px;height:16px;" xml:space="preserve"&gt;
&lt;g&gt;
&lt;path d="M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272
    c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729
    c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z"&gt;&lt;/path&gt;
&lt;path d="M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272
    c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068
    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001
    C291.206,428.715,289.92,430,288.341,430z"&gt;&lt;/path&gt;	
&lt;/g&gt;
&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre946302' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
NSURLRequest *request = [BNGAccount loginWithUserName:username password:password product:product redirectUrl:[scheme stringByAppendingString:&lt;span class="code-string"&gt;@"&lt;/span&gt;&lt;span class="code-string"&gt;://ios.betfair.com/login"&lt;/span&gt;] completionBlock:^(NSString *ssoKey, NSError *connectionError, BNGAPIError *apiError) {

      &lt;span class="code-keyword"&gt;if&lt;/span&gt; (!connectionError &amp;amp;&amp;amp; !apiError &amp;amp;&amp;amp; ssoKey.length) {
          &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt; once we have the ssoKey back from the login API call, we should set it in the shared instance so other API calls can make use of it.&lt;/span&gt;
          [APING sharedInstance].ssoKey = ssoKey;
          &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt; lets see if we can figure out the account details for this user&lt;/span&gt;
          [self getAccountFunds];
      } &lt;span class="code-keyword"&gt;else&lt;/span&gt; {
          [self logError:&lt;span class="code-string"&gt;@"&lt;/span&gt;&lt;span class="code-string"&gt;There was an error while logging in %@ %@"&lt;/span&gt; connectionError:connectionError apiError:apiError];
      }
  }];
&lt;/pre&gt;&lt;div class='pre-lang' id='premain514701'&gt;&lt;div&gt;Objective-C&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode514701' class='copy-code' data-index='514701' style='visibility:hidden'&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 460 460" style="width: 16px;height:16px;" xml:space="preserve"&gt;
&lt;g&gt;
&lt;path d="M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272
    c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729
    c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z"&gt;&lt;/path&gt;
&lt;path d="M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272
    c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068
    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001
    C291.206,428.715,289.92,430,288.341,430z"&gt;&lt;/path&gt;	
&lt;/g&gt;
&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre514701' style='margin-top:0;' class='lang-objective-c' data-language='objc' data-allowShrink='True' data-collapse='False'&gt;

&lt;/pre&gt;</description>
      <author>Member 11829514</author>
      <link>https://www.codeproject.com/Messages/5525437/please-help-translate-objc-c-to-swift</link>
      <pubDate>Sun, 03 Jun 2018 17:21:00 GMT</pubDate>
      <guid>3_5525437</guid>
      <subject>iOS</subject>
    </item>
  </channel>
</rss>