Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Enectic

macrumors member
Original poster
Jul 11, 2011
34
13
Hey everyone! I'm a computer science student and one of the courses I'm taking this semester is mobile programming. I'm still fairly new to Objective-C and find it very unique compared to the other languages I've learned. Anyway, my development platform right now is an old C2D Macbook and an original iPad. I've created a radio app for an assignment. It works perfectly through the simulator however doesn't play any audio when loaded on the iPad so I'm also unable to check the functionality of the volume slider. I'm hoping it's due to the fact it's an original iPad that is stuck on iOS 5.1 however I don't have any other platform to try it on. Can anyone with a newer version of iOS try this app on their actual device? The only functionality that I need checked is that:

1. The audio plays when a station is selected.
2. The volume slider actually changes the volume.

Again, I'm pretty sure this app works as intended however I could always use a little extra reassurance. Thanks!

Here is the link to the zipped project folder: https://www.dropbox.com/s/oom7j3deo337vld/App2%20%281%29.zip
 
Last edited:
Later iPad with lightning connector and iOS7.

1. Yes

and

2. Yes


You didn't do any rotation. Since I launched it with the device in Landscape,
I couldn't see half the UI until I rotated to Portrait.
You should exclude both landscape modes if you aren't going to support them.

One compile time warning.

Put one of these:
Code:
[UIApplication sharedApplication].idleTimerDisabled = YES;
in your viewDidLoad function prevents the idle timer suspending the iPad because you stopped
interacting with the screen. It's no good if the radio turns off by itself.
You might be able to programatically switch this so it only stays on if a station is connected.

Your network status should be available somewhere, something needs to change to green when
it's connected, or just change the transparency property of the graphic you're using for the station.

You realise you signed up for a bunch of unprovoked criticism don't you? :D
How long do you have?
 
Last edited:
You realise you signed up for a bunch of unprovoked criticism don't you? :D
How long do you have?

Thanks! That's great to hear everything works as expected. Also I really do appreciate the helpful information, it's always great to learn new things about a language. I'm still very new with Objective-C and will take any help I can get! I bought these older devices as a test bed to see how I would like development on the iOS platform. I'm really enjoying it and will probably upgrade to more recent devices once I save up enough cash! Hmmmmm, time left? Not 100 percent sure what you're referring to so I'll answer that multiple ways. This is my final semester at uni (graduate in December) and the assignment isn't due until Thursday (still have a bit of time but I always try to finish things ahead of schedule). Once again, thanks for taking the time to help, I really appreciate it!
 
Lack of error checking is the difference between it looking like a modified tutorial
or collection of snippets, and a program.

The laziest thing you could do is check playing status.
I don't know if it's is the same thing, but the framework for iPod media player
has a flag for checking music playing:
Code:
if (myPlayer.playbackState == MPMusicPlaybackStatePlaying) {

At the moment, you have some alerts when some things are broken like no internet connection,
but nothing to tell the user it's working other than the music,
So if it doesn't work, because the radio station site is down for example, the user might not know why.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.