|
PT6A posted:If they feel that you're not adding anything to the user experience over a website, then they might reject it on that basis. Nothing seems particularly bad about that storyboard, but at the same time it seems like you aren't really getting any utility out of making a native iOS app over making a website. Even if the data is all local? Those webviews don't actually hit the network.
|
# ? Feb 8, 2013 20:14 |
|
|
# ? May 22, 2024 19:15 |
|
Paolomania posted:Even if the data is all local? Those webviews don't actually hit the network. Especially in that case. I don't see any way to edit data, so you essentially have a book with a fancy hierarchy. Is there a specific reason you're not publishing this as an eBook? At least add some cool features like a way to scale recipe amounts up and down, or something that makes it more than just a collection of information. Even then, without the ability for the user to actually extend the information by (for example) entering their own recipes, they might feel it's not worthy of being on the App Store. Have you seen any apps with similar functionality and layout available on the App Store?
|
# ? Feb 8, 2013 20:28 |
|
xpander posted:Last weekend I finished the Big Nerd Ranch iOS book, and am about to undertake my first app. One thing that a few Internet articles recommended was to create your interfaces by hand programmatically, to really learn what's going on under the hood. I've also read that you should just use Interface Builder because it owns, and dive deeper once you've got some experience under your belt. Does anyone in here have any particular opinions on this topic? This is an ongoing debate and has been for decades. Pick one and keep working on your project. Try the other one if you do get bogged down. It's easy to mix and match code-only and IB so you can't go wrong.
|
# ? Feb 8, 2013 20:38 |
|
pokeyman posted:This is an ongoing debate and has been for decades. Pick one and keep working on your project. Try the other one if you do get bogged down. It's easy to mix and match code-only and IB so you can't go wrong. When I started it actually bothered me that you had to still use code if you choose to use IB, since not all the view properties are represented there. So I shunned IB and did everything in code. That was before storyboards. Now IB is just so much more useful I think it would be silly to ignore it for new projects. Sure, you will still touch up your views with code, but the view controller switching alone is worth using IB.
|
# ? Feb 8, 2013 20:58 |
|
Thanks for the input guys, my thoughts mirror yours. I love IB, so that's what I'm gonna use!
|
# ? Feb 8, 2013 21:09 |
|
lord funk posted:When I started it actually bothered me that you had to still use code if you choose to use IB, since not all the view properties are represented there. So I shunned IB and did everything in code. loving autolayout. It takes me forever to get things tweaked in IB using autolayout since moving one thing seems to change everything else I set there. Or if I pin the height on a button, moving it or changing the text seems to remove the pin andasodas
|
# ? Feb 8, 2013 21:12 |
|
tarepanda posted:loving autolayout.
|
# ? Feb 8, 2013 21:41 |
|
lord funk posted:Yeah, good point. I disable it, and don't plan to use it until they fix all the nasty behavour. That's what I'd do if it were an option... for example, if I could just make a different storyboard for the iPhone 5. :[
|
# ? Feb 8, 2013 21:47 |
|
I just got used to how Auto Layout behaves in IB, so it doesn't bother me like it used to. It's just too convenient to pass up when I can make complex split view resizing behaviors using no code.
|
# ? Feb 8, 2013 22:31 |
|
PT6A posted:Especially in that case. I don't see any way to edit data, so you essentially have a book with a fancy hierarchy. Is there a specific reason you're not publishing this as an eBook? At least add some cool features like a way to scale recipe amounts up and down, or something that makes it more than just a collection of information. Even then, without the ability for the user to actually extend the information by (for example) entering their own recipes, they might feel it's not worthy of being on the App Store. Have you seen any apps with similar functionality and layout available on the App Store? It is an iPhone version of a friend's Android app. I pretty much did a direct conversion of his android UI to native iOS controls. I guess I need to let him know that Apple wants more interesting functionality if he wants his app up there.
|
# ? Feb 8, 2013 22:36 |
|
It's been a while, but Apple pretty much specifically prohibits book-like apps somewhere in the guidelines.
|
# ? Feb 8, 2013 22:39 |
|
Well... Apparently Urban Airship is dumping their IAP platform as of July 1st. But hey, just use Apple's hosted content* *So long as you can require iOS 6, and it doesn't support free content, and after the shutdown you'll have to have your own web service to serve extra data not included in the iTC records.
|
# ? Feb 9, 2013 21:53 |
|
So all UA is doing is push notifications from now on? That seems really goddamn odd. Did Apple change something to push them in to this or is this purely a business decision?
|
# ? Feb 9, 2013 22:01 |
|
Yodzilla posted:So all UA is doing is push notifications from now on? That seems really goddamn odd. Did Apple change something to push them in to this or is this purely a business decision? As far as I can tell, they are focusing on push messages with marketing being the focus. I'm pretty sure they are soaking their huge customers and that makes all us small potatoes nothing but a distraction.
|
# ? Feb 10, 2013 02:50 |
|
I'm trying to display an image in a UITableViewCell and I'm running into a bit of an issue. I have an array called Articles of dictionary objects, get the image URL from each dictionary, and then create a UIImage from that and then display it in the cell. However, the image isn't displaying for me. Here is my code, this is all in tableView:cellForRowAtIndexPath: code:
lmao zebong fucked around with this message at 03:21 on Feb 10, 2013 |
# ? Feb 10, 2013 03:11 |
|
lmao zebong posted:I'm trying to display an image in a UITableViewCell and I'm running into a bit of an issue. I have an array called Articles of dictionary objects, get the image URL from each dictionary, and then create a UIImage from that and then display it in the cell. However, the image isn't displaying for me. I believe [[NSData alloc] initWithContentsOfURL:url] is going to block until all the data is downloaded, you really don't want that in your tableview rendering code, especially on the UI thread. (I'm assuming the images are remote here). Consider using But also, you can start debugging by replacing [[NSData alloc] initWithContentsOfURL:url] with "initWithContentsOfFile" and using a local file just to see what happens. Hog Obituary fucked around with this message at 03:58 on Feb 10, 2013 |
# ? Feb 10, 2013 03:26 |
|
You're right, looks like that's the case. Changing [[NSData alloc] initWithContentsOfURL:url] to initWithContentsOfFile loaded the image, so I'll have to load all the images first before rendering the table. Thanks for the point in the right direction.
|
# ? Feb 10, 2013 03:36 |
|
Why do you have to load all the images first? If they're being downloaded over the network, just download them asynchronously in a background thread as-needed and then stuff them in the appropriate imageView when done. If you don't want to write the code yourself, use something like AFNetworking's UIImageView+AFNetworking category to do it for you.
|
# ? Feb 10, 2013 03:59 |
|
lmao zebong posted:You're right, looks like that's the case. Changing [[NSData alloc] initWithContentsOfURL:url] to initWithContentsOfFile loaded the image, so I'll have to load all the images first before rendering the table. Thanks for the point in the right direction. Well, you can replace the image with an ActivityIndicator while it is loading. You'll want to cache your images and load them on demand. Look into SDWebImage: https://github.com/rs/SDWebImage e: yeah, or what Doc Block said. In any case, this is a near-solved problem and there are probably numerous examples of a scrollable UITableView with remotely loaded images.
|
# ? Feb 10, 2013 04:00 |
|
AFNetworking is the poo poo. Read the code and you'll learn something.
|
# ? Feb 10, 2013 04:04 |
|
Thanks for the links, I can see where I was going wrong here and those examples help a lot.
|
# ? Feb 10, 2013 04:38 |
|
Aside from rolling my own, anyone have any suggestions for a multicolumn UITableView/Cell? It'd be cool if I didn't have to reinvent the wheel here. Thank you. *edit* Well hello CollectionView. Haven't used this yet Doh004 fucked around with this message at 17:13 on Feb 11, 2013 |
# ? Feb 11, 2013 17:09 |
|
pokeyman posted:AFNetworking is the poo poo. Read the code and you'll learn something. So has AFNetworking essentially become the new ASIHTTPRequest?
|
# ? Feb 11, 2013 18:14 |
|
ultramiraculous posted:So has AFNetworking essentially become the new ASIHTTPRequest? Yes. Stop using ASI; it's outdated.
|
# ? Feb 11, 2013 18:17 |
|
Doh004 posted:Aside from rolling my own, anyone have any suggestions for a multicolumn UITableView/Cell? It'd be cool if I didn't have to reinvent the wheel here. Thank you. CollectionView is probably your answer, but I've used GMGridView in the past and it has worked well. https://github.com/gmoledina/GMGridView
|
# ? Feb 11, 2013 19:37 |
|
I want to use GNU sed in Xcode, so I just installed GNU sed in OS X following these instructions: http://solarianprogrammer.com/2012/03/07/starting-gnu-sed-mac-osx/ I'm not sure exactly how this stuff works, but one of the last steps shows how to "add it to the shell path". Note this is Terminal, but in order to use it, does export PATH=/usr/sed-4.2/bin:$PATH have to be in Xcode's Run Script? What do I change the Shell text field to in order to use this?
|
# ? Feb 11, 2013 22:28 |
|
I cannot find anything via google, so once again, I turn to you kind folks. In an iOS app, I write data to a file in the Documents directory. It does so, and I can read the data back out later in the app. Hooray! I then install a newer version of the application (downloading via Enterprise deployment) "on top of" yesterday's build. I get to the screen where I read the data file previously written and: C code:
|
# ? Feb 11, 2013 22:28 |
|
LP0 ON FIRE posted:I want to use GNU sed in Xcode, so I just installed GNU sed in OS X following these instructions: Leave the Shell text field as /bin/sh. Just have code:
|
# ? Feb 11, 2013 22:48 |
|
Lumpy posted:I cannot find anything via google, so once again, I turn to you kind folks. In an iOS app, I write data to a file in the Documents directory. It does so, and I can read the data back out later in the app. Hooray! Probably not your issue but I ran into a problem storing paths, as updates are installed in a new directory and the data copied over. My old stored paths no longer pointed to anything; I fixed it by using relative paths.
|
# ? Feb 11, 2013 23:05 |
|
Glimm posted:CollectionView is probably your answer, but I've used GMGridView in the past and it has worked well. Is it a no-no to have a UITableView, and then add a UICollectionView to a cell? Sadly the entire controller that I'm building isn't all a grid and it seems the collection view isn't right for everything.
|
# ? Feb 11, 2013 23:18 |
|
Doc Block posted:Leave the Shell text field as /bin/sh. Just have Thanks! That was it. Getting the same error I was getting when I was not using GNU sed: code:
code:
|
# ? Feb 11, 2013 23:21 |
|
It's a shell script, so don't break a single command up across multiple lines. Each line is being executed as a separate command. edit: you can use "\" to indicate that the next line should be part of the current one, so maybe try code:
Doc Block fucked around with this message at 23:38 on Feb 11, 2013 |
# ? Feb 11, 2013 23:34 |
|
I get "newline can not be used as a string delimiter" but I don't even see how the backslash is being used as a delimiter. If I make it all one line without the backslashes I get: sed: 1: "/<tileset\s\+firstgid=" ...": bad flag in substitute command: 'r'
|
# ? Feb 11, 2013 23:50 |
|
Doh004 posted:Is it a no-no to have a UITableView, and then add a UICollectionView to a cell? Sadly the entire controller that I'm building isn't all a grid and it seems the collection view isn't right for everything. As always, try it and see what happens. For what it's worth, collection views can do pretty much anything you like. They're the graph theory of UIKit: every problem can be solved with a collection view. And if you need collection views on iOS 5, there's a polyfill called PSTCollectionView.
|
# ? Feb 12, 2013 00:11 |
|
So I'm getting back into iOS dev a bit in my free time, and am contributing to an app which uses a storyboard. Why do people use storyboards? What's the advantage? It seems like a mega-nib, so it has merge issues, just opening it will change it, it's dog-slow, and it crashes Xcode much of the time. Made worse by the fact that it's a single gargantuan file rather than a number of smaller files. Can someone enlighten me on what makes a storyboard worth it?
|
# ? Feb 12, 2013 01:08 |
|
Ender.uNF posted:Probably not your issue but I ran into a problem storing paths, as updates are installed in a new directory and the data copied over. My old stored paths no longer pointed to anything; I fixed it by using relative paths. After tracing back where the file path was being generated in another team members class, this was exactly my issue. Thanks!
|
# ? Feb 12, 2013 01:19 |
|
Doctor w-rw-rw- posted:Can someone enlighten me on what makes a storyboard worth it? Not writing buckets and buckets of view controller switching code. I pretty much use it for that purpose only, and build my views programatically.
|
# ? Feb 12, 2013 01:55 |
|
Doctor w-rw-rw- posted:it crashes Xcode much of the time. I've never once had a storyboard crash Xcode, though I've seen the other problems.
|
# ? Feb 12, 2013 01:56 |
|
Doctor w-rw-rw- posted:Yes. Stop using ASI; it's outdated. It lives on in one of the projects I'm working on. I just wanted to make sure I wasn't going to back the wrong horse with AFClient. Doctor w-rw-rw- posted:So I'm getting back into iOS dev a bit in my free time, and am contributing to an app which uses a storyboard. Why do people use storyboards? What's the advantage? It does some fun resource management, for one thing. Unlike Xibs, where the whole tree gets built at init time, storyboards will load individual parts lazily. You can basically assemble large sections of views and their transitions in one file, with the downside being they're all in one file and XCode will try and show you all of them. I'm also pretty sure the "changes when you open it" thing is just a symptom of an XCode upgrade. As of sometime recently they started automagically upgrading your interface files to the schema of the last version, which means your whole team doesn't have to upgrade at once but you also don't end up with XIBs from 2009 in your source tree as easily.
|
# ? Feb 12, 2013 02:30 |
|
|
# ? May 22, 2024 19:15 |
|
Doctor w-rw-rw- posted:So I'm getting back into iOS dev a bit in my free time, and am contributing to an app which uses a storyboard. Why do people use storyboards? What's the advantage? File bugs for the crashes, that ain't right. I think of storyboards as the next level of abstraction above nibs. A nib combines many views under one view controller; a storyboard combines many nibs under one app. They're useful for the same reason nibs are useful: they configure and instantiate many objects with a single line of code. Unfortunately I found iPad storyboards unusable. You must zoom to 100% to edit anything, yet every view controller insists on drawing at least one view (sometimes many in the case of tab bar or navigation view controllers) at 1024x768. I couldn't meaningfully edit an iPad storyboard on a 27" display, let alone anything smaller. So I gave up.
|
# ? Feb 12, 2013 03:30 |