|
Suits are debating if they want a total rewrite, so maybe doable.
|
# ? Mar 4, 2019 03:36 |
|
|
# ? Jun 5, 2024 06:52 |
|
After all, your codebase is so old, maybe it’s time for a rewrite… (And social network apps are “large.”)
|
# ? Mar 4, 2019 05:07 |
|
Good Sphere posted:Yeah I was thinking the same thing, and I tried looking for it using the mdls command and exiftool to check for extra exif information. To rotate a video, I apply a transform. Last time I touched Photos, If remember correctly, exif stripping happened when trying to extract image data from the asset.
|
# ? Mar 4, 2019 16:44 |
|
quote:Various posts about method families, esp. the link https://clang.llvm.org/docs/AutomaticReferenceCounting.html#method-families Sorry for the late reply, but thank you for the help, people! That was exactly the information I was looking for.
|
# ? Mar 4, 2019 20:05 |
|
eschaton posted:After all, your codebase is so old, maybe it’s time for a rewrite… All I will say is if you find yourself exceeding the linker's size limits you shouldn't work around the problem, you should find the 7 different ORM implementations inside your app and remove 6 of them.
|
# ? Mar 5, 2019 05:51 |
|
Documentation @ https://developer.apple.com/documentation/swift/anyhashable/2432102code:
code:
|
# ? Mar 7, 2019 00:52 |
|
Anyone recommend a good Swifty DI framework?
|
# ? Mar 16, 2019 01:09 |
|
Is Autoresizing being deprecated? When I use it for simple layouts where I don't need to worry about clipping I get the warning "Auto Layout Localization: Views without any layout constraints may clip their content or overlap other views." Is there any way to remove that error without having to use constraints?
|
# ? Mar 26, 2019 17:32 |
|
Anyone have any clue as to why my UIPickerView isn't being masked? (The text appears outside of the mask) I made sure the mask layer is in the correct position, by adding it to my view controller (the commented out line). However, it appears black, even though specified by the background color as red. Added to this, the fill rule of evenOdd, doesn't seem to be happening since I get the rectangle over my filterSelection, instead of the inverse. Finally, the filterSelection (the UIPickerView) outside of the maskLayer still appears, so the mask has no effect. code:
|
# ? Mar 26, 2019 20:07 |
|
Does anyone know if its possible to get a stand-alone installer for the latest XCode? I've been trying for two days to install off the app-store but every time it ends up at 94.something percent and just sits there forever, leaving it impossible to actually run xcode without a reset of the computer. This is super frusturating, because I cant find any way to run the install manually and automatically don't work at all. And at least with an installer I can usually work out where and why its making GBS threads itself.
duck monster fucked around with this message at 09:16 on Mar 27, 2019 |
# ? Mar 27, 2019 07:13 |
|
duck monster posted:Does anyone know if its possible to get a stand-alone installer for the latest XCode? Yep, https://developer.apple.com/download/more Froist fucked around with this message at 08:51 on Mar 27, 2019 |
# ? Mar 27, 2019 08:44 |
|
I always just use The One True Stack Overflow Answer: https://stackoverflow.com/questions/10335747/how-to-download-xcode-dmg-or-xip-file (Just make sure you're logged into your developer account first before clicking on the links)
|
# ? Mar 27, 2019 12:02 |
|
Doh004 posted:I always just use The One True Stack Overflow Answer: https://stackoverflow.com/questions/10335747/how-to-download-xcode-dmg-or-xip-file Bookmarked! Also fun fact. Something very hosed up is going on with IPv6 UDP in the latest IOS, the REUSE flag seems borked. Filed a bug report, but not sure what'll come of it. It may be by design (Something something sandboxing whatever)
|
# ? Mar 29, 2019 07:45 |
|
duck monster posted:Also fun fact. Something very hosed up is going on with IPv6 UDP in the latest IOS, the REUSE flag seems borked. Filed a bug report, but not sure what'll come of it. It may be by design (Something something sandboxing whatever) You have my interest - in the last week my work’s latest update (which introduces UDP connections) has had issues with IPv6 UDP on some Android forks (obviously unrelated), but the iOS version hasn’t released yet because we’re stuck in rejection limbo. Seems a good opportunity to figure out if we’ll have similar issues waiting for us when we manage to release on iOS. Have you got any more details/an OpenRadar link for what exactly is “very hosed”?
|
# ? Mar 29, 2019 11:41 |
|
Anyone have a good resource for learning SpriteKit? I'm trying to make some character grids and my positioning is all wonky.
|
# ? Apr 2, 2019 18:06 |
|
Hey dudes, looking for advice. I have a webapp I'm trying to get on (locked down with Blackberry) iPads at work. It's an SPA built using React. If these were android tablets, I'd just load the folder up and put a shortcut on the homepage, but from what I've gathered, I need to make an `App` to make it work on iPad. Is this correct? What approach would you recommend, given it's in a working/complete state in webapp form. I'm leaning React-Native from what I gather. The code change may be as simple as replacing DOM elements with React-Native ones, then install it via Expo. Is this right? Is there a simpler way?
|
# ? Apr 10, 2019 15:55 |
|
You can add a website to the home screen from Safari (tap Share, pick Add to Home Screen), and you can add some meta tags etc. so it looks less like running some website in Safari. I think people have started calling this a PWA for some reason, so that might be a useful search term. Separately, you can use MDM to add non-removable home screen bookmarks. If the above doesn’t get you close enough, then yeah your next step is to stick it in an app.
|
# ? Apr 10, 2019 19:34 |
|
Would that work offline?
|
# ? Apr 10, 2019 19:39 |
|
It should, assuming it’s been opened at some point. Not sure how it does with an MDM-enforced bookmark that’s never been opened.
|
# ? Apr 10, 2019 21:34 |
|
The Costco app is just a full screen webview, pretty much.
|
# ? Apr 11, 2019 00:07 |
|
Yep that’s always an option. Especially if you don’t care about App Store distribution.
|
# ? Apr 11, 2019 01:08 |
|
Thank y'all very much. So I drop in my folder (Contains an HTML file and a JS bundle) somewhere in the file system, then long-press the html file and send to homescreen (or equiv) ?
|
# ? Apr 11, 2019 01:20 |
|
I think you’ll need to host it somewhere, then set up a web manifest for offline support. Then browse to the site in Safari and add to home screen. Doesn’t have to be publicly hosted I guess, could be somewhere on the local network.
|
# ? Apr 11, 2019 03:35 |
|
Dominoes posted:So I drop in my folder (Contains an HTML file and a JS bundle) somewhere in the file system, This isn’t a thing on iOS. Well, it is, under the hood, but you and your users don’t have direct access to it. Your best bet was to have created an actual native application from the start instead of assuming some HTML and JavaScript was going to cut it. You can put together a basic app that’s just a web view wrapping your HTML and CSS but it’s not going to be a great iOS-like user experience, any more than accessing it over HTTP would be.
|
# ? Apr 11, 2019 05:41 |
|
A webapp with react for an internal-use app? React Native is fine, or you can just embed it with a WKWebView. Since it's already built then I'd just stick with that and migrate to React Native when you're ready, if needed (and if ever). Since it's internal use *only* (I assume) then the safari web page -> add to home screen is the most workable solution. Barring that, getting an enterprise cert for apps (costs money) and deploying a simple app that has the HTML/JS/CSS files in it and presents it with the aforementioned webview should work. If you want to push the app (or web page shortcut) to people's devices then you can use MDM, but that assumes your devices are online. If the devices can't ever go online then...that's weird, because how are you going to update the iPads? If it's for security reasons then not updating the iPads is eventually going to render them less-than-secure. Technically you could probably also make an app that serves the page up over a webserver locally but all of the above solutions are better than that. Ignore the advice to build native from the start. Internal apps tend not to need a great iOS-like user experience, you can get well past the threshold of "good enough" for a lot of apps (even if you do need a good native API to build the best apps)
|
# ? Apr 11, 2019 07:41 |
|
Awesome, thank you. Does the web page need to be online to work with WebView? It has sensitive info I'm handling without logins by keeping things local. Would this drive a react-native app vice WebView? I'm also curious how the blackberry layer will interfere. The devices go online to update, but not when being used.
Dominoes fucked around with this message at 12:37 on Apr 11, 2019 |
# ? Apr 11, 2019 12:34 |
|
Dominoes posted:Awesome, thank you. Does the web page need to be online to work with WebView? It has sensitive info I'm handling without logins by keeping things local. Would this drive a react-native app vice WebView? I'm also curious how the blackberry layer will interfere. The devices go online to update, but not when being used. - No need to be online but make sure to test. - React Native uses native UI. React.js (traditional React) that uses HTML is not React Native. - Don't know what a blackberry layer is.
|
# ? Apr 11, 2019 20:05 |
|
You're probably going to run into a ton of extra work to port your existing React app to act like a PWA. What sort of SPA is your application? Is it a bunch of HTML, CSS and JS that are precompiled or are you relying on a server to provide some level of dynamicism(spelling?) for you? The only experience I have with this is using Gatsby which is a static site generator with great plugins to make your site easily available offline, but you should check out the modern web dev thread for more of that.
|
# ? Apr 11, 2019 20:21 |
|
Is anyone else having an issue with TestFlight? I've tried turning off the notifications for new builds in TestFlight, but I'm still getting emails and notifications. Is there some additional step I've done before that I'm forgetting this time around?
|
# ? Apr 11, 2019 20:22 |
|
Doctor w-rw-rw- posted:- No need to be online but make sure to test. Doh004 posted:You're probably going to run into a ton of extra work to port your existing React app to act like a PWA. What sort of SPA is your application? Is it a bunch of HTML, CSS and JS that are precompiled or are you relying on a server to provide some level of dynamicism(spelling?) for you?
|
# ? Apr 11, 2019 20:59 |
|
Hi guys - i'm building an iOS app in which I need to dynamically build the UI, based on the data set currently being viewed, and just wanted to solicit some thoughts on how best to approach this, before wasting a bunch of time doing it wrong. Specifically, the application pulls a bunch of metrics from an API, and then renders the data into charts in UIViews. As you can see from the screenshot above, there's a small amount of summary data at the top of the view, and then a number of charts - currently the UIViews containing the charts are fixed but, as I extend the app, the number of metric sets can vary, so I need to app to programmatically add the chart UIViews as it iterates through the data. I'm pretty new to Swift, so have been googling around and reading tutorials etc, but I'm having trouble finding a definitive answer on how best to do something like this. My initial thoughts were around building a chartView UIView class + xib, and then adding it as a child view multiple times as I need it, but I'm not very confident that this is the right approach. Should I be trying to shoe-horn this into a UITableView or something? Any advice on how to proceed would be appreciated.
|
# ? Apr 14, 2019 00:26 |
|
If there’s less than three screenfuls of charts, I’d toss them into a stack view embedded within a scroll view. More than that, time for a collection view or a table view. If they’re all the same height it’ll be straightforward to mush them into a collection view or table view. Either way you’ve got the right idea: make a view and a xib, then either register that xib with the collection view or table view, or just instantiate your view from the xib each time you need a new one and add to the stack view’s arranged subviews.
|
# ? Apr 14, 2019 03:03 |
|
pokeyman posted:If there’s less than three screenfuls of charts, I’d toss them into a stack view embedded within a scroll view. More than that, time for a collection view or a table view. If they’re all the same height it’ll be straightforward to mush them into a collection view or table view. Perfect - thank you! I think that a collection or table view is probably the most appropriate way to go, so i'll look into that.
|
# ? Apr 14, 2019 05:21 |
|
I am so loving sick of Elsagate videos showing up in kids’ youtube I want a way to block these videos as they come (basically any video link with some keywords in the video title gets deleted). Content blockers is useless for this unless I scrape youtube before hand and poo poo and even then the blocking action it has are pathetic. CSS blocking will not work (unless youtube gives each video link a specific immutable id). How can intercept traffic to webkit? I am fine with making my own app. Can I run a webkit view with a specific proxy? All answers point to no. But if anyone knows anything please let me know.
|
# ? Apr 14, 2019 11:09 |
|
I'm attempting to use NSScanner to parse CSS style colors - rgb(), rgba(), red, blue, #RRGGBB, etc. I sorta have something working to deal with rgb/rgbacode:
code:
|
# ? Apr 19, 2019 18:02 |
|
indexOf rgba/indexOf rob followed by replace white lspace with nothing and split from index after ( on comma, assert the last char is ). If that fails check for length =3,4,6,8 and that the character lowercases are in range. If 3 or 4 then double up the characters and get the number from that otherwise just get the number for it Normalize to 0..1 and create your color from those components
|
# ? Apr 19, 2019 21:45 |
|
Doctor w-rw-rw- posted:indexOf rgba/indexOf rob followed by replace white lspace with nothing and split from index after ( on comma, assert the last char is ). Thanks. That's pretty much where I ended up - using NSScanner for the function parsing since it's pretty easy to get the arguments but then fall back and split the string apart manually if it's hex.
|
# ? Apr 19, 2019 23:18 |
|
fankey posted:This doesn't even cover all the function cases ( it breaks if there is a space between the function name and the ( which I think is valid in CSS. I'm not sure if there is better, more robust way to this? It's also not clear to me if it's possible to use it to deal with color functions, color strings as well as # hex definitions. Just write a recursive-descent parser. They’re very easy: Describe the grammar you want to accept, then translate the productions in the grammar into function calls. Chances are you’ll need a max of one character of lookahead. The thing I always find tricky about parsers is that I wind up forgetting about whitespace. So if your grammar accepts “rgb( 1, \t3, \n5);” you might write down the rule as functionColor = functionName leftParen number (comma number)* rightParen semicolon. but you really need to implement it as functionColor = functionName whitespace* leftParen whitespace* number (whitespace* comma number)* whitespace rightParen whitespace* semicolon. and so on. This is one reason why people like to separate lexical analysis (breaking into tokens) from parsing (assigning meaning to tokens). You don’t actually have to do so, though, for example if whitespace and comments are universally-valid in your grammar you can just incorporate them into a “seekToNextToken” function or whatever.
|
# ? Apr 20, 2019 07:23 |
|
I don't doubt that that approach is super fast, and nice for compilers, but it sounds like overkill for a typical iOS app (assuming the developer is not already familiar with writing recursive descent parsers)
|
# ? Apr 20, 2019 10:41 |
|
|
# ? Jun 5, 2024 06:52 |
|
Doctor w-rw-rw- posted:I don't doubt that that approach is super fast, and nice for compilers, but it sounds like overkill for a typical iOS app (assuming the developer is not already familiar with writing recursive descent parsers) Every time I thought this I ended up being sorry I didn’t write a real parser to begin with.
|
# ? Apr 21, 2019 04:12 |