iphone

UITableViewCell - different behaviour depending on touch duration?

I'm trying to animate an image in a UITableViewCell subclass. It works when the tap on the cell is about 1/2 second or more in duration. For shorter taps, the cell gets selected, but my animation doesn't run. In my view controller, I have: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { ...

UIButton in UITableView cell like "Delete Event"

I'd like to add a button to a table cell. The "Delete Event" in the calendar app inspired me... (a similar case is "Share Contact" in contacts) As of now there's - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { //..yadayadayada cell = [tableView dequeueReusableCellWithIdentifi...

MoviePlayer - custom controls iphone sdk

does anyone know if its possible to create custom playback functions for movieplayer such as, frame by frame playback. ...

ipod app replacement-in-a-tab?

With the new media-library capabilities in the 3.0 SDK, I'd like to have a tab in my application to control the music that's playing. Not just pause and play (i'm aware that pressing the home button twice brings up controls for this), but also the ability to browse and queue albums/artists/songs/playlists. Basically a copy of the ipod ap...

iPhone Temperature Sensor

My question is very similar to this one: iPhone Proximity Sensor. There's clearly some manner of thermometer within the iPhone that's readable by the OS. Has anyone uncovered the super-secret undocumented APIs to read this sensor? ...

Is Android development restrictive in any way like for the iPhone?

Is Android development restrictive in any way like the iPhone, or can you download whatever and from whoever you want? I want to learn about development for either iPhone or Android, but from what I hear iPhone development is pretty restrictive! ...

Setting UITableView headers from NSFetchedResultsController

I have a NSFetchedResultsController which is fetching objects from a NSManagedObjectContext. I'm using the results to populate a UITableView. I'm filtering with these two sort descriptors. NSSortDescriptor *lastOpened = [[NSSortDescriptor alloc] initWithKey:@"lastOpened" ascending:NO]; NSSortDescriptor *titleDescriptor = [[N...

How to convert betwee number of minutes to hh:mm format in obj-c?

How to convert betwee number of minutes to hh:mm format in obj-c? For example, 65 minutes = 01:05 ? ...

How to implement re-ordering of CoreData records?

I am using CoreData for my iPhone app, but CoreData doesn't provide an automatic way of allowing you to reorder the records. I thought of using another column to store the order info, but using contiguous numbers for ordering index has a problem. if I am dealing with lots of data, reordering a record potentially involves updating a lot...

IPhone Connectivity Testing: How do I force it to lose connection?

Apple wants me to give the user a friendly apology if I can't find an internet connection. Using the Reachability Demo, this was easy enough. I want to take it a step further and monitor for a connection loss. The demo has this functionality, but I can't figure out how to shut my connection off to test if it works. How would I go about ...

Delete/Reset all entries in Core Data?

Do you know of any way to delete all of the entries stored in Core Data? My schema should stay the same; I just want to reset it to blank. Edit I'm looking to do this programmatically so that a user can essentially hit a reset button. ...

UIImageView Zoom in and out

Hi... I want to change the images depending upon the zoom in or zoom out. Means if i am zoom upto certain limit then it should show other image. I added one UIImageView in UIScrollView and zoom in and out functionality is working but i am not getting how to change image during zoom in and zoom out. And while changing image it should h...

CLANG giving errors complaining about defective header file UILocalizedIndexedCollation.h

I ran into this error when building my code with CLANG: In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:31, from /Users/waspfish/Documents/NanaimoStudio/Projects/iPhoneMonk/Projects/IdeaOrganizer/IdeaOrga...

Work with wifi in my iphone application

Hello everybody! Please answer me, How to obtain information about wifi networks in my iphone application, Does apple provide API for this, Can I change current wifi connection without exit from my application? ...

Login problems for an iPhone Application for a Facebook Connect Site

I'm writing an iPhone app that provides access to a website that has an existing user database. The website is using Facebook APIs to also allow Facebook users to link their existing accounts with their website accounts. I need to be able to log in both Facebook and website accounts on my website when using our iPhone client but I am ru...

How do you reposition subviews in a UITableViewCell?

Hello Folks, I was in the process of writing a threaded UITableView that retrieves some information from the net. I would like to display an activity indicator in place of the regular cell.image while the images are loading. The problem is that the custom label and activity indicators are not behaving properly. The labels start out in ...

iPhone dev: editing grouped UITableView

Hello We are about to submit an application to the App store and we have encountered a very odd error when deleting rows and sections in a table. So far, and for compatibility shake we've been linking with 2.0 (so that any iPhone could run our code). For that scenario, we have a group table that allows removing items and this is how ...

UIView angle in circular motion

I have a requirement where I will move my finger in the circular motion on the iphone touch screen and i need the current angle parallely. I will apply this angle to my uiview and will rotate it. PLease, can anybody help. Thanks in advance ...

How to programmatically replace UIToolBar items built in IB

I have a toolbar with various image buttons, created in Interface Builder. I'd like to be able to programmatically replace one of the buttons with an activity indicator when pressed, and then put back the original button but change its color from white to yellow when the activity completes. Is this possible with an IB built toolbar or ...

Install old IPhone OS on development device

I want to roll back an IPod Touch 2nd gen from the 3.0 OS to the 2.2.1 release so I can test my application on there. The documentation lists the OSes as being available on the dev center, but I'm unable to find them but for the 3.1 beta's. Did Apple just hide them where I didn't look, or are those files not available anymore, and if so,...