<?xml version="1.0" encoding="utf-8" standalone="no"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Active questions tagged iphone - Stack Overflow</title><description>most recent 30 from stackoverflow.com</description><managingEditor>noemail@noemail.org (BeachRunnerFred)</managingEditor><pubDate>Wed, 20 May 2026 09:44:01 GMT</pubDate><creativeCommons:license xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">https://creativecommons.org/licenses/by-sa/4.0/rdf</creativeCommons:license><link>https://stackoverflow.com/questions/tagged?tagnames=iphone&amp;sort=active</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>most recent 30 from stackoverflow.com</itunes:subtitle><itunes:owner><itunes:email>noemail@noemail.org</itunes:email></itunes:owner><item><title>Code examples for simple game servers [closed]</title><link>https://stackoverflow.com/questions/3892798/code-examples-for-simple-game-servers</link><category>iphone</category><category>client-server</category><author>noemail@noemail.org (BeachRunnerFred)</author><pubDate>Fri, 8 Oct 2010 17:13:09 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/3892798</guid><description>
            &lt;p&gt;I'd like to build an iPhone game for the Game Center and am currently researching the server part of it all.  I learn best by example and I'm having a hard time finding any examples of simple game servers that demonstrate...&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How data is formatted and sent to the server and how it is received&lt;/li&gt;
&lt;li&gt;How to authenticate the data that is being sent/received to avoid players cheating, etc.&lt;/li&gt;
&lt;li&gt;How the game server code is structured along with the DB&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I'd like to build the game server using Ruby on Rails, though I'll settle for any examples using any framework just to understand how these concepts work.  Does anyone know of any books or online resources that has covered this or shows some example code on how to build a game server?  &lt;/p&gt;

&lt;p&gt;I would have to think that most multiplayer games on the iPhone require a gamer server, yet I can't seem to find any resources that discuss how to build one.  Ever resource I find that discusses building multiplayer games (including Apple's docs) says the same thing, &lt;em&gt;"Developing a game server is outside the scope of this book, but we’ll focus on the client side code necessary to connect to such a server."&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Thanks so much in advance for your help!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;EDIT:&lt;/em&gt;&lt;/strong&gt; A few more details about what I'm trying to accomplish...&lt;/p&gt;

&lt;p&gt;I'm trying to develop a two player (possibly more) game that where the users compete to solve a puzzle faster than the other player.  Match making will be handled by the Game Center, but I'll need a game server that will start/manage the games and store the results in a DB.  The overall process will be something like...&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Game Center pairs up two players&lt;/li&gt;
&lt;li&gt;The player data is sent to the server to initialize a new game&lt;/li&gt;
&lt;li&gt;The start of the game is synchronized by the server&lt;/li&gt;
&lt;li&gt;The game starts and each player attempts to solve the puzzle&lt;/li&gt;
&lt;li&gt;When either player finishes, the server is notified&lt;/li&gt;
&lt;li&gt;As soon as both players finish, the server responds with the results and the results are stored on the server.&lt;/li&gt;
&lt;/ol&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">6</re:rank></item><item><title>Mock GPS location on IOS device [duplicate]</title><link>https://stackoverflow.com/questions/36754378/mock-gps-location-on-ios-device</link><category>ios</category><category>iphone</category><category>ios9</category><author>noemail@noemail.org (siva)</author><pubDate>Wed, 20 Apr 2016 20:20:59 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/36754378</guid><description>
            &lt;p&gt;My IOS app is location depend. I have to test the app by setting different fake GPS locations on real IOS 9.3.1 devices. I searched Fake location app but nothing worked as expected. Most of the app are related to take photo and share on fb or twitter with fake location. These app are not changing the device gps location&lt;/p&gt;

&lt;p&gt;My client need to test the app in different location. He is able to do the same in android and expecting the same from IOS. Any idea apart from debug mode.&lt;/p&gt;

&lt;p&gt;Is it possible to set fake location in IOS real device.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">5</re:rank></item><item><title>SplitView like Facebook app on iPhone</title><link>https://stackoverflow.com/questions/7775195/splitview-like-facebook-app-on-iphone</link><category>iphone</category><category>objective-c</category><category>uinavigationcontroller</category><category>uisplitviewcontroller</category><category>tableview</category><author>noemail@noemail.org (Matt)</author><pubDate>Sat, 15 Oct 2011 01:34:24 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/7775195</guid><description>
            &lt;p&gt;I want to create an &lt;strong&gt;&lt;em&gt;iPhone&lt;/em&gt;&lt;/strong&gt; app that uses a navigation scene similar to the one pictured in the link&lt;/p&gt;

&lt;p&gt;&lt;img src="https://i.sstatic.net/ono3I.png" alt="screenshot"&gt;&lt;/p&gt;

&lt;p&gt;Please note I do not want this to only work for iPad, I want it to work for iPhone exactly as pictured, when you click on a tableview item it hides the tableview and makes that view full screen. I want ideas on how to do this because I cannot figure it out myself.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">120</re:rank></item><item><title>Viewcontroller's view fram doesn't give accurately</title><link>https://stackoverflow.com/questions/10898662/viewcontrollers-view-fram-doesnt-give-accurately</link><category>iphone</category><category>objective-c</category><category>ios</category><category>uiviewcontroller</category><author>noemail@noemail.org (ajay)</author><pubDate>Tue, 5 Jun 2012 13:55:40 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/10898662</guid><description>
            &lt;p&gt;I am using two approaches for to place my viewcontroller&lt;/p&gt;
&lt;p&gt;Approach 1: Taking UIViewController and pushing the viewcontroller as like below &lt;code&gt;[self.navigationController pushViewController:myViewController animated:YES];&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Approach 2:Taking UIViewcontroller then I am using&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[self presentModalViewController:myViewController animated:YES];
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;While I am using the Approach1 &amp;quot;myViewController&amp;quot; view size giving as expected like portrait is  768&lt;em&gt;1024 coming to landscape is 1024&lt;/em&gt;768. But the Approach2 is not providing the expected sizes as like first approach, for both the orientations it is giving me 768*1024&lt;/p&gt;
&lt;p&gt;What is the issue in the second approach? Is there any solution to over come the issue.&lt;/p&gt;
&lt;p&gt;In the project I have to use second approach only. But I need to get the correct dimensions. Provide me some suggestions.&lt;/p&gt;
&lt;p&gt;My Viewcontrollers hierarchy:&lt;/p&gt;
&lt;p&gt;1)My project based on UITabBarViewController and It is restricted to portrait only.&lt;/p&gt;
&lt;p&gt;2)One of the UITabBarButton loads another&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ViewController ( BookBagViewController *bookBagViewController = [[BookBagViewController alloc] init];
    theNavigationController = [[UINavigationController alloc] initWithRootViewController:bookBagViewController];)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;3)BookBagViewController is also restricted for portrait.&lt;/p&gt;
