iOS is the operating system for iPhone.

iOS Documentation

Posts under iOS tag

4,685 results found
Sort by:
Post not yet marked as solved
4 Views

Unexpected SIP Re-Register Message with integrity-protected=no value

Hi, We're using test devices with iOS 13+ to test our VoLTE network as these devices (13+) has default VoLTE profile which works without device certification. After successful initial SIP registration, iPhone is sending SIP Re-Register with integrity-protection=no, then network (cscf) is terminating existing registration and returning 401 to challenge Re-Register and dropping active call as it deletes active registration. we wonder; 1-) why iPhone is sending SIP Re-Register frequently. Although Reg-expire timer in successful initial Registration is 7200 seconds, Phone is sending periodical SIP Re-registers at almost 1 min intervals. 2-) Network forces iPhone to enable integrity-protection in initial SIP Registration and iPhone accepts this. Although, integrity-protection is used in initial SIP Registration, why does iPhone send SIP Re-Register with integrity-protection=no? Thanks Regards
Asked
by erolturac.
Last updated
.
Post not yet marked as solved
40 Views

Thread 1: Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value

In the fps im making, I am now working on mapping the levels. I have already made the walls and provided texture on them, and now I'm doing the same to the floor. I am able to code a red floor, however whenever I try to code texture on it I get the following error: "Thread 1: Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value" The code appears at this line in ViewController.swift return Textures(loader: { name in Bitmap(image: UIImage(named: name)!)!}) Here's the full code for ViewController.swift: import Engine private let joystickRadius: Double = 40 private let maximumTimeStep: Double = 1 / 20 private let worldTimeStep: Double = 1 / 120 private func loadTextures() -> Textures {   return Textures(loader: { name in Bitmap(image: UIImage(named: name)!)!}) } private func loadMap() -> Tilemap {   let jsonURL = Bundle.main.url(forResource: "Map", withExtension: "json")!   let jsonData = try! Data(contentsOf: jsonURL)   return try! JSONDecoder().decode(Tilemap.self, from: jsonData) } class ViewController: UIViewController {   private let imageView = UIImageView()   private let panGesture = UIPanGestureRecognizer()   private var world = World(map: loadMap())   private var lastFrameTime = CACurrentMediaTime()   private let textures = loadTextures()   override func viewDidLoad() {     super.viewDidLoad()     setUpImageView()     let displayLink = CADisplayLink(target: self, selector: #selector(update))     displayLink.add(to: .main, forMode: .common)     view.addGestureRecognizer(panGesture)   }   private var inputVector: Vector {     switch panGesture.state {     case .began, .changed:       let translation = panGesture.translation(in: view)       var vector = Vector(x: Double(translation.x), y: Double(translation.y))       vector /= max(joystickRadius, vector.length)       panGesture.setTranslation(CGPoint(         x: vector.x * joystickRadius,         y: vector.y * joystickRadius       ), in: view)       return vector     default:       return Vector(x: 0, y: 0)     }   }   @objc func update(_ displayLink: CADisplayLink) {     let timeStep = min(maximumTimeStep, displayLink.timestamp - lastFrameTime)     let inputVector = self.inputVector     let rotation = inputVector.x * world.player.turningSpeed * worldTimeStep     let input = Input(speed: -inputVector.y, rotation: Rotation(sine: sin(rotation), cosine: cos(rotation)))     let worldSteps = (timeStep / worldTimeStep).rounded(.up)     for _ in 0 ..< Int(worldSteps) {       world.update(timeStep: timeStep / worldSteps, input: input)     }     lastFrameTime = displayLink.timestamp     let width = Int(imageView.bounds.width), height = Int(imageView.bounds.height)     var renderer = Renderer(width: width, height: height, textures: textures)     renderer.draw(world)     imageView.image = UIImage(bitmap: renderer.bitmap)   }   func setUpImageView() {     view.addSubview(imageView)     imageView.translatesAutoresizingMaskIntoConstraints = false     imageView.topAnchor.constraint(equalTo: view.topAnchor).isActive = true     imageView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true     imageView.widthAnchor.constraint(equalTo: view.widthAnchor).isActive = true     imageView.heightAnchor.constraint(equalTo: view.heightAnchor).isActive = true     imageView.contentMode = .scaleAspectFit     imageView.backgroundColor = .black     imageView.layer.magnificationFilter = .nearest   } } Here's the code for other files that deal with the texturing of the floor and the level in general: Textures.swift {   case wall, wall2   case floor, ceiling } public struct Textures {   private let textures: [Texture: Bitmap] } public extension Textures {   init(loader: (String) -> Bitmap)   {     var textures = [Texture: Bitmap]()     for texture in Texture.allCases     {       textures[texture] = loader(texture.rawValue)     }     self.init(textures: textures)   }   subscript(_ texture: Texture) -> Bitmap   {     return textures[texture]!   } } Renderer.swift:   public private(set) var bitmap: Bitmap   private let textures: Textures   public init(width: Int, height: Int, textures: Textures) {     self.bitmap = Bitmap(width: width, height: height, color: .black)     self.textures = textures   } } public extension Renderer {   mutating func draw(_ world: World) {     let focalLength = 1.0     let viewWidth = Double(bitmap.width) / Double(bitmap.height)     let viewPlane = world.player.direction.orthogonal * viewWidth     let viewCenter = world.player.position + world.player.direction * focalLength     let viewStart = viewCenter - viewPlane / 2     // Cast rays     let columns = bitmap.width     let step = viewPlane / Double(columns)     var columnPosition = viewStart     for x in 0 ..< columns {       let rayDirection = columnPosition - world.player.position       let viewPlaneDistance = rayDirection.length       let ray = Ray(         origin: world.player.position,         direction: rayDirection / viewPlaneDistance       )       let end = world.map.hitTest(ray)       let wallDistance = (end - ray.origin).length               // Draw wall       let wallHeight = 1.0       let distanceRatio = viewPlaneDistance / focalLength       let perpendicular = wallDistance / distanceRatio       let height = wallHeight * focalLength / perpendicular * Double(bitmap.height)       let wallTexture: Bitmap       let wallX: Double       if end.x.rounded(.down) == end.x       {         wallTexture = textures[.wall]         wallX = end.y - end.y.rounded(.down)       }       else       {         wallTexture = textures[.wall2]         wallX = end.x - end.x.rounded(.down)       }       let textureX = Int(wallX * Double(wallTexture.width))       let wallStart = Vector(x: Double(x), y: (Double(bitmap.height) - height) / 2 - 0.001)       bitmap.drawColumn(textureX, of: wallTexture, at: wallStart, height: height)               // Draw floor       let floorTexture = textures[.floor]       let floorStart = Int(wallStart.y + height) + 1       for y in min(floorStart, bitmap.height) ..< bitmap.height {         let normalizedY = (Double(y) / Double(bitmap.height)) * 2 - 1         let perpendicular = wallHeight * focalLength / normalizedY         let distance = perpendicular * distanceRatio         let mapPosition = ray.origin + ray.direction * distance         let tileX = mapPosition.x.rounded(.down), tileY = mapPosition.y.rounded(.down)         let textureX = Int((mapPosition.x - tileX) * Double(floorTexture.width))         let textureY = Int((mapPosition.y - tileY) * Double(floorTexture.height))         bitmap[x, y] = floorTexture[textureX, textureY]       }       columnPosition += step     }   } } The rest of the code can be found in the link below: https://github.com/KingDecorpel12/RampageFPS/tree/main/RetroRampage/Source Any and all help will be greatly appreciated!
Asked Last updated
.
Post not yet marked as solved
7 Views

iPhone 12 Pro Max Hard Reboot Issue

My phone keeps hard rebooting by itself I have discovered the exact sequence of events that cause it to do a hard reboot. When my phone is connected to my home Wi-Fi and connected to my car with CarPlay and I begin to leave my home, just when it looses Wi-Fi and switches to cellular the phone goes dark and the apple logo appears.  My phone is running the 14.7 beta 3, but this seems to be an issue also with 14.6 public release because my wife’s phone is doing the same thing and she is running 14.6.  This was removed from the general discussion because the word Beta is in it, this is clearly nothing to do with the beta software as it’s doing the same thing running 14.6 Anyone else having the same issue or knows of a fix?
Asked Last updated
.
Post not yet marked as solved
12 Views

Network error on iphone11 ios 14

Getting a Network error (Connect to the internet and try again.) when using cellular data. I have read that this is due to the ios 14 update. Should I go to the Apple store to get this fixed? Will there be another update coming out that will fix this?
Asked Last updated
.
Post not yet marked as solved
44k Views

IOS 14 WiFi

Anyone experiencing issues with IOS 14 and wifi connectivity?
Asked
by TonySFL.
Last updated
.
Post not yet marked as solved
14 Views

Information on bottom microphones on iPhone 11 Pro

Hello, I know there are 2 bottom microphones on the iPhone 11 Pro, But on recording apps like FilMiC Pro, only one of the bottom mics is shown in the settings. I would like to know how these microphones work, are they treated like a single mic? Thanks, Ohad.
Asked Last updated
.
Post not yet marked as solved
23 Views

New iPhone 12 iOS 14.6 Bluetooth Not Working

So I purchased the new iPhone 12 yesterday and noticed today that the Bluetooth gets stuck loading and never finds my devices. I have reset network settings, restarted my phone multiple times, turned the Bluetooth on and off and nothing is working. Please tell me there’s a fix for this or do I need to send my iPhone back?
Asked Last updated
.
Post marked as solved
55k Views

[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.
Asked Last updated
.
Post not yet marked as solved
17 Views

Help with hardware tests

Hello, I want to test the following components in different scenarios, on an iPhone 11: WiFi (connection quality and speed) Bluetooth (connection quality and speed) NFC - what parameters should I test? GSM (connection quality and speed) GPS (connection quality) What is the best way to test these components? Should I use an existing APP? Thanks, Ohad.
Asked Last updated
.
Post not yet marked as solved
474 Views

IOS 14.5 Charging problem

Hi, after I update my iPhone12 to ios 14.5 and charge my phone it got stuck to 80% battery. I usually charge my phone for 2 hours and its 100%, but after the update more than 2 hours it is still at 80%. Then I restart my phone and it became 84%, then I charge it again but the percentage won't go up. What should I do about it? Any fix you can recommend? or should I just keep it charging even if the percentage won't go up? My battery health is 99%. Thank you!
Asked
by vgregorio.
Last updated
.
Post not yet marked as solved
361 Views

Safari web inspector for iPhone showing only console, sources and audit tabs.

I'm using Safari Web Inspector for a long time for debugging iPhone web apps and it was pretty much working. Now suddenly it's stopped working for iPhone devices. It's showing only the console, sources, and audit tab. All other tabs like elements, network, and storage, etc. went missing. Now I'm not able to debug my mobile web apps on iPhone devices. Please help me to get it to work. My system Information: Mac OS: 11.4 (20F71) iOS: 14.6 Safari: 14.1.1 (16611.2.7.1.4)
Asked Last updated
.
Post not yet marked as solved
36 Views

iOS 15 Notification Content not working?

I'm trying to get a simple notification content working in iOS 15 beta 1 and I just get a blank screen in the notification content when long-pressing. Is this a known issue?
Asked Last updated
.
Post not yet marked as solved
4.5k Views

Can I pair watchOS 6.0 with iOS 14?

My iPhone 11 Pro is running the iOS 14 beta and I went to pair my Apple Watch series 4, which is running watchOS 6.0 apparently (I hadn’t used it in a while). Watch app tells me I need to update my watch before I can finish pairing, but then it says it can’t check for an update due to lack of internet connection (which is false). Not really sure what to do here... my watch is kind of bricked right now... seems like the only solution would be to downgrade iOS back to 13 or pair the watch with another iPhone and then update watchOS, reset it, and try pairing with my iPhone again... though I don’t have another phone. I have an iPad though...
Asked
by beng0ld.
Last updated
.
Post not yet marked as solved
29 Views

GSX Account

Hello sir please can you help me to great Apple GSX ACCOUNT for Dheeshaan1993@gmail.
Asked Last updated
.
Post marked as solved
12k Views

IOS 14.4 Continued Bluetooth Issues

Hi all, My phone has just been updated IOS 14.4. It seems there is no solution for Bluetooth problems. My Iphone X with IOS 13 works well with the Bluetooth in my Toyota car. It can play music and receive phone call via Bluetooth. Since I got Iphone 12 Pro Max with IOS 14, more issue arises. Bluetooth just constantly disconnected when music is turned on. It is not able to receive phone call from Iphone via Bluetooth even though I did reset its setting as well as iphone settings. This issue is really annoying if somebody call when I am driving. Does anyone get same frustrating matter? I am so disappointed with Apple Services since IOS 14 was released . Please fix this as soon as possible.
Asked Last updated
.