After upgrading to xcode17, when I use init(host: NWEndpoint.Host, port: NWEndpoint.Port, using: NWParameters) to initialize the NWConnection, it runs on ios16.1 and crash!How to fix this problem?
Posts under iPad tag
126 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
I'm working on a project that involves depth sensing using Apple's ARKit, and I've run into a bit of a challenge. I hope someone can provide some guidance.
I'm currently capturing depth information using ARKit's SceneDepth feature, and I also have the color image captured with CapturedFrame. However, the resolutions of these two sources are different. The SceneDepth image has a lower resolution compared to the CapturedFrame image.
Now, I need to align these two images and upscale the SceneDepth image to match the resolution of the CapturedFrame image. Essentially, I want to ensure that the depth information corresponds precisely to the color image.
Could someone please walk me through the steps or provide some code snippets on how to achieve this upscaling and alignment?
My 4th generation IPad Pro battery has drained from 100% at 9p.m. to 34% at 7a.m with no usage.
This has happened twice since installing IOS 17 - any suggestions?
I'm using karabiner-elements on my macbook air.
I hope this app can be used on the iPad as well.
Is it possible to create a physical keyboard customization app like karabinar elements for iPad?
We are in the midst of testing camera and photo/video access using iPadPro 17 Beta (21A5326a) from within our application, and we are encountering an error message on only one device (iPad Pro 12.9-inch, A2229). Full access to the camera roll has been explicitly granted to the application when prompted. On only the above device, attempting to select an existing photo results in this error popup: "Photo or Video Unavailable: This app is using the Photos picker in an unsupported configuration." (We are able to take and save new photos from within our application on this device with no issues.) I have a second device on hand (iPadPro 10.5-inch, A1701) that presently also has the same iPadOS version installed and is running the same application, and we are able to select existing photos and take new photos with no errors. I have compared the Photos settings on both devices, and they appear to be identical. On a third iPad device running with the same iPadOS version, application, and Photos settings (that device is not in my possession), it has been reported that no errors are encountered when either taking new photos or selecting existing photos via the Photo Picker from within our app. We are trying to figure out what might be causing this error to appear when selecting existing photos on only the A2229 device, and/or what aspect of the configuration or settings would need to be modified in order to use the photo picker on that one iPad Pro. This issue had not been encountered on the A229 device while running with iPadOS 16. Searching the text of this error message online has not returned anything significantly meaningful thus far.
Using Swift/IOS/iPad Xcode. How to change button text programmatically post app start.
If the button text is X change it to Y.
Is there a way to acces the hostfile in iPhone/iPad?
if Yes, How can we edit a host file in iphone device?
I want to use the AirPrint API, which is a standard OS printing function, programmatically on an iOS application to print directly to a printer by specifying single-sided printing instead of double-sided printing for the first print after the OS is initialised.
〇Verification environment
・Device: iPad 9 generation
・OS:OS16.6
・Printer model: EPSON PX-S730 / Brother MFC-J7300CDW / Canon G5030 / EPSON PX-M791FT
※All printers used for verification support AirPrint and are capable of duplex printing.
〇Issue
The duplex printing option can be specified from the program using the AirPrint API property "duplex",
However, when printing is executed from the program, the specified print option "duplex printing" is not reflected in the AirPrint API.
〇Verification results
Installed the developed print verification app on the device in factory default state, and executed the print process from the app to the printer.
(1st time) Set the property "duplex printing" = duplex or single-sided in the AirPrint API of iOS → In both cases, printing was performed on both sides.
(2nd and subsequent times) Set the property "duplex printing" = duplex or single-sided in the AirPrint API of iOS → In both cases, printing is done on one side.
〇Source Code
The print verification application we developed uses the UIPrintInteractionController class in Swift to specify the printing options for duplex printing.
We believe we can specify this by setting "info.duplex = UIPrintInfo.Duplex.none" in the following source code and adding it to printInfo.
func buttonClick(_ sender: Any) {
let printController = UIPrintInteractionController.shared
let printInfo = UIPrintInfo(dictionary: nil)
printInfo.jobName = "PrintJob from PrintTestApp"
// color
printInfo.outputType = UIPrintInfo.OutputType.general
// duplex mode for the print
printInfo.duplex = UIPrintInfo.Duplex.none // set the single side option
printController.printInfo = printInfo
// PDF printing in project folder
printController.printingItem = Bundle.main.url(forResource: "sample", withExtension: "pdf")!
// printer settings
let printer = UIPrinter(url: URL(string: "ipps://XXXXXXX/ipp/print")!)
// direct printing
printController.print(to: printer, completionHandler: {
controller, completed, error in
guard error == nil else {
return
}
})
}
How to change button attributes in iOS swift programmatically after app starts.
I'm developing an app that connects and uses a USB device.
Is there a way to build and debug in Xcode with a USB device connected to an iPad or iPhone?
I tried connecting a USB hub to ipad, but Xcode didn't recognize it.
Using Devices
PC:mac mini M1
Soft:Xcode
ipad:ipad air(5th)
USB Device:MOTU M4(Audio Interface)
I did an automatic upgrade, plugged into Imac, and wifi active.
Now im stuck on "Press hom to upgrade".
After I press home, it asks for password and it does not accept any of my passwords.
Force restart does nothing.
Any ideas?
Oh and when I plug the iPad into the Imac, it tells me that new software is needed, but then it says no relevant software is available on the app store.
The 10th-Gen iPad differs from its predecessors by having a camera that's located at the top of its landscape orientation. This is a headache for me since my app needs to know the rough camera location given the device's orientation for AR purposes.
I can find out whether the device is a tablet or not, but I can't find out whether it's an iPad 10. Are there any direct or indirect ways for me to find out whether a camera is placed for portrait or landscape use?
my app was rejected by this reason:
While we appreciate that your app is intended primarily for use on iPhone, in order to bring your app into compliance with App Store guidelines, all apps designed for use on iPhone must still be formatted correctly and behave properly when run on iPad.
How can I solve this problem without adding iPad as a destination in Xcode.
I am creating a barcode reader using the AVfoundation framework for iOS and IPadOS. The read result goes into payloadstringvalue, but I want to check the control characters contained in the symbol, so I am using the raw data of the description, which is a property of NSObjectProtocol inherited by VNBarcodeObservation. However, I noticed that if the length set in the raw data exceeds 26, some of the raw data in the description is omitted. So my question is, is it possible to set it so that all the raw data in the description is written out without omitting any raw data? If so, could you please tell me how to set this up? Also, if you know of any other way to extract the raw barcode data, I would appreciate it if you could let me know.
Thank you.
I'm working on an .html file. On Safari iOS/iPad, when testing on my local web server I get correct values for window.innerHeight. However when uploading to a dev/prod environment innerHeight is incorrect (so the elements in the page do not fit the screen).
Testing on ipad air 3rd gen, IpadOS 16.5.1 I get these values for window.innerHeight :
local server, navigation bar only (landscape): 764 => correct
local server, navigation bar and tab bar (landscape): 731=> correct
dev/prod environment, navigation bar only (landscape): 795 => incorrect
dev/prod environment, navigation bar and tab bar (landscape): 795 => incorrect
I have a similar issue when testing on portrait. InnerHeight is bigger than it should be and doesn't change when the tab bar is open. QA team also tested on Iphones and gets the same issue.
Tried alternatives (visualViewport.height, 100vh, documentElement.clientHeight...they all are incorrect on a real environment)
Hi everyone,
I have an old iPad 2 which I want to reset but it has the "find my iPad" turned on; the problem is that if I try to insert the id apple password, it gives me a connection error. The device is connected to the internet, I tried the browser and it works.
I even tried to reset the iPad using the Mac, but it requires the iCloud password on the device... I turned off "find my iPad" on the iCloud website, but in order to be effective, the ipad needs to logging in on iCloud and I can't do it.
Are there other ways to achieve the reset?
Thank you so much
I have an iPhone VR app, but on the appstore page it says "Compatible with iPad". The full VR effect was only with the iPhone, but it's not showing that, nor is there any apparent way to set that in the metadata. So I am assuming that's automated. Any ideas how to fix it?
Hi, i develop and publish an application that is compatible only for iPhone, but the App Review test the application also on iPad, and then reject the application, then how is possible?
Hello,
When I try to install the iPadOS 17 public beta, my 32GB iPad says that it needs 13GB free to install the update! Is there a way to update to the beta without freeing up so much space? This is my main iPad so I don't want to reset it, but can I do it using Finder etc?
Bye!
I am looking for a comparison chart between these three devices regarding what hardware each device support, showing every model of the devices.