&lt;p&gt;4)BookBagViewController contains one button once I click on it below code will be executed&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;MyViecontroller *viewer = [[MyViecontroller alloc] initWithNibName:@&amp;quot;MyViecontroller&amp;quot; bundle:nil];
[self presentModalViewController:viewer animated:YES];
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;5)MyViewcontroller is supporting all the orientations as expected but not giving accurate frame size while printing (debugging).&lt;/p&gt;
&lt;p&gt;6)For returning I am using below line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[self dismissModalViewControllerAnimated:YES];
&lt;/code&gt;&lt;/pre&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>Where can I get information about the 'real' safeAreaInset for an iPhone with notch / dynamic island?</title><link>https://stackoverflow.com/questions/79941993/where-can-i-get-information-about-the-real-safeareainset-for-an-iphone-with-no</link><category>iphone</category><category>swiftui</category><category>screen-resolution</category><author>noemail@noemail.org (MassMover)</author><pubDate>Fri, 15 May 2026 23:38:28 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79941993</guid><description>
            &lt;p&gt;I want do display content in an SwiftUI iOS app that - when the device is in landscape orientation - stretches across the whole width of the device, but not into the notch or the dynamic island, if the device has such. I therefore calculate the width for my content in advance and set en explicit frame.&lt;/p&gt;
