iphone

smart phone UI limitations

I would like to know, what limitations there are for how far one can go in terms of replacing UI components of current touch screen smart phones, in particular iPhone, Blackberry and android based phones. What I would like to do is create a custom UI for dialing out and incoming calls. I have some experience with Blackberry developmen...

Has anyone come across a good article or resource investigating dropdown/flyout site navigation and its use on touchseen devices (iPad/iPhone)?

The question sums it up. ...

Is it possible to have more than P2P on iPhone with Bluetooth

Hi all, This seems like a straightforward google search answer, but after a while, I still can't be 100% sure of this. I've found Z2Live (http://www.z2live.com/), which is basically a layer above GameKit and they too use only P2P with Bluetooth. So I just want to be sure if I can only have P2P with Bluetooth or if I can have like 4 iPho...

Does it make any sense to develop for iPhone OS 3.0 instead of 3.2?

When it comes to backwards-compatibility, I want to stick to iPhone OS 3.0 so also some of the poor iPod Touch users who aren't rich enough for iPhones use my apps. But iPhone OS 3.2 has some pretty cool features that would be nice to have. Problematic thing: Since it's just a minor upgrade, I can imagine most iPod Touch users who deci...

FBConnect on iPhone with device orientation

Hello, all ! I've got next problem: when shows screen Requesting Permisson he don't rotating when i've rotate my device. All others screen rotating normally. Why ? thanks. ...

NSMutableArray of NSString in CoreData(iPhone

I have a class, which describe an object for parsing XML. This class contains NSStrings and NSMutableArrays of NSStrings.I want to store parsed data using CoreData. How should I write CoreData model to store such objects if there is no such data type like NSMutableArray? Is there any way? ...

disable keep-alive in NSURLConnection

How can I disable keep-alive when using NSURLConnection? Seems, that after cancelling and close it it still saves somewhere a socket that I was connected to server with and while the server fetches for information i cannot access another urls from the same server. I wonder if there is a way to completely reset a socket and start another ...

How to use iPhone OS 3.2 functionality in an iPhone OS 3.0 app?

Problem: My app must run on iPhone OS 3.0. However, there are some features of iPhone OS 3.2 which I really want to use. Just as a little add-on for free. But I don't want to cut off my user base by doing this. Imagine you're an iPhone OS 3.0 thing, and someone gives you a book to read. It has iPhone OS 3.2 instructions. You never lear...

How to draw shadows that don't suck?

A CAShapeLayer uses a CGPathRef to draw it's stuff. So I have a star path, and I want a smooth drop shadow with a radius of about 15 units. Probably there is some nice functionality in some new iPhone OS versions, but I need to do it myself for a old aged version of 3.0 (which most people still use). I tried to do some REALLY nasty stuf...

iPhone UIImage number recognition

Hi All, I have a small UIImage (jpg) with a single typed number. I want to be able to read the number with some kind of pattern recognition. I'm really not sure where to start, so any help would be appreciated. my initial idea was to compare this image with other images. For instance compare the image with that of a 1,2,3, etc until a ...

Memory efficient collection class

I'm building an array of dictionaries (called keys) in my iphone application to hold the section names and row counts for a tableview. the code looks like this: [self.results removeAllObjects]; [self.keys removeAllObjects]; NSUInteger i,j = 0; NSString *key = [NSString string]; NSString *prevKey = [NSString string]; if ([self.allResu...

Changing email of a contact in address book

Hey guys, I want to change the email of a contact in address book. my code is as follow. but somehow it doesnt work. do you know why? - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { CFErrorRef anError = NULL; ABMultiV...

Is there a faster way to draw text?

Shark complains about a big performance hit with this line, which takes like 80% of CPU time. I have a counter that is updated very frequently and performance seriously sucks. It's an custom UILabel subclass with -drawRect: implemented. Every time the counter value changes, this is used to draw the new text: [self.text drawInRect:textR...

Accessing UISCrollView's contenSize when it's the XIB's main view

I have a XIB where I replaced the UIView with a UIScrollView. I made sure the outlet to File's Owner:view was linked to the new UIScrollView. I'm trying to add a UIImageView to the UIScrollView programatically now. That's not a problem, but then I'd like to change the contentSize of self.view to match the new UIImageView. I've tried (...

How to tell a UITableView to preload all Rows?

Is there a way to tell a UITableView to preload all rows? The tableView is supposed to show several comments (up to 80 comments). So my CommentCell uses a Setter to adapt the cell to a specific comment. -(void)setComment:(Comment *)newComment { if (newComment != comment) { [comment release]; comment = [newComment retain]...

An offscreen MKMapView behaves differently in 3.2, 4.0

In 3.1 I've been using an "offscreen" MKMapView to create map images that I can rotate, crop and so forth before presenting them the user. In 3.2 and 4.0 this technique no longer works quite right. Here's some code that illustrates the problem, followed by my theory. // create map view _mapView = [[MKMapView alloc] initWithF...

Problem in type casting in NSDate to NSString?

Hi, I developing an application, in which i found a ridiculous problem in type casting, I am not able to type cast NSDate to NSString. NSDate *selected =[datePicker date]; NSString *stringTypeCast = [[NSString alloc] initWithData:selected encoding:NSUTF8StringEncoding]; From ,above snippet datePi...

Webservices in iPhone

Hi, I have .net webservice working in computer machines, am i not sure whether i can use the same in iphones. Can i run the webservices webmethods that is developed for web-browsers in iphones? Thanks. ...

iphone “EXC_BAD_ACCESS” when doing sqlite3_open(":memory:", &memory_db)

Hi there! While developing for iphone i get “EXC_BAD_ACCESS” when doing sqlite3 *memory_db; if (sqlite3_open(":memory:", &memory_db) != SQLITE_OK) { sqlite3_close(memory_db); NSAssert(0, @"Failed to open in-memory database"); } also doing NSString * memory_db_filename = @":memory:"; if ...

Movement of UIButton which is in the UIScrollview becomes slow after pinching/zooming out

Dear All, Issue related to my app: a) I am able to move the individual points freely and smoothly if the image is not zoomed/pinched. b) Process of moving individual points is delayed if I try the same after zooming/pinching. I tried the following ways to resolve the issue but the issue is still opened: 1) Decreased number of points ...