iphone

Can I trigger a CSS event in mobile safari upon iphone orientation change?

I'm trying to figure out how to change an embedded web page when the user rotates their phone from portrait to landscape mode - basically to load a view that is better suited to the wider screen format. Is this possible to do without calling a new page from the server, i.e. to drive it from within CSS/Javascript itself? Thanks! ...

Three20 TTThumbsViewController

I need to show some images in my app. So, I decided to use three20 and especially the TTThumbsViewController. i have tried to put it in my tabbar application, but it doesn't work. What I have to do?? Is there another way to make an image gallery?? Link to the project P.S. Sorry for my English, i can't write but i understand very well...

programaticlaly moving rows with animation in UITableView

Hi, I want to move a row to the bottom of my UITableView with cool animation effect just like in Grocery Shopping List app. How can I create such animation? -Alex ...

Get current system time?

Whats the best way to get the current time (HH:MM:SS) using Objective-C. I would guess I should be looking at NSDate & NSDateFormatter. I had a quick glance at the docs and it looked a little more convoluted than I expected, so I thought I would check here to make sure I was on the right track. gary ...

How do I turn on Research Assistant in XCODE Version 3.2.1?

Seems like a mystery to me. I've read the referenced Q&A on this, but it still doesn't work. A bug? A Preference setting? Thanks... ...

Can an iphone app transparently connect to an https site, using a DER certificate shipped with the app?

Hello, I would like my app to connect to an https site, without user input required. So, I would like to send the app a certificate that the app will install in the keychain, and allow it to connect to the https site without the user getting involved. How can I do this? Thanks! ...

Why do I get a memory leak when adding a button as a subview?

I have an app that uses a tableview, along with a UIButton that I add as a subview to each custom cell, like this: UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; chec...

iPhone - application being ejected

I have an application that is being ejected by iPhone OS for "low memory". I have passed it thru instruments and I see zero leaks, and memory usage is around 640 kb. The application crashes when I add objects to the screen. This is how it works. I have a UIImageView based class that is very simple and add a few properties to the objec...

iphone tableview cells with custom textview - get textview reference

Hi guys I have a UITableView with 15 cells, each with a separate text box in it. I have implemented UITextViewDelegate and I am able to received changed textview data using textViewDidChange (etc). But I have one big problem still, how do I know WHICH textview sent this, (i.e. in which cell was the textview altered?) Its interesting to...

Clickable links in UITableView that open up Safari.

Hi, I am working on an iPhone app, and would like to be able to click on a link that is in UITableView. When the Link, and only the link is selected I want the Safari app to be opened to the selected link. Any suggestions on how to do this? Thanks so much! ...

Is XCode able to implement Code Sense when conforming to a protocol?

So XCode has been driving me crazy.. When writing iPhone apps using pickers or table views, when I state that the controller conforms to the DataSource and Delegate methods, XCode isn't generating code sense for those respective methods, and it's driving me nuts given how wordy some of them are.. Like -(NSInteger) tableView: (UITableVie...

iPad Orientation Paradigm

I'm not a super awesome designer so this new paradigm has me a little cranky. The iPad is not supposed to have a standard orientation, and should/shall display screen contents at whichever orientation the user decides. This has me sort of stumped. I can keep my UI designed the way I want it in landscape mode, but switching to portrait...

iPhone: install certificate for SSL connection

I would like my app to install an SSL certificate on the device, giving it access to my https site. Any advice would be greatly appreciated. Thanks!! ...

Best practice for determining the probability that 2 strings match

I need to write code to determine if 2 strings match when one of the strings may contain a small deviation from the second string e.g. "South Africa" v "South-Africa" or "England" v "Enlgand". At the moment, I am considering the following approach Determine the percentage of characters in string 1 that match those in string 2 Determine...

When compiling for multiple targets in XCode, how do i ensure that certain files will not be included one target.

Hi all.. I searched for a long time on stackoverflow using every keyword I could think of to solve this. I am programming for iphone and I have a lite and paid version of my app. I followed the instructions here Creating Lite Versions of iPhone Games / Apps for duplicating the target. This works and now I am working on slimming down t...

iPhone - Quit Tab when Switching

I have a tab based application with 3 tabs. How do I go about completely closing the view controller of a specific tab when it is switched? It should start again when it starts again. Thanks for the help. ...

What template for project should I use?

Looking to provide a user with a list of different math calculations such a the area of a circle and Pythagoras theorem, What template should I use? The user will select a cell that will open to a calculation page, here they will be able to enter raw data to be calculated. If you know of a tutorial of sorts please direct. Thanks. ...

MPMoviePlayer dismiss when pressed

Hi. I have a MPMoviePlayer setup to play an intro movie to my application. That works just great, the only problem is that it lasts for 14 seconds, and I want to give my users a chance to skip the intro by pressing anywhere on the movie. I have hidden the movie controls, as they are not needed. Code: NSString *introPath = [[NSBundle ...

facebook connect on iPhone - making calls is giving error 102 "Session key invalid or no longer valid", yet the stream dialogs still work

Hi there, Anyone see this? I've a situation whereby sometimes, [session resume] returns YES. I make a FBRequest.call, and the error delegate gets called. The error has 102 "Session key invalid or no longer valid". However, if within the same session I call up any FBDialogs (e.gr. to publish to a stream), these all work fine. I don't s...

iPhone - textField in a tableViewCell - Scrolling off screen clears the value

I have a textField inside a tableViewCell. I recently noticed that if I enter a value in the textBox, and then scroll the cell off the screen, the value in the textbox disappears. I have a safeguard against this. If there is no UIKeyboard present, the tableView can't scroll far enough to have to redraw the cell. However, some users d...