&lt;p&gt;Here is a simplified version of my view:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;struct ContentView: View {
    var body: some View {
        
        GeometryReader {geometry in
            
            let totalWidth = geometry.size.width + geometry.safeAreaInsets.leading + geometry.safeAreaInsets.trailing
            let width = totalWidth - 30 - geometry.safeAreaInsets.trailing
            let leftPadding: CGFloat = 15
            
            
            VStack {
                Spacer()
                Rectangle()
                    .frame(width: width, height: 30, alignment: .leading)
                    .frame(maxWidth: .infinity, alignment: .leading)
                    .padding(.leading, leftPadding)
                    .foregroundColor(.red)
                    .edgesIgnoringSafeArea(.horizontal)
                Spacer()
            }
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Of course, the real app would have to determine if the orientation is landscape left or right, and do some more, but this code snippet should do for demonstration purposes. When in a simulator for iPhone 12 in LandscapeRight orientation I get the following result:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://i.sstatic.net/XWe5DH3c.png" alt="enter image description here" /&gt;&lt;/p&gt;
&lt;p&gt;The red rectangle is not symmetrical. I want exactly the same padding between the rectangle and the notch as to the left border. Problem is: the reported safeAreaInsets of 47 points are larger than the actual size of the notch, because these insets are mainly reflecting the radius of the rounded corners of the screen. But in my case I need the actual dimensions of the notch. As there does not seem to be a way to retrieve that information at runtime I will have to hardcode the value for different devices.&lt;/p&gt;
&lt;p&gt;For the iPhoneX i found this document:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.paintcodeapp.com/news/iphone-x-screen-demystified" rel="nofollow noreferrer"&gt;https://www.paintcodeapp.com/news/iphone-x-screen-demystified&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;which tells me that the notch height is actual 30 points. The reported safeAreaInsets have evolved from 47 over 50, 59, 62... points, so I assume the dimensions for the notch are not 30 points for all models.&lt;/p&gt;
&lt;p&gt;Is there any documentation available where I can read  the actual dimensions of the notch (or for newer generations with dynamic island the distance from the top of the screen to the lower edge of the island) for different iPhone models?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>Using a Java Library across iPhone and Android app version [closed]</title><link>https://stackoverflow.com/questions/7543344/using-a-java-library-across-iphone-and-android-app-version</link><category>iphone</category><category>android</category><category>ios</category><category>cordova</category><author>noemail@noemail.org (cant read)</author><pubDate>Sun, 25 Sep 2011 02:50:57 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/7543344</guid><description>
            &lt;p&gt;I want to use a Java library for both the Android and iPhone version of my app. Can this be done? If so, how?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">-1</re:rank></item><item><title>How to add a badge to UINavigationItem (UIBarButtonItem)</title><link>https://stackoverflow.com/questions/44537849/how-to-add-a-badge-to-uinavigationitem-uibarbuttonitem</link><category>ios</category><category>iphone</category><category>swift</category><category>swift3</category><author>noemail@noemail.org (R kanojia)</author><pubDate>Wed, 14 Jun 2017 07:09:30 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/44537849</guid><description>
            &lt;p&gt;Dose iOS provide a badge on UIBarButtonItem? If not, then how do I do it programmatically?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/cEU1u.png" rel="nofollow noreferrer"&gt;Screenshot of example UI&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the image, I want to show a badge on UIBarButtonItem (Refresh button icon) like a red color round or numbers any thing.&lt;/p&gt;
&lt;p&gt;I am using Swift 3.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">3</re:rank></item><item><title>How to detect touches in status bar</title><link>https://stackoverflow.com/questions/3753097/how-to-detect-touches-in-status-bar</link><category>iphone</category><category>ios</category><author>noemail@noemail.org (Max Seelemann)</author><pubDate>Mon, 20 Sep 2010 15:44:38 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/3753097</guid><description>
            &lt;p&gt;I have custom view in my application which can be scrolled by the user. This view, however, does not inherit from UIScrollView. Now I want the user to be able to scroll this view to the top, just as any other scrollable view allows. I figured that there is no direct way to do so.&lt;/p&gt;

&lt;p&gt;Google turned up one solution: &lt;a href="http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html" rel="noreferrer"&gt;http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html&lt;/a&gt; This no longer works on iOS 4.x. That's a no-go.&lt;/p&gt;

&lt;p&gt;I had the idea of creating a scrollview and keeping it around somewhere, just to catch it's notifications and then forward them to my control. This is not a nice way to solve my problem, so I am looking for "cleaner" solutions. I like the general approach of the aforementioned link to subclass UIApplication. But what API can give me reliable info?&lt;/p&gt;

&lt;p&gt;Are there any thoughts, help, etc...?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; Another thing I don't like about my current solution is that it only works as long as the current view does not have any scroll views. The scroll-to-top gesture works only if exactly one scroll view is around. As soon as the dummy is added (see my answer below for details) to a view with another scrollview, the gesture is completely disabled. Another reason to look for a better solution...&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">38</re:rank></item><item><title>"Safari cannot open the page because the address is invalid" for Google Maps link</title><link>https://stackoverflow.com/questions/27049228/safari-cannot-open-the-page-because-the-address-is-invalid-for-google-maps-lin</link><category>iphone</category><category>google-maps</category><category>mobile-safari</category><author>noemail@noemail.org (Adam Hollock)</author><pubDate>Thu, 20 Nov 2014 20:46:14 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/27049228</guid><description>
            &lt;p&gt;I have an iPhone 4s with iOS7 that doesn't have the Google Maps app installed on it. Whenever I try to navigate to a location link on it, it flashes an error at me that says:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Cannot Open Page
Safari cannot open the page because the address is invalid
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But then the error goes away (without having to hit OK) and the map shows up, and all subsequent Google Maps links load without this error. When I clear my cache, the error shows up again, but only for the first time, and again disappears on its own.&lt;/p&gt;

&lt;p&gt;This is the link in question that I am using, but I have tested it with multiple links and the problem seems to be persistent:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.google.com/maps/place/Kraftwork/@39.971494,-75.127336,17z/data=!3m1!4b1!4m2!3m1!1s0x0:0x6db3f86eca2f8b45?hl=en" rel="nofollow"&gt;https://www.google.com/maps/place/Kraftwork/@39.971494,-75.127336,17z/data=!3m1!4b1!4m2!3m1!1s0x0:0x6db3f86eca2f8b45?hl=en&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Any idea what's causing this problem?&lt;/p&gt;

&lt;p&gt;To be specific, this problem exists as a result of straight html and just attempting to click a maps link.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">3</re:rank></item><item><title>Decoding adjustmentData in .AAE files of pictures taken by the iPhone</title><link>https://stackoverflow.com/questions/61023739/decoding-adjustmentdata-in-aae-files-of-pictures-taken-by-the-iphone</link><category>ios</category><category>iphone</category><author>noemail@noemail.org (pjp)</author><pubDate>Sat, 4 Apr 2020 04:24:34 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/61023739</guid><description>
            &lt;p&gt;I understand .AAE files are supposed to describe the changes that were applied to a certain picture. However I see that most times (apparently not always) there is such a file even when they seem to carry the same data (which seems to indicate that no change was applied to the picture.&lt;/p&gt;
&lt;p&gt;Does anyone know how to decode this adjustmentData value?&lt;/p&gt;
&lt;p&gt;Example photo 1:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;!DOCTYPE plist PUBLIC &amp;quot;-//Apple//DTD PLIST 1.0//EN&amp;quot; &amp;quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&amp;quot;&amp;gt;
&amp;lt;plist version=&amp;quot;1.0&amp;quot;&amp;gt;
&amp;lt;dict&amp;gt;
    &amp;lt;key&amp;gt;adjustmentBaseVersion&amp;lt;/key&amp;gt;
    &amp;lt;integer&amp;gt;0&amp;lt;/integer&amp;gt;
    &amp;lt;key&amp;gt;adjustmentData&amp;lt;/key&amp;gt;
    &amp;lt;data&amp;gt;
    bZBNT8JAEIb/y5wrKaBg9mbwIBdJNNGD8TC003bNfjS7U5CQ/nenW0o4eNt95+t9nzNY
    YiyREdQZLEam8EK6bhjUfb5cZBftU5fcgFosVo8Z+KDJMbL2DtSqz6DywSJ/UIhJmmdw
    GN9bV/lh8b7Tpnzt7J4CKJivnx9yyADb9joD8o9FQxbf6KBHLc+gNcjDdmnQu3eQW1j+
    dJGtGIigvs7/3CaHe0MlKA4dyVZi1q6Og48THtNaSVBrh2YTfDv1/e6SmOrRYhACFZoo
    leMYfuRxmtqWa0EROeBAi9yTqw2BupNp7Nhfh5sLzRFd4V0acTxRzm/FC+YhuOZieEli
    XUpYXenELjmeiG9vK4W3MyFqaNY2Xgz03/0f
    &amp;lt;/data&amp;gt;
    &amp;lt;key&amp;gt;adjustmentEditorBundleID&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;com.apple.camera&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;adjustmentFormatIdentifier&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;com.apple.photo&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;adjustmentFormatVersion&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;1.6&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;adjustmentTimestamp&amp;lt;/key&amp;gt;
    &amp;lt;date&amp;gt;2020-03-21T17:37:31Z&amp;lt;/date&amp;gt;
&amp;lt;/dict&amp;gt;
&amp;lt;/plist&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Example photo2:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;!DOCTYPE plist PUBLIC &amp;quot;-//Apple//DTD PLIST 1.0//EN&amp;quot; &amp;quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&amp;quot;&amp;gt;
&amp;lt;plist version=&amp;quot;1.0&amp;quot;&amp;gt;
&amp;lt;dict&amp;gt;
    &amp;lt;key&amp;gt;adjustmentBaseVersion&amp;lt;/key&amp;gt;
    &amp;lt;integer&amp;gt;0&amp;lt;/integer&amp;gt;
    &amp;lt;key&amp;gt;adjustmentData&amp;lt;/key&amp;gt;
    &amp;lt;data&amp;gt;
    bZBNT8JAEIb/y5wrKaBg9mbwIBdJNNGD8TC003bNfjS7U5CQ/nenW0o4eNt95+t9nzNY
    YiyREdQZLEam8EK6bhjUfb5cZBftU5fcgFosVo8Z+KDJMbL2DtSqz6DywSJ/UIhJmmdw
    GN9bV/lh8b7Tpnzt7J4CKJivnx9yyADb9joD8o9FQxbf6KBHLc+gNcjDdmnQu3eQW1j+
    dJGtGIigvs7/3CaHe0MlKA4dyVZi1q6Og48THtNaSVBrh2YTfDv1/e6SmOrRYhACFZoo
    leMYfuRxmtqWa0EROeBAi9yTqw2BupNp7Nhfh5sLzRFd4V0acTxRzm/FC+YhuOZieEli
    XUpYXenELjmeiG9vK4W3MyFqaNY2Xgz03/0f
    &amp;lt;/data&amp;gt;
    &amp;lt;key&amp;gt;adjustmentEditorBundleID&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;com.apple.camera&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;adjustmentFormatIdentifier&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;com.apple.photo&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;adjustmentFormatVersion&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;1.6&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;adjustmentTimestamp&amp;lt;/key&amp;gt;
    &amp;lt;date&amp;gt;2020-03-25T05:45:21Z&amp;lt;/date&amp;gt;
&amp;lt;/dict&amp;gt;
&amp;lt;/plist&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">5</re:rank></item><item><title>How to retrieve the real physical screen DPI/PPI on iOS to draw a rectangle with an exact physical size? [duplicate]</title><link>https://stackoverflow.com/questions/79937808/how-to-retrieve-the-real-physical-screen-dpi-ppi-on-ios-to-draw-a-rectangle-with</link><category>ios</category><category>iphone</category><category>flutter</category><category>xcode</category><category>react-native</category><author>noemail@noemail.org (zeus)</author><pubDate>Thu, 7 May 2026 22:18:21 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79937808</guid><description>
            &lt;p&gt;I'm developing a Delphi FMX application for iOS and I need to draw UI elements with a real physical size, for example a rectangle measuring exactly 3 cm × 3 cm on screen.&lt;/p&gt;
&lt;p&gt;On Android this is relatively straightforward because &lt;code&gt;DisplayMetrics&lt;/code&gt; exposes &lt;code&gt;densityDpi&lt;/code&gt;, but on iOS I only see APIs such as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;UIScreen.mainScreen.scale
UIScreen.mainScreen.bounds
UIScreen.mainScreen.nativeBounds
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;From what I understand, &lt;code&gt;scale&lt;/code&gt; is only the logical Retina scaling factor (2x/3x), not the actual physical PPI/DPI of the display.&lt;/p&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Is there any public iOS API to retrieve the real physical screen PPI/DPI?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If not, what is the recommended way to draw UI elements with a real-world physical size (cm/mm)?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Is maintaining a device-model → PPI lookup table the only solution?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How do professional iOS apps handle this problem?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Goal: draw a rectangle exactly 3 cm × 3 cm
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I would appreciate clarification on the recommended iOS approach here.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>What WordPress Forms/Quiz plugin is good for Desktop and Mobile?</title><link>https://stackoverflow.com/questions/79937984/what-wordpress-forms-quiz-plugin-is-good-for-desktop-and-mobile</link><category>iphone</category><category>wordpress</category><category>forms</category><category>mobile</category><category>plugins</category><author>noemail@noemail.org (Janina Elijoki)</author><pubDate>Fri, 8 May 2026 08:29:22 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79937984</guid><description>
            &lt;p&gt;I'm creating a website in WordPress that will include multiple (5-10) quizzes and I need it to work well on desktop and mobile.&lt;/p&gt;
&lt;p&gt;The quizzes are composed of around 20-40 questions, which the user will answer on a scale of strongly disagree to strongly agree. I'm intending to use radio buttons for this.&lt;/p&gt;
&lt;p&gt;The quizzes have also been split to 5-10 sections and each section will be scored separately and results will be given per section.&lt;br /&gt;
After completing the quiz and getting their results the user should also have the option to upload a pdf or send a pdf to their email of their results.&lt;br /&gt;
The results should contain a summary of the users answer as well as the actual results based on the scoring of the sections.&lt;/p&gt;
&lt;p&gt;Previously I used the Forminator plugin for this and it had all the necessary features required, but I ran into an issue attempting to use the website and fill the form/quiz on iOS devices. The form/quiz was very slow to load and to respond to inputs and as the quiz went on it became impossible to use due to the long load and response times. On desktop and on Android devices the quiz worked fine.&lt;/p&gt;
&lt;p&gt;Has anyone encountered the same problems?&lt;/p&gt;
&lt;p&gt;What other form/quiz plugin would you recommend for me that would also work on iPhone without the performance issues?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>iOS Safari / iPhone disapearing 'Done' from input's Accessory Bar / Done bar</title><link>https://stackoverflow.com/questions/79937541/ios-safari-iphone-disapearing-done-from-inputs-accessory-bar-done-bar</link><category>ios</category><category>iphone</category><category>mobile-safari</category><author>noemail@noemail.org (Hivaga)</author><pubDate>Thu, 7 May 2026 11:41:16 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79937541</guid><description>
            &lt;p&gt;We have a very strange easy to reproduce bug on iOS Safari Browser (phone). Basically the problem is that the Accessory Bar/ 'Done'  bar on top the keyboard is disapearing when you switch between the landscape and portrait mode. This is reproducible on any iOS devices (phones)/versions so it is very strange that to this date there is no clear fix for the issue.&lt;/p&gt;
&lt;p&gt;PS I have tried blur() on currently selected input on orientation change this does not fix the issue. After you open an input into landscape and return to portrait you will still have missing 'Done' button.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://i.sstatic.net/fzG5xGr6.gif" alt="Steps to reproduce input's 'Done' dissapearing from accessory bar" title="Step to reproduce" /&gt;&lt;/p&gt;
&lt;p&gt;Here the steps to reproduce or you can see the linked video with the bug:&lt;/p&gt;
&lt;p&gt;1. Open url with inputs in portrait&lt;br /&gt;
2. Open input in portrait mode&lt;br /&gt;
3. Rotate the device to switch to landscape mode&lt;br /&gt;
4. Open same input in landscape&lt;br /&gt;
5. Close the input in landscape via the 'Done' button&lt;br /&gt;
6. Rotate the device back to portrait&lt;br /&gt;
7. Open same input in portrait you will see that 'Done' button have disapeared.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>Login text fields appear to clear on iPad Air M3 (iPadOS 26) — cannot reproduce on iPhone or simulator [closed]</title><link>https://stackoverflow.com/questions/79936983/login-text-fields-appear-to-clear-on-ipad-air-m3-ipados-26-cannot-reproduce</link><category>ios</category><category>iphone</category><category>flutter</category><category>ipad</category><category>ios-simulator</category><author>noemail@noemail.org (Mr x)</author><pubDate>Wed, 6 May 2026 11:59:34 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79936983</guid><description>
            &lt;p&gt;Our Flutter app has been rejected by App Review 4 times. The reviewer reports that typing into the email/password fields on an iPad Air 11-inch (M3) running iPadOS 26.4.2 causes the fields to clear, preventing login.&lt;/p&gt;
&lt;p&gt;We cannot reproduce this on a real iPhone (iOS 18.x) or the iPad simulator (iPadOS 26.3.1).&lt;/p&gt;
&lt;p&gt;Flutter: 3.41.4 | State management: GetX&lt;/p&gt;
&lt;p&gt;Login screen (simplified):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;class LoginScreen extends StatelessWidget {
  LoginScreen({super.key});
  final AuthenticationController authenticationController =
      Get.find&amp;lt;AuthenticationController&amp;gt;();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SingleChildScrollView(
        child: SizedBox(
          height: height,
          child: Obx(                          // &amp;lt;-- wraps the entire column
            () =&amp;gt; Column(
              children: [
                CommonTitleTextField(
                  textEditingController:
                      authenticationController.emailTextEditingController,
                  autofillHints: const [AutofillHints.email],
                  onChanged: (_) =&amp;gt; authenticationController.checkCanLogin(),
                ),
                CommonTitleTextField(
                  textEditingController:
                      authenticationController.passwordTextEditingController,
                  obscureText: authenticationController
                      .isLoginPasswordVisible.value,        // observable read
                  suffixIcon: ...,
                  onSuffixPress: () {
                    authenticationController.isLoginPasswordVisible.value =
                        !authenticationController.isLoginPasswordVisible.value;
                  },
                  autofillHints: const [AutofillHints.password],
                  onChanged: (_) =&amp;gt; authenticationController.checkCanLogin(),
                ),
                // ...
              ],
            ),
          ),
        ),
      ),
    );
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Controller (relevant parts):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;class AuthenticationController extends GetxController {
  // TextEditingControllers declared as fields — NOT inside build()
  final TextEditingController emailTextEditingController =
      TextEditingController();
  final TextEditingController passwordTextEditingController =
      TextEditingController();

  final RxBool isLoginPasswordVisible = RxBool(true);
  final RxBool canLogin = RxBool(false);
  final RxBool isLoginLoading = RxBool(false);

  void checkCanLogin() {
    canLogin.value =
        emailTextEditingController.text.trim().isNotEmpty &amp;amp;&amp;amp;
        passwordTextEditingController.text.trim().isNotEmpty &amp;amp;&amp;amp;
        passwordTextEditingController.text.length &amp;gt;= 6;
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The controller is registered once in main() via Get.put(AuthenticationController()).&lt;/p&gt;
&lt;p&gt;The suspected issue:&lt;/p&gt;
&lt;p&gt;The outer Obx listens to isLoginPasswordVisible (and isLoginLoading, canLogin, isStayLoggedInChecked). When any of those change — including when the user taps the password visibility toggle — the entire column rebuilds, including both CommonTitleTextField widgets.&lt;/p&gt;
&lt;p&gt;Our theory: on iPadOS 26 specifically, something about the keyboard/autofill session or focus handling causes the text field to lose or reset its content when its widget is rebuilt, even though the TextEditingController instance itself is stable. This doesn't happen on iPhone.&lt;/p&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;p&gt;Can a full widget subtree rebuild triggered by Obx cause a TextField to clear on iPadOS 26, even when the TextEditingController is the same instance?
Is there a known interaction between AutofillGroup, iPad's autofill UI, and Obx rebuilds that could cause this?
Would splitting the Obx into smaller scoped observers (so only the password field rebuilds when isLoginPasswordVisible changes) fix this — and is that the right approach?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">-2</re:rank></item><item><title>FBPermissionDialog bug, showing "Welcome to Facebook" page</title><link>https://stackoverflow.com/questions/2845701/fbpermissiondialog-bug-showing-welcome-to-facebook-page</link><category>iphone</category><category>cocoa-touch</category><category>fbconnect</category><author>noemail@noemail.org (Oliver)</author><pubDate>Sun, 16 May 2010 22:17:19 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/2845701</guid><description>
            &lt;p&gt;I'm experiencing a weird bug that I can replicate pretty consistently with the FBConnect iPhone SDK, more specifically with the class FBPermissionDialog. The result is that instead of seeing the standard extended permissions dialog, the user is shown this:&lt;/p&gt;

&lt;p&gt;&lt;img src="https://i.sstatic.net/ANscy.png" alt="enter image description here"&gt;&lt;/p&gt;

&lt;p&gt;The only way around it is for the user to delete the app and reinstall.&lt;/p&gt;

&lt;p&gt;This is how I have replicated it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On first login, the user is asked for extended permissions on something (the dialog displays correctly). The user declines the permission. User quits the app.&lt;/li&gt;
&lt;li&gt;The user relaunches the app and since we still need the permission, we ask again.&lt;/li&gt;
&lt;li&gt;Instead of the permission dialog, the user is shown the "Welcome to Facebook" page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The only way for the user to get asked again is to delete the app and reinstall. Has anyone else experienced this? Is there a workaround? Here is the code I use to ask for permission, I believe it's pretty standard.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;// Create a permission dialog
FBPermissionDialog *dialog = [[[FBPermissionDialog alloc] init] autorelease];
dialog.delegate = self;
dialog.permission = @"read_stream";
[dialog show];
&lt;/code&gt;&lt;/pre&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">1</re:rank></item><item><title>How can i display animated svg file in iOS without using UIWebView</title><link>https://stackoverflow.com/questions/44906479/how-can-i-display-animated-svg-file-in-ios-without-using-uiwebview</link><category>ios</category><category>iphone</category><category>swift</category><category>svg-animate</category><author>noemail@noemail.org (Mihir Mehta)</author><pubDate>Tue, 4 Jul 2017 12:49:24 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/44906479</guid><description>
            &lt;p&gt;Currently i am using &lt;code&gt;UIWebView&lt;/code&gt; to display animated svg file in my native iOS application. &lt;/p&gt;

&lt;p&gt;This works fine except the CPU usage is constantly being on higher side as long as app is in foreground. &lt;/p&gt;

&lt;p&gt;Is there any better way to display svg file without using &lt;code&gt;UIwebView&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;I have already tried many third party libraries but all works only with static svg file not animated svgs &lt;/p&gt;

&lt;p&gt;I have tried following &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mchoe/SwiftSVG" rel="noreferrer"&gt;https://github.com/mchoe/SwiftSVG&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/exyte/Macaw" rel="noreferrer"&gt;https://github.com/exyte/Macaw&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/onmyway133/Snowflake" rel="noreferrer"&gt;https://github.com/onmyway133/Snowflake&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/SVGKit/SVGKit" rel="noreferrer"&gt;https://github.com/SVGKit/SVGKit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My app supports &lt;strong&gt;iOS 9&lt;/strong&gt; and above , My code is in &lt;strong&gt;Swift3&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here is the link of on of the svg file that i am trying to display &lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.mediafire.com/file/04ojy6t4e3c41lv/03d.svg" rel="noreferrer"&gt;http://www.mediafire.com/file/04ojy6t4e3c41lv/03d.svg&lt;/a&gt;&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">15</re:rank></item><item><title>Dynamic UIColor from asset catalog doesn't update CALayer.borderColor when switching between light and dark mode — modern workaround?</title><link>https://stackoverflow.com/questions/79936329/dynamic-uicolor-from-asset-catalog-doesnt-update-calayer-bordercolor-when-switc</link><category>ios</category><category>swift</category><category>iphone</category><category>uikit</category><category>mobile-development</category><author>noemail@noemail.org (FabioDev)</author><pubDate>Tue, 5 May 2026 09:29:55 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79936329</guid><description>
            &lt;p&gt;I'm implementing dark mode in a UIKit app and ran into the well-known issue that &lt;code&gt;CALayer.borderColor&lt;/code&gt; (and &lt;code&gt;shadowColor&lt;/code&gt;, &lt;code&gt;CAShapeLayer.strokeColor&lt;/code&gt;, etc.) doesn't update automatically when the user toggles between light and dark mode.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How my colors are defined&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;All my colors live in an .xcassets Color Set with both an &amp;quot;Any Appearance&amp;quot; and a &amp;quot;Dark Appearance&amp;quot; variant defined directly in the asset catalog, e.g.:&lt;/p&gt;
&lt;p&gt;Colors.xcassets/&lt;br /&gt;
└── BorderColor.colorset/&lt;br /&gt;
├── Any Appearance  → #D1D5DB&lt;br /&gt;
└── Dark Appearance → #3F3F46&lt;/p&gt;
&lt;p&gt;I expose them through a generated namespace, so call sites look like:&lt;br /&gt;
&lt;code&gt;let borderColor: UIColor = AppColors.borderColor // resolves dynamically&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;UIColor.backgroundColor, UILabel.textColor, UIImageView.tintColor all update perfectly when the system trait collection changes — that part works as expected.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The problem&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The moment I assign one of these dynamic colors to a CALayer property, it's converted to a static CGColor:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;final class RoundedBorderView: UIView {                                                                                      
      override init(frame: CGRect) {                                                
          super.init(frame: frame)                                                                                             
          layer.borderWidth = 1
          layer.borderColor = AppColors.borderColor.cgColor // ← frozen here                                                   
          layer.cornerRadius = 12                                                                                              
      }                                                                                                                        
      required init?(coder: NSCoder) { fatalError() }                                                                          
  }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When the user switches appearance, the border keeps its original (light-mode) color forever, because CALayer isn't a UITraitEnvironment and a CGColor carries no appearance information.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What I've tried&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The standard fix is to re-apply cgColor on trait changes, e.g. on iOS 17+:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;registerForTraitChanges([UITraitUserInterfaceStyle.self]) { (view: RoundedBorderView, _) in
      view.layer.borderColor = AppColors.borderColor.cgColor                                                              
  }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;…or override traitCollectionDidChange(_:) on older OS versions.&lt;/p&gt;
&lt;p&gt;This &lt;strong&gt;works&lt;/strong&gt;, but in a non-trivial app I have dozens of views, cells, and custom controls that draw borders, shadows, or shape strokes. Sprinkling registerForTraitChanges (or a traitCollectionDidChange override) into every single one of them feels like a lot of boilerplate just to compensate for the fact that a layer property can't observe its own environment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The actual question&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Is there a more modern API (or any sanctioned pattern from Apple) that lets me bind a dynamic UIColor from an asset catalog directly to CALayer.borderColor (or shadowColor, CAShapeLayer.strokeColor, gradient colors, etc.) so it re-resolves automatically on trait changes — without me wiring up a trait observer in every view that happens to have a&lt;br /&gt;
border?&lt;/p&gt;
&lt;p&gt;I'm looking for either:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;An Apple-blessed API I've missed (something analogous to UIView.tintColor propagation, but for layer colors), or&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Confirmation that no such thing exists and the centralized-extension/subclass pattern really is the state of the art in 2026.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Any insight from people who've shipped large UIKit apps with dark mode would be much appreciated.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Environment: Xcode 26.3, minimum deployment target iOS 16, app primarily uses UIKit (no SwiftUI).&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>UIManagedDocument example / tutorial</title><link>https://stackoverflow.com/questions/8705964/uimanageddocument-example-tutorial</link><category>iphone</category><category>objective-c</category><category>core-data</category><category>icloud</category><category>uimanageddocument</category><author>noemail@noemail.org (adamteale)</author><pubDate>Mon, 2 Jan 2012 22:26:45 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/8705964</guid><description>
            &lt;p&gt;I have been trying very unsuccessfully to create a simple &lt;code&gt;UIManagedDocument&lt;/code&gt; library style application (separate documents saved to iCloud).&lt;/p&gt;

&lt;p&gt;I am confused with the following:&lt;/p&gt;

&lt;p&gt;Do I subclass &lt;code&gt;UIManagedDocument&lt;/code&gt; and set up the &lt;code&gt;persistentStoreCoordinator&lt;/code&gt;, &lt;code&gt;ManagedObjectModel&lt;/code&gt; &amp;amp; &lt;code&gt;ManagedObjectContext&lt;/code&gt; within this subclass, or are these supposed to be configured within the &lt;code&gt;AppDelegate&lt;/code&gt; (and if so, how do I go about refreshing the &lt;code&gt;persistentStoreCoordinator&lt;/code&gt; to look at the new file - it seems that once that has read a &lt;code&gt;persistentStore&lt;/code&gt; that I can't get it to read a new persistent store)?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">7</re:rank></item><item><title>How can I add a next and previous button at the segmented Controller on a navigation bar in iphone application development?</title><link>https://stackoverflow.com/questions/8251971/how-can-i-add-a-next-and-previous-button-at-the-segmented-controller-on-a-naviga</link><category>iphone</category><category>ios</category><category>uinavigationbar</category><category>uisegmentedcontrol</category><author>noemail@noemail.org (Emon)</author><pubDate>Thu, 24 Nov 2011 03:39:54 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/8251971</guid><description>
            &lt;p&gt;How can I set next and previous button/arrow at my segmented bar. Please see this link for more details: &lt;a href="https://stackoverflow.com/questions/8222018/how-can-i-add-a-next-and-previous-button-at-the-segmented-controller"&gt;How can i add a next and previous button at the segmented Controller?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have attached an image to understand the problem:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://i.sstatic.net/hVN6J.png" alt="enter image description here" /&gt;&lt;/p&gt;
&lt;p&gt;NOTE THAT: In my current project it has more than 5 buttons to add at the segmented bar so when I will press next/previous arrow then segmented bar should be move from his place.&lt;/p&gt;
&lt;h2&gt;Edit&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;UIBarButtonItem *previousBarButtonItem = [[UIBarButtonItem alloc] //init];
                                      initWithTitle:@&amp;quot;&amp;lt;&amp;quot;
                                      style:UIBarButtonItemStyleBordered
                                      target:self 
                                      action:@selector(previousBarButtonAction:)];
self.navigationItem.leftBarButtonItem = previousBarButtonItem;

[previousBarButtonItem release];

UIBarButtonItem *nextBarButtonItem = [[UIBarButtonItem alloc] //init];
                                      initWithTitle:@&amp;quot;&amp;gt;&amp;quot;
                                      style:UIBarButtonItemStyleBordered
                                      target:self 
                                      action:@selector(nextBarButtonAction:)];
self.navigationItem.rightBarButtonItem = nextBarButtonItem;
    
[nextBarButtonItem release];

//This Portion For UIToolbar

topToolBar = [UIToolbar new];
topToolBar.barStyle = UIBarStyleDefault;
[topToolBar sizeToFit];
topToolBar.frame = CGRectMake(50, 410, 280, 50);

//Add buttons
UIBarButtonItem *systemItem1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd
                                                                             target:self
                                                                             action:@selector(pressButton1:)];

UIBarButtonItem *systemItem2 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction
                                                                             target:self
                                                                             action:@selector(pressButton2:)];

UIBarButtonItem *systemItem3 = [[UIBarButtonItem alloc]
                                initWithBarButtonSystemItem:UIBarButtonSystemItemCamera
                                target:self action:@selector(pressButton3:)];

//Use this to put space in between your toolbox buttons
UIBarButtonItem *flexItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace
                                                                          target:nil
                                                                          action:nil];

//Add buttons to the array
NSArray *items = [NSArray arrayWithObjects: systemItem1, flexItem, systemItem2, flexItem, systemItem3, nil];

//release buttons
[systemItem1 release];
[systemItem2 release];
[systemItem3 release];
[flexItem release];

//add array of buttons to toolbar
[topToolBar setItems:items animated:NO];

self.navigationItem.titleView = topToolBar;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is my current coding position. Now I have 4 buttons in the uitoolbar but only 3 button can see so I want to move this toolbar when I will press next or previous button to see the others button whose are out of frame of uitoolbar?&lt;/p&gt;
&lt;h2&gt;Edit&lt;/h2&gt;
&lt;p&gt;I able to scroll the navigation bar item using uiview animation but now my problem is when I press the next/prev button then it is moving from the current place according to the changing of the coordinate of the uitoolbar and moving over the pre/next baritem frame whose are not in the uitoolbar items. but it should be wothin a uiview and should change the coordinate within the uiview not out of the view.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>How to add a activity indicator below the UITableView?</title><link>https://stackoverflow.com/questions/7953344/how-to-add-a-activity-indicator-below-the-uitableview</link><category>iphone</category><category>uitableview</category><category>uiscrollview</category><category>uiactivityindicatorview</category><author>noemail@noemail.org (Emon)</author><pubDate>Mon, 31 Oct 2011 11:55:27 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/7953344</guid><description>
            &lt;p&gt;In my application I want to add activity indicator under UItableview where tableview will scroll but I do not know how can I add activity indicator over there.&lt;/p&gt;
&lt;p&gt;To elaborate, when I will finish the scrolling of tableview then for more data I have to set a refresh option by an activity indicator.&lt;/p&gt;
&lt;p&gt;I have tried it at the top of the tableview and it worked but I don't know how can I add it below the tableview. Here is some sample code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;      - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
if (isLoading) return;
isDragging = YES;


refreshHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, scrollView.contentOffset.y + REFRESH_HEADER_HEIGHT, 320, REFRESH_HEADER_HEIGHT)];
refreshHeaderView.backgroundColor = [UIColor clearColor];

refreshLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, scrollView.contentOffset.y + REFRESH_HEADER_HEIGHT, 320, REFRESH_HEADER_HEIGHT)];
refreshLabel.backgroundColor = [UIColor clearColor];
refreshLabel.font = [UIFont boldSystemFontOfSize:12.0];
refreshLabel.textAlignment = UITextAlignmentCenter;

