Search results for

column

2,062 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
605
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
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
745
Feb ’23
SwiftUI popover disappearing when focus changes to its elements on some devices
I have a weird problem using a popover - this behavior is pretty random to me so I somehow think it's a bug - but I cannot reproduce the problem in a smaller project to give you reproducible code. I'm showing a table with a few rows and columns, one of this items per row is editable. If the user taps on the button a popover does appear, presenting a View with a TextField or a TextEditor (tried both with the same result). It all works fine on the iPhone (any situation), it works on the iPad in horizontal format, it works on the iPad in vertical format if there is an external keyboard connected. But - as soon as iOS needs to show the on screen keyboard, the popover disappears and so does the keyboard again. I replaced the popover view with a simplified version, to make sure there is nothing wrong with the popoverView and still got the same behavior. struct SimpleRemarkPopover: View { @Binding var showPopover:Bool @State var comment:String var body: some View { TextEditor(text: $comment) Button(action:
2
0
2.4k
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 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
563
Feb ’23
View Layout on MacOS with Swift UI
Hi all, I have just started to learn swiftUI for macOS, and am struggling with the view set-up. The view below is the one I am trying to achieve. I had no issues with using navigation view to get the column style with View 1 and View 2&3, being able to stretch/resize each column as well. I have not however been able to make a stretchable 'row' view for View 2 and View 3. How can I achieve this? I tried using a Navigation Stack to wrap View 2 and View 3, which gave me the layout I want, though the 'rows' (being View 2 and View 3) are fixed, and can't be resized/dragged, like the columns of View 1 and View 2&3 can. How can I allow resizing between View 2 and View 3 as well, while preserving the overall layout show in the image? Thank you for the help :)
1
0
1.1k
Feb ’23
Why does "Xcode GPU Frame Capture" shows that "PreZ Test Fails" percent is zero.
Xcode GPU Frame Capture shows that PreZ Test Fails percent is zero. I can't understand what is wrong.. I drawed the opaque primitives with depth test, no alpha test, no alpha blend. I thought that Hidden Surface Removal removes hidden surfaces, so There is no killed fragments by PreZ Test Kill. But I couldn't find the column about Hidden Surface Removal. It looks that xcode gpu frame capture doesn't show the data about hidden surface removal. I tested it on iphone 13 mini(ios 16.3), M1 Mac Ventura
2
0
1.4k
Feb ’23