New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
iOS Development Discussion on developing apps for the iOS platform.

Thrown into this with a current app. that "boss" hates!


Post Reply New Thread Subscribe

 
Thread Tools
webherper

 
Member Since: Apr 25, 2012
Posts: 13
webherper is on a distinguished road

webherper is offline
So I have been a web designer in the windows environment for years. I am proficient in html, css, javscript. I have the full suite of Adobe products on the Windows side and have taught myself flash, all aspects of photoshop, dreamweaver, etc.. I have recently started learning mobile apps and was getting ready to start tackling Android apps. Just a quick one or two sentence background about me, I broke my back 2 years ago, had 3 surgeries, and am at home now learning a new career. So I am self taught on most everything I know thanks to books, tutorials, and scouring the internet to learn what I need.

A close friend "boss" came to me a couple weeks ago begging me to help fix an application he spent alot of money to have built for his work in an Apple environment. He offered to buy me a new MAC and anything I need to make the changes necessary for it be what he intended it to be. His guy that built it has suddenly disappeared after getting paid. I have been wanting to learn how to build apps for iPhones so I figured why not, I love to learn and what a great challenge. Im waiting to be approved from Apple as an official member/ developer, but I really need to get past this point Im stuck on right now.

Well I have spent the last couple of weeks spending 18-20 hours a day learning xcode4. I feel I have made a ton of progress and have created multiple dummy apps just for practice. However, the application he wants me to improve was built in xcode3.

First off, I have read that you can work on an xcode3 project in xcode4 with no problem. If someone could please verify that I would appreciate it. I have several questions but have a feeling that this one could make the difference in some of the areas Im stuck in.

I will go ahead and ask my second question, and this is definitely going to show off my newness to the IOS and xcode environment, but in windows its so simple to look at any project and be able to tell where the beginning page is, the login page, the index page, if you will. However, with this application this guy build in xcode3, I cant find the "home" or beginning page of the app. in any of the code. I have identified almost all parts of his code and have learned so much about how he designed it, and am ready to make the changes my buddy wants to the app, but cannot seem to find that first initial login page/script. Is anyone willing to help a newbie out here who is very eager to learn and is a super fast learner?

I would be forever grateful and eventually a valuable contributing member to this forum, but just need to get over a couple of newbie hurdles.

Thanks so much,
WH
QUOTE Thanks
AvisNocturna

 
Member Since: Apr 27, 2011
Posts: 11
AvisNocturna is on a distinguished road

AvisNocturna is offline
Hi!

You can open an xcode 3 project in xcode 4, it should convert fine if it is a simple project without sub-projects etc...just try it on a backup copy!

The beginning point of any C program is always the main function. This is also true for Objective-C/Cocoa. A function called UIApplicationMain is called in the main function, starting the Cocoa "machinery". For most developers, the start point is the applicationDidFinishLaunching: method of the UIApplication delegate. Look for this method and you'll find your starting point!
QUOTE Thanks
webherper

 
Member Since: Apr 25, 2012
Posts: 13
webherper is on a distinguished road

webherper is offline
Quote:
Originally Posted by AvisNocturna View Post
Hi!

You can open an xcode 3 project in xcode 4, it should convert fine if it is a simple project without sub-projects etc...just try it on a backup copy!

The beginning point of any C program is always the main function. This is also true for Objective-C/Cocoa. A function called UIApplicationMain is called in the main function, starting the Cocoa "machinery". For most developers, the start point is the applicationDidFinishLaunching: method of the UIApplication delegate. Look for this method and you'll find your starting point!
This is really helpful; thank you. The more and more I dig into the code on this app he created, the more problems I find. I think I will be on this forum quite a bit with questions regarding his process. Thank you again.
WH
QUOTE Thanks
AvisNocturna

 
Member Since: Apr 27, 2011
Posts: 11
AvisNocturna is on a distinguished road

