What happened to Windows Based Application in Xcode 4.2? [duplicate] - iphone

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Cannot find window-based application on XCode
I am pretty new to IOS development and have started reading books to help me out. I only started recently and the books all start you on a windows based application and I see that this does not exist in xcode 4.2. I have read and found that the way to go is to create an empty project but this does not create a .xib file and I have no idea what I'm doing so it might not seem like a big deal to an experienced IOS developer but this was a huge curve ball for me. Also there is a bunch more code in the .h and .m file that wasn't there before. Can someone tell me why this was taken out and maybe sort of guide me to what I should do or what I should start reading. I know that this may seem like a question that could be solved with a bit more research but the problem is not as much that the windows based app is not there anymore but why is it not there. Maybe I shouldn't even try and create one anymore? I have even read posts where they say how to add the .xib file but that didn't really help because when i built my app, it was a blank screen. Anyways, that's a different problem.

There are new editions of many beginner books out there, such as the Apress series
There is a walkthrough of hooking up a XIB to the empty app which should make it fairly easy to go through the book you already have. If you're having problems with this though, then I really do recommend the book. I've gone through the last version of it and I found it very easy to follow and understand.
As for why Apple changed it, as per usual they haven't said anything about what motivates them. We developers are just left to assume that they must have it in for us.

How to make window-based app in 4.2: http://www.makebetterthings.com/iphone/where-is-mainwindow-xib-in-xcode-4-2/
Make sure you didn't miss "select MainWindow as the Main Interface" part.

Windows Based application are not there in Xcode 4.2. But You can go with option "Empty Applicaion" and manually add Xibs and classes.
For more details please follow this question "Cannot find window-based application on XCode" where you will find your answer in a more clear way.

Related

upgrading to iOS 7 and Xcode 5 - having issues with UIAccelerator, UIStringDrawing and NSObject

I updated my iPad to iOS 7, and discovered that the Enterprise app that I have been working on for over a year crashes. OK, no problem, I'll see where in Xcode it's crashing.
OK, Problem: I have to upgrade to Xcode 5 to debug iOS 7. OK, no problem, I'll upgrade to Xcode 5.
OK, Problem: The source code in Xcode 5 now shows 19 errors: One in NSObject.h, three in UIStringDrawing.h, and the rest in UIAccelerometer.h.
And, for a bonus, it adds one at the bottom, "Too many errors emitted, stopping now." Which is not all that comforting.
I've really scoured the internet for answers, but I must be using the wrong search terms because I am finding nothing that addresses this. Surely I am not the only one.
I have been developing iOS apps for almost two years now, I think, but I am still pretty stupid when it comes down to the nitty-gritty stuff. I usually just hit "Run" and hope it works. So far that has been a pretty effective strategy, but now I am stumped.
Can anyone tell me what I am doing wrong? Except the obvious, being that I should have left everything well enough alone.
I will also have to update my previous app, because it has iOS 7 issues too, but it scares me to even think of it.
I appreciate any help anyone can give.
I found the answer here: http://blog.spacemanlabs.com/2013/09/how-to-support-old-ios-sdks-in-xcode-5/#comment-1056917662
After figuring out how to do all this, the app showed a couple more errors unrelated to the original problem. Turns out I had a couple of XIBs set for Autolayout. Those being disabled, the app worked great on my iOS 6 phone with Xcode 5.
Glad you were able to switch back to the iOS 6 SDK. I had the same errors in UIAccelerometer.h and NSObject.h, but wanted to stick with the iOS 7 SDK.
For me, these errors were the result of stray copies of UIKit.framework, Foundation.framework (And a couple of other frameworks) inside my project folder. These were seen by the linker, hence the "duplicate symbol" error messages thrown. As soon as I got rid of the frameworks in the project folder and re-linked to the frameworks in "Build Phases" -> "Link Binary With Libraries," everything built.

Core Location Simulator on Xcode 4.2 Not Working -Any Clues?

I checked all the other variants of this, and don't see the answer here. It seems a lot of folks are thinking of Xcode 4.1, and the issues therein.
First of all, I am very happy with Xcode 4.2. It fixes the huge plethora of problems I was having, and, once again, makes the simulator a useful tool. I am very glad for this, because it is a MUCH faster workflow than using the devices.
Now, 4.2 introduces something in their Edit Scheme dialog (Go to the "Run" page, then "Options"). This is called "Core Location [checkbox] Allow Location Simulation". It allows you to pick from a list of pre-defined locations.
This seems to obviate the horrendous hack that I had introduced when I first encountered the issue in Lion.
However, it no workee. I'd like to find out what I am doing wrong. Has anyone gotten this working?
Remember: THIS BEGINS IN 4.2, WHICH JUST CAME OUT YESTERDAY. So the rules from 4.0 and 4.1 don't apply. It is a new capability.
Thanks!
First, I created the GPX file as mentioned in this question.
In addition to updating the Run Scheme to select the Allow Location Simulation option and specifying the Default Location as you mentioned, you also need to make sure that your Scheme is set to iPhone 5.0 Simulator. This made the trick for me, when I debug my project, the app asks me if I want to allow it to use my current location, and I can see the Debug -> Location menu in the iPhone Simulator.
There's a thread on this bug in the Apple developer forums. One suggestion is to reset the simulator.