refreshArrow = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@&amp;quot;refresharrow.png&amp;quot;]];
refreshArrow.frame = CGRectMake((scrollView.contentOffset.y + REFRESH_HEADER_HEIGHT - 27) / 2,
                                (scrollView.contentOffset.y + REFRESH_HEADER_HEIGHT - 44) / 2,
                                27, 44);

refreshSpinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
refreshSpinner.frame = CGRectMake((scrollView.contentOffset.y + REFRESH_HEADER_HEIGHT - 20) / 2, (scrollView.contentOffset.y + REFRESH_HEADER_HEIGHT - 20) / 2, 20, 20);
refreshSpinner.hidesWhenStopped = YES;

[refreshHeaderView addSubview:refreshLabel];
[refreshHeaderView addSubview:refreshArrow];
[refreshHeaderView addSubview:refreshSpinner];
[tableview addSubview:refreshHeaderView];


}

 - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
if (isLoading) {
    // Update the content inset, good for section headers
    if (scrollView.contentOffset.y &amp;gt; 0){
        NSLog(@&amp;quot;scrollView.contentOffset.y 1= %d&amp;quot;,scrollView.contentOffset.y );
        tableview.contentInset = UIEdgeInsetsZero;
    }
    else if (scrollView.contentOffset.y &amp;gt;= -REFRESH_HEADER_HEIGHT){
        NSLog(@&amp;quot;scrollView.contentOffset.y 2= %d&amp;quot;,scrollView.contentOffset.y );
        tableview.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);
    }
} else if (isDragging &amp;amp;&amp;amp; scrollView.contentOffset.y &amp;gt; scrollView.contentOffset.y + REFRESH_HEADER_HEIGHT) {
    // Update the arrow direction and label
    [UIView beginAnimations:nil context:NULL];
    if (scrollView.contentOffset.y &amp;gt; scrollView.contentOffset.y + REFRESH_HEADER_HEIGHT) {
        // User is scrolling above the header
        NSLog(@&amp;quot;scrollView.contentOffset.y 3= %d&amp;quot;,scrollView.contentOffset.y );
        refreshLabel.text = self.textRelease;
        [refreshArrow layer].transform = CATransform3DMakeRotation(M_PI, 0, 0, 1);
    } else { // User is scrolling somewhere within the header
        refreshLabel.text = self.textPull;
        [refreshArrow layer].transform = CATransform3DMakeRotation(M_PI * 2, 0, 0, 1);
    }
    [UIView commitAnimations];
}
}

- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
if (isLoading) return;
isDragging = NO;
if (scrollView.contentOffset.y &amp;gt;= scrollView.contentOffset.y + REFRESH_HEADER_HEIGHT) {
    // Released above the header
    [self startLoading];
}
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I am new in iPhone application development. What can I try next?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">19</re:rank></item><item><title>How to deploy an ios App on connect that is used by a private organization not public</title><link>https://stackoverflow.com/questions/79927902/how-to-deploy-an-ios-app-on-connect-that-is-used-by-a-private-organization-not-p</link><category>ios</category><category>iphone</category><category>flutter</category><category>app-store-connect</category><category>testflight</category><author>noemail@noemail.org (Mian Faseeh)</author><pubDate>Sat, 18 Apr 2026 12:54:04 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79927902</guid><description>
            &lt;p&gt;Im working on an app for australian government under a private company. The app will be used by a specific department of the australian government and it'll be available on ios.&lt;/p&gt;
&lt;p&gt;The confusion i have is this the app is private-use only and will not be for public but in order to be on ios it must be on appstore connect.
Currently, I'm putting it on internal testing where through testflight the department officers can use it and test it but when it final what should be the proper way of delivering the app.&lt;/p&gt;
&lt;p&gt;Should i keep it on internal testing as it works fine on it and update a version before every 90 days or should I apply it for review but that'll be for public too and that is strictly not the requirement.&lt;/p&gt;
&lt;p&gt;How to deploy such app and if alternative then what?&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>Xcode fails to connect to iPhone</title><link>https://stackoverflow.com/questions/79269396/xcode-fails-to-connect-to-iphone</link><category>ios</category><category>iphone</category><category>xcode</category><author>noemail@noemail.org (Karl Ehrlich)</author><pubDate>Tue, 10 Dec 2024 18:41:11 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79269396</guid><description>
            &lt;p&gt;After the recent Xcode update, my Mac is no longer able to connect to my iPhone. I’ve tried everything I can think of: buying a new cable, updating both my Mac and iPhone, restarting both devices, and even creating a new Xcode project. However, I keep encountering the same errors:&lt;/p&gt;