AvisNocturna is offline
If you have specific questions, I am glad to help out!
QUOTE Thanks
webherper

 
Member Since: Apr 25, 2012
Posts: 13
webherper is on a distinguished road

webherper is offline
Quote:
Originally Posted by AvisNocturna View Post
If you have specific questions, I am glad to help out!
First of all, Happy Anniversary today...being your one year mark as a member of this forum.

Second, if your serious, Im going to take you up on that because this thing is a real mess and although I have learned a ton in the last couple of weeks, much of the code this guy put together makes little to no sense at all.

Have a great weekend! I know what I will be doing all weekend! haha

WH
QUOTE Thanks
webherper

 
Member Since: Apr 25, 2012
Posts: 13
webherper is on a distinguished road

webherper is offline
In this application Im trying to fix, it was supposed to be built such that you can use it on an iPhone or an iPad or even a full blown MAC desktop. However, when I run the simulator for the iPad version, it comes up the same size as the iPhone, with a button at the bottom of the iPad screen called "2x". When I click on that it obviously doubles in size, but the resolution is horrible!

What is the chance I have missed something and its actually viewable correctly on the iPad? Or does that just prove that it was only designed for the iPhone and will not show up on an iPad in the proper dimensions/ resolution?

Any feedback/ support/ suggestions very much appreciated.

Regards,
WH
QUOTE Thanks
AvisNocturna

 
Member Since: Apr 27, 2011
Posts: 11
AvisNocturna is on a distinguished road

AvisNocturna is offline
Hi,

this normally means that the iPad simulator is running an app that is only iPhone-Compatible, not made for the iPad. The iPad simulator and the iPad device determine if the app is compatible from the info.plist file of the app. Check the UIDeviceFamily key in that file, this should give you a clue!
QUOTE Thanks
webherper

 
Member Since: Apr 25, 2012
Posts: 13
webherper is on a distinguished road

webherper is offline
Thanks for responding so quickly. I will check to see.

Hey I have one more question if you dont mind, one that is probably easier than Im making it, but I have had my head in the books and video tutorials all week learning xcode and am either drawing a blank or have no idea on this one. My buddy just called and tried loading the app on his brand new iPad and it says he must upgrade to the 5.1 OS before running this app.

What did his programmer do or not do so that it cannot be run on all devices? That is just odd to me on such a basic app, which is mostly just tables and charting, that you have to upgrade to the most recent iOS to run it. He is trying to get his old programmer to pull it off the store so I can made the mods. to correct the problems. So do I need to do to convert this app to run on all iOS versions as far back as 3? Is it simple or is there at least a tutorial on the process?

Again I so very much appreciate your help and quick responses. If I can return the favor somehow let me know.

Regards!
QUOTE Thanks
AvisNocturna

 
Member Since: Apr 27, 2011
Posts: 11
AvisNocturna is on a distinguished road

AvisNocturna is offline
Hi!

There are two things that limit on which iOS version an app can be started.

First: The Info.plist file contains a minimum system version. If this is set to 5.1, it will only run on 5.1

Second: If the app uses library calls which are only present in iOS 5.1, the app will not run/crash on earlier systems if the info.plist minimum version is below 5.1.

If the app you have to refactor was written using the Xcode 3 IDE, it is not possible that it will only run on iOS 5.1 since there is no iOS 5.1 SDK for Xcode 3.

Hope that helps!
QUOTE Thanks
webherper

 
Member Since: Apr 25, 2012
Posts: 13
webherper is on a distinguished road

webherper is offline
The app does not have a UIDeviceFamily key, or at least I have not located it yet, but in the UIKit.framework folder I found the UIDevice.h file and based on the information in their, it appears there are no instructions/ parameters for the iPad, only the iPhone and iTouch. All of the UI files would be in that folder correct?

Im going to look over your answer to my last question. Thank you again.
QUOTE Thanks
AvisNocturna

 
Member Since: Apr 27, 2011
Posts: 11
AvisNocturna is on a distinguished road

AvisNocturna is offline
HI!

