Search results for

column

2,071 results found

Post

Replies

Boosts

Views

Activity

Reply to CoreData stack init is freeze
I noticed a CoreData error when keeps app working with the copied sqlite files. The console shows: CoreData: error: (13) database or disk is full CoreData: annotation: Disconnecting from sqlite database due to an error. CoreData: error: SQLCore dispatchRequest: exception handling request: , error during SQL execution : database or disk is full with userInfo of { NSFilePath = /var/mobile/Containers/Data/Application/77B8EAB6-120F-4E4D-AE96-EDC81258A250/Documents/myDB2.sqlite; NSSQLiteErrorDomain = 13; } It happens randomly and multiple times after different CoreData activities: SELECT TBL_NAME FROM SQLITE_MASTER WHERE TBL_NAME = 'ACHANGE' SELECT all columns from the regular table. SQLite bind[2] = SQLite: EXPLAIN QUERY PLAN SELECT sql: COMMIT Fetching 13543 rows Is it mean that the iPad doesn't have enough disk or RAM space? The iPad storage shows 26 GB of 128 GB used and application alocated only 48 MB RAM. I don't see the same errors on a different iPad with the same copied files.
Mar ’23
In UISplitViewController, can I use same viewController as a primary and compact column?
I am trying to utilize UISplitViewController to develop my app for iPad users. Since my app has a UITabBarController as its root view controller, I want to set this root view controller as a primary view controller in new UISplitViewController hierarchy, and its detail view controller to the secondary column. Also, when the app's width size class is compact (iPad SplitView mode), I want it to be same as current app. So the root view controller (UITabBarController) should be on the compact column of the new UISplitViewController system like below. class MySplitViewController: UISplitViewController { override init(style: UISplitViewController.Style) { super.init(style: style) let primaryVC = PrimaryViewController() let secondaryVC = SecondaryViewController() setViewController(primaryVC, for: .primary) setViewController(secondaryVC, for: .secondary) setViewController(primaryVC, for: .compact) } } With this code, in regular width mode, the primary and secondary column looks great as I e
2
0
615
Mar ’23
Reply to Video with different audio and video durations for HLS playback
I don't understand what is the discontinuity information duration table saying. What is the domains column? What does it mean if the start time table is all empty dashes? Also, I tried running the validator tool against the same file without differing video and audio stream duration and there was no error about Different content duration detected between discontinuities but there was still a shorter discontinuity information table. So is there something else that could be causing that warning instead of the total duration of the two streams being different in seconds? And yes I meant to extend the audio stream to match the video stream duration by padding the request and manifest with silence or padding video with empty P frames.
Topic: Media Technologies SubTopic: Streaming Tags:
Mar ’23
ARKit: ARSkeleton Accuracy
I'm building an app and one of the requirements is being able to get a somewhat accurate estimate for a person's height. Getting within an inch (maybe two) is fine but a delta greater than that and it won't work. I'm using ARBodyTrackingConfiguration to get the detected ARAnchor/ARSkeleton and I'm seeing this come in to the session delegate. To calculate the height, I've tried two methods: Take the jointModelTransforms for the right_toes_joint and the head_joint and find the difference in the y coordinates. Build a bounding box by throwing the jointModelTransforms of all the joints in the skeleton into it and then finding the difference in y coordinate of the min/max of the bounding box. To account for the distances between my head and my crown, I'm taking the distance from the neck_3_joint (neck) to the head_joint and adding this to my values from either method 1) or 2). Why this particular calculation? Because this should roughly account for the missing height according to the way artists draw faces. Both m
0
0
727
Feb ’23
Reply to CKRecordValue type NSDate stores nil value?
Just discovered that... We can not have a nil NSDate field in CloudKit, when I save a record it is set to a default date 2001,01,01 but it is not nil. I do not want to add a boolean column or a placeholder value to know if the date is nil or not + always think about it otherwise I will have incorrect data shown to the user. Is there something we can do ? Does someone has an answer? I miss something I think as I can not find many resources on this BIG disadvantage to use CloudKit!
Feb ’23
SwiftUI encountered an issue when pushing a NavigationLink. Please file a bug.
Hello Team of Devs, I'm trying to use a card with to actions, the first action is when I press it show me a list (it works) and the second action it's when I made a long pressure on the card it show me a menu, for that Menu I'm using ContextMenu, I'm using a navigationLink to show me a part that it let me Edit the card, but it doesn't show me the information that I want, for example I have a 4 card, and when y use contexMenu with card 1 it show me information of card 3. This is the code. VStack{ Grid{ LazyVGrid(columns: adaptiveColumns, spacing : 10){ ForEach($list) { $Category in NavigationLink(destination: CategoryList(list: $Category)){ Card(list: Category).frame(height: 100) .contextMenu{ Button { // self.selectedCategory = $Category editCategory = true } label: { Text(Edit) } } } } background{ ForEach($list) { $list in NavigationLink(, destination: DetailCardView(list: $list), isActive : $editCategory) } } } } } The background it's the code that I want that charge when I press the card using con
0
0
799
Feb ’23
VFS deadlock (WebDAV on Apple Silicon only)
FB9108925 FB10408005 Since Apple Silicon we've seen a lot of WebDAV instability in macOS 11.x, 12.x and now 13.x that isn't found on x86 Macs. Some were fixed in earlier minor OS upgrades (e.g. webdavfs-387.100.1 that added a missing mutex init), but it's still highly unreliable. The purpose of this post is to put more focus on the bug, see if there is something else we can do to help solve this, as well as hear about potential workarounds from other people experiencing the same problems. I've got a reproducible case described below that triggers a deadlock in VFS every time, requiring a hard reboot to fully recover. Before reboot I've captured this stack trace showing the WebDAV/VFS/UBC/VM layers getting tangled up (macOS 13.2 Build 22D49 running on Macmini9,1): Thread 0x16358 1001 samples (1-1001) priority 46 (base 31) 1001 thread_start + 8 (libsystem_pthread.dylib + 7724) [0x18d2e0e2c] 1001 _pthread_start + 148 (libsystem_pthread.dylib + 28780) [0x18d2e606c] 1001 ??? (diskarbitrationd + 99400) [0x100d5c448
1
0
1.1k
Feb ’23
Tables, Pickers and Bindings, woe my...
I have a Core Data entity with a few properties, the ones of interest here are a UUID column named id and an Int16 column containing values between 0 and 3. I have a Table in SwiftUI which is correctly arranging the items stored by Core Data into its rows. The selection: binds a Set of the id values. I have another view to which I have sent the Set of id values (Set) (Bin is the name of my entity) using @Binding var ... - so far so good. Within that view, I can determine that I am correctly getting the set of interest, and most of what I am trying to accomplish I can get to work. What is driving me up the wall, however, is that I am trying to get a Picker in the child view to let me change the value of the Int16 property (called playMode) of the first selected object from the table. I have tried numerous things to create that binding but I can't seem to find the magic combination that works in any sensible way. Here is what I am currently doing, which seems to come closest. I set up a @State
1
0
752
Feb ’23
SwiftUI Table View with Array of reference types?
I am trying to use a SwiftUI Table View [1] with an Array of class objects so that updates to properties in the class objects are reflected in the table. This works fine for me with structs and @State, however, I'm trying to find a way to achieve the same effect with @StateObject given that @State only supports value types. The only problem is that @StateObject doesn't seem to be supported by Array. When I try to extend Array to conform to ObservableObject, I get: Non-class type 'Array' cannot conform to class protocol 'ObservableObject' It seems that wrapping the array with an object and using @Published to publish changes does not work as evidenced by this [2] other post. Appreciate if anyone has any ideas on how to make this work! And if there is no way to make it work, I don't understand why Apple has made it so that a TableColumn initializer would require [3] the RowValue to conform to NSObject. Because this effectively means that to have sorting capabilities for a column, the underlying data ty
1
0
572
Feb ’23