In iOS 18, the tab bar has been moved to the top on iPad. How can I hide this tab bar? Using TabBarController.tabBar.isHidden = true isn't working.
Posts under iPad tag
126 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
This is an addended post referring to me getting bounced from Bank of America and account shut down and forced to firmware wipe etc my devices due to ‘account takeover’ from ‘malware’ as their crowdstrike or whatever prob read api or ip irregularity? They wouldn’t say, bye this happened to 4 other similar accounts in 6 months. I don’t use proxy or remote etc but the log below apparently reveals some kind of strange activity- I’m not smart enough to put it all together, much appreciated folks!!!
terminusd-471.140.5 pid 674 built on Jun 29 2024 06:58:06, iphoneOS 21G80 "iPhone", packet logging disabled
Companion link is currently enabled on this device 23:35:36.2420 : time of this status dump
--------- NRD Local Device Database Status (0 devices) ---------
--------- Director status --------- Name: Link Director
Enabled: YES
Fixed Interface mode: NO Thermal watcher registered: NO Thermal Pressure: Nominal SOCKS port: 62742
SOCKS server: (null) FD Usage: {
NETPOLICY = 2; Total = 6; VNODE = 4;
}
Unlocked data protection: ClassA
--------- Manager status ---------
Name: Policy Session Manager Policy Session: {
priority = control1
policies = {} }
Installed policies: { "NRLinkDirector-Drop" = (
1 );
}
Name: Link Manager - Bluetooth LinkManager type: Bluetooth State: Ready []
Links: {(
)}
Pipes: {( )}
Peripherals: (null) connectPeripheral invoked: (null) CentralMgr: (null)
PeripheralMgr: (null) currentAdvertisementState: Idle currentAdvertisementRate: Default BT connection state: (null)
Name: Link Manager - WiFi LinkManager type: WiFi State: Ready
Links: {(
)}
WiFi Interface: en0 (index 22) AWDL Interface: (null) (index 0) WiFi Available: NO
WiFi WoW Enabled: NO
WiFi Client Type: 0
Local WiFi Endpoint: (null) Local WiFi Signature: (null) Remote WiFi Endpoints: {
}
Remote WiFi Signature: (null) Remote AWDL EndpointDict: {
}
Available IPv4 addresses: (
)
Available IPv6 addresses: (
)
Available AWDL addresses: (
)
Prefer WiFi asserts: 0
Cleared Prefer WiFi asserts: 0
---- NRIKEv2Listener ---- IKEv2 Listener: (null) Registered links: (null)
Orphaned Device Monitor Connections: {( )}
Orphaned Device Preferences Connections: {(
)}
Ephemeral Device Connections: {(
Sent from my iPhone
In my project I had made the following code block
I changed //ToolbarItemGroup(placement: .topBarTrailing)
to ToolbarItemGroup(placement: .topBarLeading)
because I got a compile error. Then I started having the effect of everytime I did a Clean then Rebuild I would get the following Error
/Users/barrywest/Desktop/Apple Development/AppleTutorials/APAJSONReader/APAJSONReader/View/SchemaMaintenance/SchemaDetail.swift:149:42 'navigationBarTrailing' is unavailable in macOS
once clicked it would hightlight the commeted out code. then the error would magically go away after clicking on the error
If you do not click the error it would stay, even if you ran the code it would
display but the simulator would run instead of getting an error
I then delete the comment, but I still get the ghost complile error with the same effect.
I continued to make changes, and now the I get a different older display on the simulator, as compared to my Preivew Display. The colors seem to have gotten saved in the Run Simulator, even after Clean Build, Recompile...
I still get the ghost error which has been removed and the new Executable still contains ghost code which shows incorrect colors.
I can have the simulator and preview view running at the same time with different View Colors...
I have closed the project and reopend the project with no Changes.
My guess is some kind of file corruption somewhere ...
import SwiftUI
import SwiftData
struct SchemaDetail: View {
@Environment(\.modelContext) var dbContext
...
var body: some View {
VStack {
switch schemaName {
case .leagues:
switch displayCategory {
case .full:
leagueFullDisplay
case .brief:
leagueBriefDisplay
case .edit:
leagueEdit
case .create:
leagueCreate
}
...
}
//Text(schemaName.localizedName)
}
.navigationTitle(schemaName.localizedName)
.toolbar {
** //ToolbarItemGroup(placement: .topBarTrailing)**
ToolbarItemGroup(placement: .topBarLeading)
{
switch displayCategory {
case .full:
Button(action: {
}, label: {
Image(systemName: "minus.magnifyingglass")
})
Button(action: {
}, label: {
Image(systemName: "doc.badge.plus")
})
Button(action: {
// Preload from json Warning may be about using background thread ???
Task(priority: .background) {
loadLeagues()
}
}, label: {
Image(systemName: "folder.fill.badge.gearshape")
})
case .brief:
Button(action: {
}, label: {
Image(systemName: "plus.magnifyingglass")
})
Button(action: {
}, label: {
Image(systemName: "doc.badge.plus")
})
case .create:
Button(action: {
}, label: {
Image(systemName: "square.and.arrow.down.fill")
})
Button(action: {
}, label: {
Image(systemName: "arrowshape.turn.up.backward.circle.fill")
})
case .edit:
Button(action: {
}, label: {
Image(systemName: "square.and.arrow.down.fill")
})
Button(action: {
}, label: {
Image(systemName: "arrowshape.turn.up.backward.circle.fill")
})
}
}
}
}
}
#Preview {
SchemaDetail(schemaName: LeagueCategory.sessions, displayCategory: DisplayCategory.brief)
}
I'm using location simulation on my device via xcode a lot and it worked as expected since yesterday. Now it's broken :(
My custom gpx files are no longer visible in "Simulate Location". I only see the build-in locations. When I try to add a new gpx file with "Add GPX File to Workspace..." the gpx files are greyed out.
I created a new project and same here. No custom GPX files shown and cant add via menu.
I'm using xcode 15.4 and it worked before, but I updated to macOS 14.6 last week.
Did someone have experienced the same ? The Internet has no sign of such a behavior :(
Maybe the file association is broken?
I already removed xcode and user data related to xcode completly and reinstalled xcode, but this was not helping.
I am working on an iPad app using the front camera. The camera logic is implemented using the AVFoundation framework. During a session I use central stage mode to center the face with front camera . Central stage mode works fine in all cases except when I set the session preset photo. In other presets: high, medium, low, cif352x288, vga640x480, hd1280x720, hd1920x1080, iFrame960x540, iFrame1280x720, inputPriority presets central stage mode working except photo session preset. Can you explain why this happens or maybe it is an unobvious bug?
Code snippet:
final class CameraManager {
//MARK: - Properties
private let captureSession: AVCaptureSession
private let photoOutput: AVCapturePhotoOutput
private let previewLayer: AVCaptureVideoPreviewLayer
//MARK: - Init
init() {
captureSession = AVCaptureSession()
photoOutput = AVCapturePhotoOutput()
previewLayer = AVCaptureVideoPreviewLayer(session: captureSession)
}
//MARK: - Methods Setup Camera and preview layer
func setupPreviewLayerFrame(view: UIView) {
previewLayer.frame = view.frame
view.layer.insertSublayer(previewLayer, at: 0)
setupCamera()
}
private func setupCamera() {
guard let videoCaptureDevice = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .front) else { return }
AVCaptureDevice.centerStageControlMode = .app
AVCaptureDevice.isCenterStageEnabled = true
do {
let input = try AVCaptureDeviceInput(device: videoCaptureDevice)
captureSession.addInput(input)
captureSession.addOutput(photoOutput)
/// high, medium, low, cif352x288, vga640x480, hd1280x720, hd1920x1080, iFrame960x540, iFrame1280x720 and inputPriority presets working except photo session preset
captureSession.sessionPreset = .photo
DispatchQueue.global(qos: .userInteractive).async {
self.captureSession.startRunning()
}
} catch {
print("Error setting up camera: \(error.localizedDescription)")
}
}
}
now,ipad pro has M4.It support Swift Playgrounds,but must be built with a minimum of Xcode 15?
Why still need a mac, when I want to develop an ipad app!
Hello,
We are seeing a behavior where we find that a certain Url (docusign signing ceremony which is a webpage) works fine on Ipad with OS version 17.4.1 but NOT on Ipads with 17.5.1.
This behavior is exactly same if I use chrome browser, safari browser or our custom application (Maui Application and we host the signing ceremony)
I am not sure but since the OS is the difference here just wondering if there can be a potential issue here. or its still the cert issue from the provider.
NET::ERR_CERT_AUTHORITY_INVALID - is the error shown in Chrome and Safari shows "Safari can't open the page because it could n't establish a secure connection t the server".
Since I installed on my iPhone 15 pro IOS 18 beta 5 I have the following problem:
When I shutdown my phone, for all “ Find My” friends I have underneath their names “location not found”. The same bug happens with my iPad 10 same version and with my wife’s iPhone 15 same version.
The work around I found was going to my address book under my wife’s name stop sharing my location and then reshare my location back with her and then location not found for all my friends disappeared.
The solution was provided by an Apple agent but the thing I didn’t know at the time was if you shutdown your iPhone again all this process as to be reimplemented again. That is a bug for IOS 18 beta 5
Hello
Is it impossible to install an app to both iPhone and iPad when the app use NFC?
The app, I'm working on, use NFC on iPhone but not on iPad. The app program code checks iPhone or iPad and use NFC only on iPhone.
However, TestFlight and App Store show "No Compatible Hardware" on iPad and can't download. It works as expected on iPhone.
Target Device is set both iPhone and iPad, the configuration is TARGETED_DEVICE_FAMILY = "1,2"
According to Required Device Capabilities, iPad doesn't support NFC
https://developer.apple.com/support/required-device-capabilities/#ipad-devices
The app has UIRequiredDeviceCapabilities = nfc configuration only for iPhone.
But is it block installing to iPad? If so how to fix this issue?
Thanks in advance.
Hi,
I'm seeking assistance with finding the correct version of Xcode to test an emulator running iOS 17.5.1 for the iPhone 14 Pro and iPad Air (5th Generation).
I am experiencing issues with publishing my app to the App Store and receiving a Guideline 2.1 rejection. Although the app functions correctly on TestFlight and other devices, it crashes (white screen) when opened on the specified device and iOS version.
I have tested the app on multiple devices, and it works fine on those, but the Apple review team has reported crashes specifically on the aforementioned device and iOS version.
Could someone guide me on how to resolve this or direct me to the appropriate XCode version for testing?
Thank you for your help.
I’m using IpadOS18 beta. I love the new calculator however there are some major flaws. It can’t recognise longer more complicated equations. This is an easy fix. The m4 is more than capable for recognising these equations, please improve math notes.
In iOS 18 on iPad, the elevated tab bar order is persisted by the system. After reordering the tabs, how can I retrieve the current order of the tabs? and how to override the order programatically.
I can intercept the "Return" button and "Shift+Return" on an iPad's external Bluetooth keyboard with the TextField "onKeyPress" method. But - this always dismisses the keyboard. It looks like the TextField loses focus. This happens whether I return ".handled" or ".ignored".
How can I maintain focus on the TextField and not have the keyboard dismissed?
ViewControllers for the 8th and higher tabs are not displayed in the elevated Tab Bar. However, I am able to select these tabs both in the Tab Bar and the side bar.
func setTabs(){
let colors = [UIColor.red,.systemGray6,.green,.systemMint,.cyan,.yellow,.blue,.magenta]
var tabs = [UITab]()
let range = 0...10
for index in range {
if #available(iOS 18.0, *) {
let tab = UITab(title: "Tab_\(index)", image: UIImage(systemName: "globe"), identifier: "tab__\(index)", viewControllerProvider: {tab in
let vc = UIViewController()
vc.view.backgroundColor = colors[index%colors.count]
return vc
})
tabs.append(tab)
}
}
tabbarController.setTabs(tabs, animated: true)
}
How to show icons on tabs in iPadOS 18?
iPadOS 18 shows my UITabBar on the top of the iPad. That's fine with me, even though iOS 18 still shows the tab bar on the bottom of the iPhone.
iPadOS 18 does not display my icons on the tab bar items. That's not fine, as these icons carry information. iOS 18 still does show the tab icons.
How can I either
Show the tab icons in the tab items displayed on the top, or
Display the tab items with their icons on the bottom, as in iPadOS 17 and before and in iOS 18?
I have a few UI Tests in my app, and some of them access the tab bar, for instance: XCUIApplication().tabBars.element.buttons.element(boundBy: tabBarButtonCount - 1).tap()
In Xcode 16 though, when performing tests on iPad, this fails, likely due to the new tab bar. How am I supposed to perform this kind of action in iPadOS 18?
I have a TabView with individual tabs containing NavigationSplitViews. On iPadOS 18, when moving the new UI into a sidebar, the title of the first column in the current split view randomly spins its way in and out of view. Is this just a beta bug, or am I doing something wrong? Hard to convey without a recording, but hopefully the screenshots will show what I mean. Thanks.
I updated to the IOS 18 Beta and my Apple pencil won’t work on my device at all. I detach and reattach it and it recognizes its power level but it won’t write or highlight.
Hello,
I have an iPad app that users are running on their M1 / M2 MacBooks thanks to the "Designed for iPad" feature.
Some of them reported to me that the pressed keyboard keys were not recognized.
According to my source code, it seems that my custom views (that are set as firstResponder) do not get pressesBegan events.
While I could not reproduce this specific problem on my M1 Macbook, I found a strange problem that may be related.
My view also supports interaction with game controllers.
I found that the emulated controller (which is using the keyboard, when the controller emulation feature of the Designed for iPad app is set to On) has some problems.
The valueChangedHandler of the GCExtendedGamepad from the GCGameController is only fired if the app is compiled with the "Requires full screen" option set to On.
If Requires full screen is unchecked in XCode, the Emulated Controller is still present in the list of game controllers, but no button callbacks are triggered.
Note that a real game controller connected via USB will work correctly no matter how Requires full screen is set.
Could there be a focus bug of the keyboard not sending events when the app is not a full screen app (resizable on mac, and multitask on iPad)?
Or is there something I can change to avoid this problem?
I'm lost.
I have an iPad Pro 12.9". I am looking to make an app which can take a simultaneous audio recording from two different microphones at the same time. I want to be able to specify which of the 5 built-in microphones each audio stream should use - ideally one should be from the microphone on the left side of the iPad, and the other should be from one of the mics at the top of the iPad. Is this possible to achieve with the API?
The end goal here is to be able to use the two audio streams and do some DSP on the recordings to determine the approximate direction a particular sound comes from.