iphone

Writing authentication system

I am currently writing the backend for a service which has 3 clients: browser, android native and iphone native. I am having a little trouble with coming up with an authentication system since I don't know what can really be done on the clients. I am using django + twisted for the backend. Basically, I am going to be writing RestfulAPI...

iPhone 4.0 NSDateFormatter crashes..

Hi all! I need to convert a NSDate to a string using my personal data format... The problem is that this code on the simulator (4.01) crashes... sometimes the code is "freezed", sometimes give the BAD_ACCESS... here is the code: NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; ...

Why doesnt my network activity icon appear in my iPhone app

Im using the standard: [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&response error:&error]; method, but while the request is away, for both waiting for the response and downloading the data, the activity icon in the OS (very top) doesnt spin showing net...

How to know or retrieve the sender id

I have the following method -(IBAction)back:(id)sender { } and would like to be able to know the sender id. e.g. if there are multiple buttons linked to this method, I would like to know which button was pressed. ...

iPhone/iOS: How to list all files in a resource group?

I've got a bunch of resources -- images, to be specific -- which are all stuck in a resource group via XCode. I know how to load a specific image file from within that resource group by specifying the filename and using inDirectory to specify the "path" to the group it's in. But is it possible to obtain (programatically) a list of all ...

Using UIImagePickerController in the game

Hi. I want to make a game, where the user can touch a picture of a TV and then choose a picture from their photo library. I had success working with UITextFields, adding them to my EAGLView as subviews But I haven't been able to do the same thing with an UIImagePickerController , which seems the only way to do what I want to do. Any h...

CoreAudio: recording sound from other apps

I'm thinking about creating a plugin for jailbroken iPhones to record audio from apps. Because I'm new to CoreAudio I want to ask first if that would be possible? (so I don't invest dozens of hours in CoreAudio without even having a chance to do what I want ;)) So what do you guys think? Any tips? Thanks in advance! ...

present modal view controller

I am just getting started with iphone development I have a Tabbed application and I wanted to display a log in form modally so i looked here Apple Dev and did this inside one of my view controllers I connected a button to the following action: #import "LoginForm.h" ... -(IBAction)showLogin{ LoginForm *lf = [[LoginForm alloc]initWithNi...

Building libxslt for iPhone

I just had an app rejected for linking to libxslt using this technique. I'd really like to use XSLT in my app, so it looks like my only shot is to compile it myself. I don't want to use a UIWebView because I want to store the resulting HTML, not just display it. Has anyone done this -- compiled libxslt for the iPhone? After some Go...

How to rotate UIImageView 90?

Hello I would love to rotate a UIImageView 90 degrees.I would not like to use the transform property, like the code below. imageView.transform = CGAffineTransformMakeRotation(M_PI * 0.50); What are my other options? ...

iPhone/iPad WebView Example

Where can I find a simple compilable example on how to create and use a UIWebView? Any non-interface builder examples? ...

Change UIScrollView contentSize on tableView reload

Hi, My iphone application has this main view which contains 2 scrollviews. The first scrollview contains some information (this one has paging enabled and user scrolls horizontally) and the second scrollview contains the tableview. I am using UIScrollview to load tableView even though the tableView is a subclass of UIScrollview. This...

I have a UISwtch embedded in a UITableViewCell defined in a XIB file. How can I respond to a change to the switch state?

I built the cell with Interface Builder. I load the cells like this: UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID]; if (cell == nil) { [[NSBundle mainBundle] loadNibNamed:@"MassCircleNGTableCell" owner: self options: nil]; cell = circleNGCell; self.circleNGCell = nil; } UISwitch *s = (UISwit...

Settings Application Implementation - boolean values set to "no" by default.

The question, by itself, implies that the DefaultValue property in my Root.plist file was set to "no". This is unfortunately not true. To verify what my problem is, I am trying to use a section of the iPhone's Settings application. I am using this to show/hide certain on-screen items. By default, the "shown" property was set to "on."...

one more memory leak for iPhone

aBook is defined in .h xml parser.h #import <UIKit/UIKit.h> @class XMLAppDelegate, Book,ZoneCheck; @interface XMLParser : NSObject { NSMutableString *currentElementValue; XMLAppDelegate *appDelegate; Book *aBook; ZoneCheck *aZonecheck; NSString *keyInProgress; NSMutableString *textInProgress; } - (XMLP...

Comparison of Cross-Platform (Mobile) App Development Solutions - iPhone / Android / Smartphones via Web Dev Skillset

It looks like there are a number of cross-platform solutions for smartphone app development, accessible by web developers. Here are some I've found -- what are the pros/cons of each, from the perspective of a web developer's skillset (CSS/AJAX (jQuery)/LAMP backend)? appMobi appcelerator Titanium PhoneGap Rhodes And a few others ...

How to get the user's location from iPhone using Google Maps API v3?

I want to make a google map on the iPhone and show the user's location when they first open the site. But i can't find this method on Google Maps v3 api. So i think maybe the iPhone has the function to do this. Does it? ...

How does the Model talk to the View Controller?

Here is something I just can't get to work....I can make the view controller talk to my custom objects just fine....but how do I send messages to the View Controller from my objects? A message from myViewController to myObject would look like [myObject doSomething]. What would the opposite message look like? Does it even make sense to...

how to combine two project on iPhone?

Hi, everyone, I want to ask about the objective C on iPhone. I am writing a application, it contains 2 pages. The first page requires the user enter some information. The second page displays the tab page (3 tab). And I create the first page and the second page in different project. I use the 'Window-based Application' to create the f...

Is it possible to capture bluetooth scanner input without showing the keyboard?

I have one of these crazy keyring Scanfob bluetooth scanners and I have been tasked with building a simple scan-to-tableView application. The problem I am facing is how to accept key entry without using a TextField or TextView, as they ultimately make the Keyboard appear which is unacceptable to the client. This is my first week in Obj...