Have a look here: Loading…
QUOTE Thanks
webherper

 
Member Since: Apr 25, 2012
Posts: 13
webherper is on a distinguished road

webherper is offline
Quote:
Originally Posted by AvisNocturna View Post
HI!

Have a look here: Loading…
I was actually looking at that page when you posted it. I dont have the page you are referring to, yet the UI page I do have, is not listed in that list. I guess I need to keep looking around and hope its in another folder.

As far as the iOS5.1 and xcode3 question, I took a screenshot of the Interface Builder info. on the right when I was on the "MainWindow.xib" page and this is what I have...so am I just not digging around deep enough on either question/challenge?
Attached Images
File Type: png Screen Shot 2012-04-28 at 2.35.28 PM.png (19.0 KB, 17 views)
QUOTE Thanks
AvisNocturna

 
Member Since: Apr 27, 2011
Posts: 11
AvisNocturna is on a distinguished road

AvisNocturna is offline
Hi!

You need to add the key UIDeviceFamily as an array to your Info.plist with the values 1 and 2 in that array to get your app running on both, iPhone and iPad.

The screenshot you've posted is from a single XIB file. If you want to check the deployment os version, check your project settings.
QUOTE Thanks
webherper

 
Member Since: Apr 25, 2012
Posts: 13
webherper is on a distinguished road

webherper is offline
Hi,

I got it. So I will add the key as an array with the values you suggested; I did read that on the UI description page you linked over.

As for the screenshot, I wish I could send you a screenshot of the whole xcode platform, but there are details on their that would break my non-disclosure agreement with my buddy.

So, if you dont mind and are not frustrated with me yet (haha) I have the project settings page up and this is what is listed:

"Project Format" Xcode 3.2 compatible (Under the Project Document Panel on the right)
"Deployment Target" 5.1 (in the center under iOS Application Target)
"Devices" iPhone (in the center under iPhone/ iPod Deployment Info.

There are 5 Linked Frameworks and Libraries (not sure yet what this means exactly)

Ah maybe this is what you are referring to...when I click on the icon under "PROJECT" in the left of center it shows that the iOS Deployment Target is 5.1. So is this why he is not able to pull up the app. on his new iPad?

Could I convince you to explain why it says "1 target" under the Project name but up in the center top area where you see the progress bar when the simulator is loading it says "project 11 with the triangular yellow apostrophe in the middle of "project" and "11"? Does that mean there are 11 problems with the project? That would made sense because that symbol appears frequently in the code navigator.

So does any of this info. give you a clue why it wont load on a new iPad 3? After I put in the key in the Array the problem with resolution in the iPad simulator will be gone right?

Thank you a million if you are able to make sense of this!
MH
QUOTE Thanks
AvisNocturna

 
Member Since: Apr 27, 2011
Posts: 11
AvisNocturna is on a distinguished road

AvisNocturna is offline
It is strange that it is not loading on his new iPad 3 since the iPad 3 needs to have iOS 5.1 if I am not mistaken!

The "1 Target" means that in your project file contains one target. You can have multiple targets per project, for example one target for a demo version of your software, the other target for the full version.

The yellow triangle means that you have 11 warnings in your project, but no errors (this would be a red stop sign).

I would set the deployment target to iOS 4.x and the devices option to iPhone/iPad.

How did you send the app to your buddy? Have you signed it? Did you send the provisioning profile with it?
QUOTE Thanks

Post Reply New Thread Subscribe


« Touch Up Inside fine, Touch Down Not | Is it needed to have a Mac to use the iOS Developer Program? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
25 billionth app downloaded from the App Store OneMoreThing... Apple Rumors and Reports 3 03-04-2012 02:12 PM
Apple warns of crackdown on App Store rankings manipulation OneMoreThing... Apple Rumors and Reports 1 02-07-2012 06:00 PM
Best Location-aware app?? elsworth864 iOS and Apps 0 02-24-2010 04:56 PM

All times are GMT -4. The time now is 10:39 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?