Post

Replies

Boosts

Views

Activity

Reply to Do I have to build in support for user scrolling through a UITextView object?
Here's my problem: I built a sample project to paste here. In it, everything works (scrolling wise). In my large bloated project it doesn't. I copied and pasted the UITextView code, so I know it's the same. So now I am really thrown. Could this have anything to do with the UIViewController? My large project has a UIView within the UIViewController, the sample does not. I constrain the UIView to the UIViewController's safeAreaLayoutGuide, then I place all my buttons within the UIView. But everything is a subview of the UIVewController, so not sure how that might be affecting this. Any clues where to look would be so appreciated.
Aug ’22
Reply to Can I calculate the bufferSize on .installTap to equal X seconds
All that being said, for your high-level goal of recording 10-15 seconds of audio you might find this api simpler to use: https://developer.apple.com/documentation/avfaudio/avaudiorecorder/1389378-record As I will be recoding unknown lengths, and trying to use "background" samples to remove background noise, I am guessing that using the same functions to record would be the wiser? The size of the incoming buffers. The implementation may choose another size. Does this also apply to the same instance call of .installTap ? In other words, once running, will I start getting different buffer sizes in the same instance?
Jul ’22
Reply to Where can I call register(_:forCellReuseIdentifier:) if I am not using a UITableViewController?
So now, when I create the table I am registering it as such func createTblView() -> UITableView { let myTable = MyTableView(frame: CGRect(x: 0, y: 0, width: 0, height: 0 )) myTable.register(UITableViewCell.self, forCellReuseIdentifier: "reuse") myTable.backgroundColor = .white return myTable } And within: func tableView( tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell_ func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { // let cell = UITableViewCell() let cell = tableView.dequeueReusableCell(withIdentifier: "reuse") var config = cell!.defaultContentConfiguration() ... additional config code below } This is just a quick sample, obviously I have to add code because cell is now optional, "reuse" is just a test, etc. When I look at cell in the debugger I do see: _reuseIdentifier NSTaggedPointerString * "reuse" 0x84c7f8963e3e2abe It all appears correct, but since the return cell is an optional, and it wasn't without using the tableView.dequeueReusableCell, just want to make sure I am implementing this correctly. Thanks for all your help.
Jul ’22
Reply to How can I get the text of a label using the new UIContentConfiguration
I jumped to the definition in Xcode and found the following:     @available(iOS 14.0, tvOS 14.0, *)     public var contentConfiguration: UIContentConfiguration?     @available(iOS 14.0, tvOS 14.0, *)     public func defaultContentConfiguration() -> UIListContentConfiguration So I tried a casting the contentConfiguration as a UIListContentConfiguration and it works. While it works, I would appreciate it if someone would tell me if I am still somehow doing it incorrectly. Perhaps I am configuring the cell incorrectly to begin with? Here is the following working code: let cell = myClientList.cellForRow(at: myInvsList.indexPathForSelectedRow!) let config = cell?.contentConfiguration as? UIListContentConfiguration dbClass.curMasterinvList = config?.text ?? ""
Jul ’22