&lt;p&gt;First, I see this message:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Connecting to iPhone
Xcode will continue when the operation completes.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then, it changes to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Waiting to reconnect to iPhone
Previous preparation error: The tunnel connection failed while the system tried to connect to the device.:The tunnel connection failed while the system tried to connect to the device
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Finally, this is the last message before it loop over an dover again:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;iPhone may need to be unlocked to recover from previously reported preparation errors
&amp;lt;none&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Edit: Note that my iPhone is obviously unlocked the whole time&lt;/p&gt;
&lt;p&gt;I’m completely stumped. I’ve never had these issues before. Any help would be greatly appreciated!&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">2</re:rank></item><item><title>is it possible to get a callback when a UITableView reload is done?</title><link>https://stackoverflow.com/questions/5238617/is-it-possible-to-get-a-callback-when-a-uitableview-reload-is-done</link><category>iphone</category><category>ios</category><category>uitableview</category><category>animation</category><category>scroll</category><author>noemail@noemail.org (William Jockusch)</author><pubDate>Tue, 8 Mar 2011 21:34:12 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/5238617</guid><description>
            &lt;p&gt;I am reloading some cells in my table view.  After the reload is done, I want to scroll so that they are visible.  I am aware of the scrollToRowAtIndexPath:atScrollPosition: method.  But I need to call it after the reload as done, as said reload will change row heights.&lt;/p&gt;

