UITableView: Check rows in edit mode - iphone

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.

Related

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

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.

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.

Xcode conditionals list, where do I find them?

I am trying to learn about all possible conditionals that can be used on Xcode regarding the iPhone and iPad.
I have found the file "TargetConditionals.h" on
Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/
but this file do not shows all possible conditionals, just a small set.
I don't see, for example, __IPHONE_3_1
and others.
As Apple docs as vague as hell, I as you guys where can I find a complete list with ALL conditionals?
thanks
Check out Availability.h. I don't know if there's a list that compiles everything across all files, but this one has the iPhone/Mac OS X version conditionals.

iPhone Or Mac Header File?

Just a small question...
How is it that you tell the difference between an iPhone header file which you can use in conjunction with iPhone development, or a mac specific header file.
Many thanks,
Stu
Many are the same, but not all are included in both. It all depends on which SDK you are building against as to which you have available to you. Please see the iPhone Reference Guide and the Mac OS X Reference Guide.
One quick way is to try and pull up something the header references in the XCode documentation, if you check the document sets the docs are looking at and un-check "MacOS" leaving the iPhone stuff, it will not find anything the iPhone cannot use.