iPhone call log / history

I'm doing some research on the feasibility of an iPhone application, and can't find any indication in Apple's documentation that an iPhone app can read the call history of the phone, specifically the number called, when, and the duration... I also need the same information for SMS.
First of all: I've done my research and googled around, searched around on this site! I know this question had been asked a lot of times before, and the answer was always: "It can't be done" (at least not on a non-jailbroken iPhone).
I searched the API including Core Telephony and didn't find anything myself either.
So why this question? Because this app in the App Store seems to be doing this without a problem... : http://itunes.apple.com/us/app/callog/id327883585?mt=8
Sorry but right now it really can't be done..
On iOS 5 there isn't any access to call_history.db -> Which is exactly what you were looking for.
The app mentioned here:
http://itunes.apple.com/us/app/callog/id327883585?mt=8
Does not work with iOS 5 (don't download but check the users' reviews..)
On iOS 4, you might still be able to get away with it:
http://iosstuff.wordpress.com/2011/08/19/accessing-iphone-call-history/
But who develops solely for iOS 4 these days..?
This doesn't need jailbreak. U can use the FMDB to access the call_history.db. It doesn't need any third party API's. I don't know, Apple will accept it or not, but I know it can be accessed as I have already done that in one of my apps, I am currently working on.
This is possible since this https://itunes.apple.com/us/app/navita-t.e.m.-personal/id590228620?mt=8 application does that. The question is, how?

How do I launch an iOS app upon startup?

I am working on a project where the iPad will be used for a specific purpose, and only run one app. When the device starts up, I want my app to run, and I want to override the home button so that it does not quit the app (like the iPhone/ iPod demos in the store).
I have seen bits and pieces of this functionality, but am unsure how to implement it. I realize that it would have to be on a jailbroken device, and the client is fine with that.
Any ideas?
Thanks!
Thomas
Edit 1: I found this site, which explains some iOS daemons. I'm still researching, so I'll just keep posting what I find.
Edit 2: I found Saurik's IRC channel and asked around in there. One of the participants told me that it is possible, but probably not as simple as I thought. I am still doing some digging around in the iPhone 3G filesystem now just to get the feel of what certain things do.
The project has been scrapped, but I'm still looking for help on this though....just cuz I'm interested lol.
Here's my progress on the issue. Question's still not completely answered, but I'm making some headway :-)
I've been researching Jailbreak and the iOS filesystem as well. That has helped my understanding of the issue some.
Without jailbreaking this would not be possible.
There has to be something in /etc somewhere that runs through all the things that start up, just like on Linux.
It so happens that my current ipod touch has a WALD screen after me manually deleting a few mp3 files. Some anti mp3 mocking code policing it, and not liking me touching the mp3 file structures... otherwise I'd look for you right now.
Do you know how to ssh into your ipod/iphone?
Well, I believe Apple itself uses this on the iPads running at the Apple Stores (those showing animations about the products where you can ask to talk with a blue shirt).
I would look for something on the official IPCU (iPhone Configuration Utility) to check if there is an option for auto-loading apps on boot time.
If not, try to get friends with someone working on an Apple Store and get some hints on how they run their app on those iPads.
you can add the "voip" key in the information plist.
This is backed up by Apple:
You can also see this sample project:
https://github.com/lithium3141/BootLaunch
PB.

UITableView: Check rows in edit mode

I'm new to iPhone SDK 3.0.
I've seen table view edit mode where you can check multiple row items and then delete them or move them.
The picture here (http://twitpic.com/khmog) illustrates what I mean. I've also seen this in several other apps, such as "Groceries".
Could anyone tell me how to do this? Can this be done using 3.0 APIs? Thanks.
It seems that Apple uploaded "TableMultiSelect" as sample codes on iOS Developer Program since 2011-10-12.
It explains only multiple deletion, but I suppose you can change it for moving.
Though it can be used only from iOS5..
http://developer.apple.com/library/ios/#samplecode/TableMultiSelect/Introduction/Intro.html
I've found a solution here:
http://iphonedevelopment.blogspot.com/2008/10/table-view-multi-row-edit-mode.html
There was a demonstration of this on the CS193P course (available on iTunes U). I'm pretty sure it was the Loren Britcher session.