&lt;p&gt;Here are some related questions, but they don't quite answer my question.&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/5112346/uitableview-scroll-to-bottom-on-reload"&gt;UITableView , Scroll to bottom on reload?&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/2156614/how-to-start-uitableview-on-the-last-cell"&gt;How to Start UITableView on the Last Cell&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;EDIT -- My reload does not insert or delete any rows.  Rather, I am reloading one or more cells to reflect updated information.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">9</re:rank></item><item><title>how to develop ios on windows</title><link>https://stackoverflow.com/questions/79929401/how-to-develop-ios-on-windows</link><category>ios</category><category>iphone</category><category>windows</category><author>noemail@noemail.org (Edwin David)</author><pubDate>Tue, 21 Apr 2026 11:03:40 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79929401</guid><description>
            &lt;p&gt;I'm just starting to experiment with app development and I'd like to build an iOS app. However, I only have a Windows PC. I know Xcode is exclusive to Mac, so what are my best options or workarounds for building and testing iOS apps on Windows? Any advice for a beginner would be greatly appreciated!&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>How to check if device is having poor internet connection in swift</title><link>https://stackoverflow.com/questions/60464111/how-to-check-if-device-is-having-poor-internet-connection-in-swift</link><category>ios</category><category>swift</category><category>iphone</category><category>reachability-swift</category><author>noemail@noemail.org (Hardik Vyas)</author><pubDate>Sat, 29 Feb 2020 10:28:50 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/60464111</guid><description>
            &lt;p&gt;I want to check if device is having very slow internet connection.&lt;/p&gt;

&lt;p&gt;I have used &lt;strong&gt;Reachability&lt;/strong&gt; class to check for internet connection is available or not.&lt;/p&gt;

&lt;p&gt;But here i want to check after every few sec that internet speed is not poor.&lt;/p&gt;

&lt;p&gt;Is this possible to find and yes than how can i do it.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">9</re:rank></item><item><title>NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)</title><link>https://stackoverflow.com/questions/30420345/nsurlconnection-cfurlconnection-http-load-failed-kcfstreamerrordomainssl-9813</link><category>objective-c</category><category>iphone</category><category>http</category><category>nsurlrequest</category><category>nsmutableurlrequest</category><author>noemail@noemail.org (Ruchir Shah)</author><pubDate>Sun, 24 May 2015 05:23:49 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/30420345</guid><description>
            &lt;p&gt;I am trying for an HTTP call on https. Here is my code snippet. &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;NSMutableURLRequest *request = [[NSMutableURLRequest alloc]
                                initWithURL:[NSURL
                                             URLWithString:@"https://testservice.fiamm.com/token"]];

