iOS is the operating system for iPhone.

Posts under iOS tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

How to get the serial number of non-MFi USB?
I am developing an iOS program which is using UIDocumentPickerViewController to get the content of USB. It's OK. But I also need to get the serial number of USB. For MFi USB, I can use EAAccessoryManager to get the serial number, but it cannot apply to non-MFi USB. Is there any method to get the serial number of non-MFi USB? Jacks Hung
1
0
352
Aug ’23
Why cannot I purchase Apple Developer Account using mastercard from Bangladesh?
First of all when I try to purchase $99 Apple Developer membership from developer.apple.com it gets cancelled automatically. When I go to store.apple.com I can't add payment method. When I try to add payment method in appleid.apple.com/account/manage I can select Bangladesh as shipping address but can't select Bangladesh in Country/Region popup. Does that mean, the people of Bangladesh cannot buy Apple Developer membership and become an App Developer? Why can we select Bangladesh in shipping but can't select Bangladesh for payment in appleid.apple.com?
1
0
509
Aug ’23
iOS 14 Unable to Activate after restore
Last night I restored my iPhone 11 Pro Max to iOS 14 beta. After iPhone restored I am stuck at the activation screen. In setup assistant after selecting country and signing into my WiFi my iPhone tries to activate. After a few seconds I get: "Unable to Activate Your iPhone could not be activated because the activation server cannot be reached. Try connecting you iPhone to a Mac or a PC with iTunes to activate, or try again in a couple of minutes. If this problem persists, contact Apple Support at apple.com/support" Restored on a MacBook 12" running macOS Big Sur beta 2 Shutdown iPhone on setup assistant screen and restarted. Used multiple good Wi-Fi connections. Also tried activating on Cellular. Tried removing sim card and reinserted. Tried a different sim card from the same carrier. Re-downloaded iOS 14 IPSW file. Put iPhone back into recovery mode. Opened finder selected iPhone, held down option while clicking on restore. Selected iOS 14 IPSW file. iPhone restored. Get the same activation error. Put iPhone into recovery mode. Opened finder, this time I selected restore without holding option. iPhone restored back to iOS 13. Also tried activating through finder and I get the following error: "Activation Failed The iPhone cannot be synced. Received an unexpected response from the device." Still receive "Unable to Activate". It's almost 24 hours and I am still unable to activate my phone. Anyone else having issues?
20
0
12k
Oct ’23
WKWebView password autofill
Hi, We've been using the WKWebView for authentication and authorization purposes inside our app. Unfortunately, we are not able to enable the password autofill/keychain integration with WKWebView. The website is working correctly (we can see the suggested passwords and the key for the password list)whenever we are opening it using Safari, but when we are trying to open it inside our app using the WKWebView there is only default toolbar ( with arrows and done button). Is there a possibility to enable autofill using some javascript scripts or WKWebViewConfiguration in WKWebView or is this behaviour is reserved only for SFSafariViewController and Safari?
9
1
8.5k
Aug ’23
NavigationView jumps when transitioning from displayMode large to inline
In a simple app with a ScrollView inside a NavigationView, on scroll the content of the scrollView doesn't smoothly transition from its size with navigationBarDisplayMode .large to .inline, but rather makes this a jarring jump. Minimum code to reproduce: struct ContentView: View {     var body: some View {         NavigationView {             ScrollView {                 ForEach(0..<200, id: \.self) { i in                     Text("Row \(i)")                         .frame(maxWidth: .infinity)                 }             }             .navigationTitle("Test")         }     } } The following code produces the desired smooth transition though: struct ContentView: View {     var body: some View {         NavigationView {             List {                 ForEach(0..<200, id: \.self) { i in                     Text("Row \(i)")                 }             }             .navigationTitle("Test")         }     } } I could not replicate the issue using UIKit's UITableViewController inside a UINavigationViewController, nor with a UIScrollView inside a UINavigationViewController. Observed in simulator and on device running iOS 14 public beta (18A5319i), built with Xcode 12.0 beta 2 (12A6163b) on macOS 10.15.5 (19F101).
12
4
6.1k
Oct ’23
An infinite CANVAS
I needed an infinite canvas for my app which is basically a drawing board where one can draw things using pen. So, I thought of having a very large custom UIView inside a UIScrollView. And in the custom view, I could keep drawing things. But, I ended up with a warning saying something like below and nothing drawn on screen. [&lt;CALayer: 0x5584190&gt; display]: Ignoring bogus layer size (50000, 50000) Which means, I can't have such a big CALayer to draw things. Now, solution? alternative? Then comes CATiledLayer. I made my large UIView backed by CATiledLayer now. After having a proper levelOfDetails and levelOfDetailsBias value, things worked like charm. Until I ended up facing another problem. Since, CATiledLayer caches drawing in different zoom levels if I try to scale the view after changing the drawing content the cached drawings appear and then the new contents get drawn. I don't find an option to invalidate caches in different levels. All the solutions I came across leads me to clear the entire contents of the CATiledLayer on drawing content change which won't help again. Do I miss something here? Is there a way with which I can clear caches at different levels? Or is there any other solutions which could solve my need? Can someone help me with this?
1
0
1.5k
Aug ’23
UITabBarController is unsupported as viewController
Hi, I'm testing one of my app on iOS 14 with Xcode 12 beta 3 (12A8169g) and I have a problem with my storyboards. Xcode give me this error for all the storyboards that contain a split view controller: An internal error occurred. Editing functionality may be limited. The log generated by the Xcode "Report a bug" button say: Exception name: NSInvalidArgumentException Exception reason: UITabBarController is unsupported as viewController for -[UISplitViewController setViewController:forColumn:] in Primary column It worked correctly on Xcode 12 beta 2. Has anyone encountered the same problem and found a way to fix it? Thank you
7
0
2.4k
Jul ’23
Nested ZStack fails to space contained views properly - SwiftUI bug?
I have a ZStack with two nested views. They are both the same type, RowView, and each RowView has another ZStack and a Text. Both of these RowViews have the same height for some reason. And when I replace the RowView ZStack with just a Text, it works correctly. import SwiftUI struct ContentView: View {     var body: some View {         ScrollView { &amp;#9;&amp;#9; // remove this ZStack and things work with the other nested ZStacks             ZStack {                 Rectangle()                     .foregroundColor(.blue)                     .shadow(radius: 5, x: 5, y: 5)                                  VStack {                     // Two independent RowViews:                                          RowView(title: "Some really long text for some stuff lollola really long text for some stuff lollola")                                          RowView(title: "and more")                 }             }             .padding()         }     } } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } } struct RowView: View {     @State var title: String          let boxSize: CGFloat = 40          var body: some View {         HStack(alignment: .top, spacing: nil) {             Rectangle()                 .foregroundColor(.orange)                 .frame(minWidth: boxSize,                        maxWidth: boxSize,                        minHeight: boxSize,                        maxHeight: boxSize)                 .padding(5)                          // this has each RowView set its own height correctly //            Text(title) //                .multilineTextAlignment(.leading) //                .padding(5)             // this forces both RowViews to have the same height, even though they are separate from each other             ZStack {                 Rectangle()                     .foregroundColor(.gray)                                  Text(title)                     .multilineTextAlignment(.leading)                     .padding(5)             }             .padding(5)             // this also forces both RowViews to have the same height //            Rectangle() //                .foregroundColor(.gray) //                .overlay(Text(title).padding()) //                .padding(5)         }     } } It seems strange that both independent RowViews will end up having the same height. Read the release notes and didn't see mention of this being a possible bug. Copy pasta and see the results if you'd like. Notice the Gray ZStack containers are all almost the same height? Make the test of the first row even longer. Notice how the second one increases it's height? Is this a bug,? Are ZStacks never supposed to be nested?
2
0
2.4k
Aug ’23
iOS 14 no signal, no cellular data
Hi! I've installed iOS beta 4 on my iPhone 11 Pro and since then, I lost the signal and I don't have data. I have another iPhone X with iOS 14, and I don't have issue with it. It only occurs on iPhone 11. I tried many things like: Reset network setting Turn off/on airplane mode Turn off/on cellular data Hard reboot Soft reboot Reset content and data Turn off/on roaming ... Same issues It seems that the cell is looking for the signal constantly. Do you have any idea how to fix it ?
504
1
156k
Oct ’23
Crash while rendering glyphs in iOS 14
I've a custom UIView to render a large piece of text using CATiledLayers. My draw(rect:) implementation is quite simple: override func draw(_ rect: CGRect) { &#9;let range = layoutManager.glyphRange(forBoundingRect: rect, in: textContainer) &#9;layoutManager.drawBackground(forGlyphRange: range, at: .zero) &#9;layoutManager.drawGlyphs(forGlyphRange: range, at: .zero) } This code works without any issue on iOS 13, but fails with a crash on iOS 14 simulator: Thread 9: EXC_BAD_ACCESS (code=1, address=0x28) #0 0x00007fff2396a3f5 in _NSLayoutTreeMoveToGlyphIndex () I can see that draw(rect:) is being called from different threads in both iOS 13 and 14. However the EXC_BAD_ACCESS has never happened so far in iOS 13. I wonder whether this is a behaviour change in iOS 14 or an issue. If this is a change in NSLayoutManager, then is it still possible to use CATiledLayer to render large amount of text in coordination with NSLayoutManager?
1
0
838
Oct ’23
[Apple Watch] Unable to Check for Update - Not connected to the internet error
Hi. I am pairing my Apple Watch Series 5 to my iPhone running ios 14. The pairing is successful but unable to proceed with the set up because an update is needed to be downloaded first. I updated the os for watch but I keep on getting “Unable to Check for Update - Checking for a software update failed because you are not connected to the internet”. I am definitely connected to the internet. Watch was reset to factory defaults and I am now pairing it as a new device but it fails due to the issue mentioned above.
353
3
403k
Nov ’23
Flutter App - iOS version problems
I have developed an app in Flutter and deployed iOS version in TestFlight. App works fine sometimes but on load, app freezes and user need to close the app many times. It works 1 out of 5 times. When i connect my device directly to my mac and run the app, it works fine. This problem is only on iOS and only on the app I downloaded from Testflight. I don't see any issues in the logs as well. App freezes on launch and no action works on the app. If I close it and reopen again, it works sometimes. My backend is NodeJS service hosted on AWS. The REST endpoint is not https but http. Not sure if this is causing the issue or some internal flutter or iOS process which is causing app to freeze. Same app in Android works perfectly fine.
1
0
1.8k
Jul ’23
PUBG lags on IOS 14 IPhone XR
Really I’m gonna Die if you not fix it ASAP ios 13.7 was best when I updated to iOS 14 then everything Gone to Hell pubg lags in game between matches only iOS 14 and iOS 14.1 users facing PUBG lag render issue fix it or I will never update your shit updates in my life in-between matches it start frame drops and we die like a noob because of this so bring new update and iOS 14.2 must fix it 😡
39
0
16k
Oct ’23