iphone

how to replicate JQtouch smooth iphone animations?

Hi! so, i know how to do this by theory, buy when i try the animation is really laggy. what i"m doing: i got this UL with all sort of items and text (really standard) and when i want to animate it i just add with JS a class "flipout" like so: element.className = "flipout"; the CSS for the animation looks like this: .flipout{ -webkit-...

Three20: How to acces the model in the next ViewController?

Hi there, The Situation I populate my TTTableViewController with a TTListDatasource(with TTModel). My didSelectObject methods opens a TTViewController. The Question I d like to show more informationen in the TTViewController. 1.Question: Should i hand over the datasource (and run a new query) or should i hand over a specific VO (with ...

iPhone: IBAction Causes "Unrecognized Selector Sent to Instance" Error

I'm working on my first real iPhone app, a simple To-Do list application to help me organize stuff, except I'm getting an "unrecognized selector sent to instance 0x". Specifically: 2010-02-20 14:30:09.200 ToDoApp[88562:20b] *** -[NSCFDictionary switchViews:]: unrecognized selector sent to instance 0x3d22de0 2010-02-20 14:30:09.201 ToD...

Iphone - UIToolbar automatic position

I have an application where a UIToolBar is to be constantly on the bottom side of the screen. No matter the device orientation. The toolbar must have the same screen width and always be justified to the bottom side. If the device rotates, the toolbar has to assume the new width and continue to be justified on the bottom. Is there a w...

what method does navigationcontroller fire

I have a navigationController and 3 View controllers. VC1 pushes VC2 and VC2 uses PresentModalViewController to display the 3rd VC When VC2 uses presentModalViewController to show VC3, is the VC3 actually pushed on the navigationcontroller stack? viewdidload of VC3 is called only 1st time. My goal is to show VC3 with a new imageView ev...

iPhone memory stack issue

I've got a program, which loads the albums artwork in NSOperationQueue and it works like a charm. Memory usage stays under 800 KB, but the overall allocated (and released of course) memory is about 50 MB. My problem is memory rans out and the iPod player is killed by the OS. I've got a memory warning, but I don't have anything to relea...

Why is main leaking in my iPhone app?

See the screenshot below, this is the only leak the Leaks Instrument finds in my app. Seems odd that main is leaking since it's out-of-the-box. Is this common? ...

Problem with NSMutableURLRequest

i have the following method -(void)request { responseData = [[NSMutableData data] retain]; NSString *post = [NSString stringWithFormat:@"id=%d&a_id=&d",1,1]; NSLog(@"%@",post); NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]; NSString *postLength = [NSString stringWithForm...

Recreating a Duplicate iPhone Project with Interface Builder Errors

Due to some extraneous errors in a previous XCode project that wouldn't allow my iPhone app to run on the iPhone, I had to take all the code and files from what we'll call Project1 and build a new project called Project2. I then filled Project2 with all the same files, not changing any code. Next I had to recreate the Interface Builder...

Adding a row of icons to a table cell.

Okay I am just totally too close to this I think. I have a tableview. In that table view everything is working except section 2 row 0. AND -- before anyone asks...I know I am not using the *imgWordView (in the code below) and that is why the icons are not showing but i do not know where to add it to the subview so i can place it at c...

How to Notify View Controller that a Property of an Object has Changed

Hello all, I have a view controller which gets an NSObject conforming to a protocol and then displays a view with the object's properties. The question : How can my controller know that a property of this object has been modified and then refresh the view ? Thanks a lot Thierry ...

NSUndoManager undo Not Working With Core Data

Hi there, I am trying to create an iPhone application where the user can add entries. When he presses a new entry, a box will popup asking him for some information. Then he can either press "Cancel" or "Save" to discard the data or save it to disk. For saving, I am using the Core Data framework, which works pretty well. However, I cann...

Transfer CSV files from iPhone to MacBook

My application creates CSV files, stored in the documents directory, with the purpose of being later imported into Microsoft Excel. What is the best way to transfer these files in an end-user-friendly way, via the iPhone USB cable, to a MacBook? If there is some way to do this exclusively with code on the phone itself (doubtful) that w...

MKMapView, Google Maps API and traffic information

Hi folks, By the time you finish reading this question, it will become obvious to you that I'm pretty new to this development. But I've got a quick question here. I think I (unfortunately, sorta) know the answer, but I figured I'd ask, anyway: I'm working on an app in which I'd like to display traffic data from Google Maps into a map. ...

iphone safari web page switcher thumbnail

What does the iphone (3gs) safari use as the thumbnail displayed when switching between windows? for the page below, built using jqtouch, the page contents disappears when clicking the page switcher. the background remains http://www.maths.manchester.ac.uk/~dszotten/limmud/iphone/ ...

UITableViewController with a UIPickerView sliding up the screen

I have a UITableView where a cell needs to be filled in with a date by selecting it through a pickerview. Instead of pushing the pickerview onto the navigationController I would want to let it slide up halfway into the screen with the tableview still visible in the upper half of the screen. I've seen some apps doing this neat effect befo...

Having difficulty debugging a iPhone Core Data bug

I'm hoping someone can help me debugging an incredibly frustrating Core Data crash. I initially load data into two entities (representing 'speakers' and 'titles') I then load a third entity for 'sessions' and try to set relationships to 'speakers' and 'titles'. (from session to speaker and title is one-to-one. from speaker/title back...

navigationController push from CustomCell

I have a TableView with a CustomCell . In the CustomCell is a UIImage with "setUserInteractionEnabled" ... The TableView is into a NavigationController... a normal didSelect with a push to a new view works fine.. i make this in the customcell for the UIImage: - (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UI...

Targeting a static library to Mac and iPhone

I have a few static library projects which are used in a Mac application, I'm working on porting these libs to the iPhone and I would like to use the project to build both the Mac and iPhone versions. For that purpose I setup an additional target for the iPhone. This looks like it should work but I see that if I try, for example, to add...

GKSession - what if I have Bluetooth and Wi-Fi turned off?

I'm working on an iPhone app that will allow for peer-to-peer connections. From what I understand, I have the choice between using GKPeerPicker or the GKSession. I don't like the idea of using the PeerPicker because I want to show a custom interface, so I decided to go with GKSession, and hey, BONUS is that it also works over Wi-Fi, wher...