[request setHTTPMethod:@"POST"];
[request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-type"];

NSString *postString = @"username=TestIphone&amp;amp;Password=T3st1ph$n&amp;amp;Grant_type=password";

[request setValue:[NSString stringWithFormat:@"%d", [postString length]] forHTTPHeaderField:@"Content-length"];

[request setHTTPBody:[postString
                      dataUsingEncoding:NSUTF8StringEncoding]];

// Fetch the JSON response
NSData *urlData;
NSURLResponse *response;
NSError *error;

// Make synchronous request
urlData = [NSURLConnection sendSynchronousRequest:request
                                returningResponse:&amp;amp;response
                                            error:&amp;amp;error];

// Construct a String around the Data from the response
NSString *strFiamm = [[NSString alloc] initWithData:urlData encoding:NSUTF8StringEncoding];
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;When I try in hurl or postman I get response proper but when I try in my code I get this error.&lt;/p&gt;

&lt;p&gt;NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)&lt;/p&gt;

&lt;p&gt;Any help or suggestions appreciated.!&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">4</re:rank></item><item><title>How to change iPhone deployment target</title><link>https://stackoverflow.com/questions/60988633/how-to-change-iphone-deployment-target</link><category>ios</category><category>iphone</category><category>flutter</category><category>dart</category><category>podfile</category><author>noemail@noemail.org (delmin)</author><pubDate>Thu, 2 Apr 2020 09:44:42 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/60988633</guid><description>
            &lt;p&gt;I have updated flutter today also with Xcode and I'm getting an error when trying to run my app on IOS&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported
deployment target versions is 8.0 to 13.4.99. (in target
'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;When I go to a runner from Xcode I can only change it to min version 8&lt;/p&gt;
&lt;p&gt;&lt;a href="https://i.sstatic.net/vwwrn.png" rel="noreferrer"&gt;&lt;img src="https://i.sstatic.net/vwwrn.png" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Flutter doctor result&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[✓] Flutter (Channel stable, v1.12.13+hotfix.9-pre.2, on Mac OS X
10.15.4 19E266, locale en-GB)
• Flutter version 1.12.13+hotfix.9-pre.2 at /Users/peter/development/tools/flutter
• Framework revision f139b11009 (3 days ago), 2020-03-30 13:57:30 -0700
• Engine revision af51afceb8
• Dart version 2.7.2&lt;/p&gt;
&lt;p&gt;[✓] Android toolchain - develop for Android devices (Android SDK
version 29.0.2)
• Android SDK at /Users/peter/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.&lt;/p&gt;
&lt;p&gt;[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.4, Build version 11E146
• CocoaPods version 1.8.4&lt;/p&gt;
&lt;p&gt;[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)&lt;/p&gt;
&lt;p&gt;[✓] IntelliJ IDEA Community Edition (version 2019.3)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 42.1.4
• Dart plugin version 193.5731&lt;/p&gt;
&lt;p&gt;[✓] Connected device (1 available)
• iPhone 11 Pro Max • 269B6B4A-E1E4-4461-B0F8-02DA3D21E477 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So how can I change the iPhone deployment target to a higher version in
flutter?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Updating the android studio gets rid of the error.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">9</re:rank></item><item><title>React native iOS arrow keys</title><link>https://stackoverflow.com/questions/72082515/react-native-ios-arrow-keys</link><category>ios</category><category>iphone</category><category>react-native</category><author>noemail@noemail.org (Mengnan)</author><pubDate>Mon, 2 May 2022 05:05:32 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/72082515</guid><description>
            &lt;p&gt;&lt;a href="https://i.sstatic.net/lO03r.jpg" rel="nofollow noreferrer"&gt;&lt;img src="https://i.sstatic.net/lO03r.jpg" alt="enter image description here" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have a page with multiple inputs, is it possible to add those arrow keys button to the keyboard from React native,&lt;/p&gt;
&lt;p&gt;so the user can use arrow keys to move between fields.&lt;/p&gt;
&lt;p&gt;FYI, I have the same page built in responsive web as well, and it has those arrow keys working prefectly inside the iPhone Chrome browser. Ideally I want to show the arrow keys in the app as well.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">1</re:rank></item><item><title>Firebase generate private key issue</title><link>https://stackoverflow.com/questions/79928338/firebase-generate-private-key-issue</link><category>android</category><category>ios</category><category>iphone</category><author>noemail@noemail.org (Satyam Kumar)</author><pubDate>Sun, 19 Apr 2026 15:38:47 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/79928338</guid><description>
            &lt;p&gt;I create cross platform mobile application on which i want to integrate firebase but while trying to get private key it shows &lt;strong&gt;Key creation is not allowed on this service account. Please check if service account key creation is restricted by organization policies.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;i tried with cloud console to override the parent policy but can't able to resolve this issue&lt;br /&gt;
help me if anybody have idea&lt;/p&gt;
&lt;p&gt;&lt;img src="https://i.sstatic.net/KPZyZvXGl.png" alt="enter image description here" /&gt;&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">0</re:rank></item><item><title>How to get CSRF token in iOS?</title><link>https://stackoverflow.com/questions/14298044/how-to-get-csrf-token-in-ios</link><category>iphone</category><category>ios</category><category>django</category><author>noemail@noemail.org (Joey Franklin)</author><pubDate>Sat, 12 Jan 2013 21:19:43 GMT</pubDate><guid isPermaLink="false">https://stackoverflow.com/q/14298044</guid><description>
            &lt;p&gt;So I'm trying to POST form data to my colleague's site in order login (simple username and password) from my iPhone app.  However, it appears that I need a CSRF Token in order to post.  I've done a lot of research on this and from what I can obtain this token from the &lt;code&gt;csrftoken cookie&lt;/code&gt; ( I read that here: &lt;a href="https://docs.djangoproject.com/en/dev/ref/contrib/csrf/" rel="noreferrer"&gt;https://docs.djangoproject.com/en/dev/ref/contrib/csrf/&lt;/a&gt;) using a GET request.  The problem is, I don't know what exactly to do with this GET request? Where do I get from?&lt;/p&gt;

&lt;p&gt;Here is the code so far for my post request:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;NSURL *url = [NSURL URLWithString:SERVER_ADDRESS];
NSData* postData= //Some form data
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[request setHTTPMethod:@"POST"];
[request setValue:[NSString stringWithFormat:@"%d", postData.length] forHTTPHeaderField:@"Content-Length"];
[request setValue:@"application/x-www-form-urlencoded charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[request setHTTPBody:postData];

[request addValue:token forHTTPHeaderField:@"X-CSRFToken"];  //Where do I get this token from

NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request
                                                              delegate:self];
[connection start];
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I know there are a lot of similar posts to this on StackOverflow, but I haven't found any with an answer that seems complete.  Usually it just directs me to the link above which is only filled with AJAX related info.  Help would be much appreciated!&lt;/p&gt;

        </description><re:rank scheme="https://stackoverflow.com" xmlns:re="http://purl.org/atompub/rank/1.0">11</re:rank></item></channel></rss>