iphone

sort a date which is inside mutable array of dictionaries

Would it be possible for someone to make a tutorial on how to sort a date which is inside mutable array of dictionaries ? ...

2 UIAlertView one after the other

Hi, I have an 2 UIAlert which is displayed I press on a button. I want the 2nd alert to be visible only when the first UIAlert is dismissed that is when we have pressed the first OK button. How should I proceed please? Below is my code: - (IBAction)button:(id)sender { UIAlertView *view; view = [[UIAlertView alloc] initWithTitle: ...

Decode sha1 string to normal string

I am using following code to convert string to sha1 string but i am not able to find any solution for reverse of this i.e normal string from sha1 string. +(NSString *)stringToSha1:(NSString *)str{ const char *s = [str cStringUsingEncoding:NSASCIIStringEncoding]; NSData *keyData = [NSData dataWithBytes:s length:strlen(s)]; /...

Editing a view in the iPhone like in Contacts app

In Contacts application when you click on "Edit" button on the right side of the navbar, view will dynamically change it self in order to allow user edit various stuff. Besides other cool animated stuff that is going on, what I am really interested in though is the bottom "Delete Contact" button which appears when in edit mode and disap...

Mockup webservice for iPhone

Hello, I want to make an application for iPhone, as an introduction to programming in ObjC and Cocoa. I'm .net developer, so programming on Mac is a whole new world to discover for me :) My application will be talking with web service. I want to use iCuke as a testing framework, and I don't want to connect to that webservice every ti...

How to store custom objects with struct in Coredata

I have to store a custom class object to Coredata. The problem is my custom class contains structs,enum etc.I tried following method. -(void)encodeWithCoder:(NSCoder *)encoder . But am getting this error [NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs' What is the best practice to store this ...

NSFetchedResultsController delegate allocating too many UITableViewCells

I'm using an NSFetchedResultsController in a standard way to update a UITableView whenever something changes in the related core-data entities. I'm doing the same as described in the Apple documentation. The problem I have is when I make a mass insert of new core-data entities. This causes the NSFetchedResultsController delegate to al...

How to display NSMutableAttributedString within ScrollView on iPhone

I am developing an iPhone app and want to be able to use an NSMutableAttributedString inside a ScrollView. Here are the steps I want to follow: Grab a string from CoreData. Copy the string into an NSMutableAttributedString. Parse the string and modify the attributes of portions of the text. Display the NSMutableAttributedString inside...

is it legal to show google map with directions in iphone application in a UIWebView ??

is it legal to show google map with directions in iphone application in a UIWebView ?? i mean to say that can apple allow this ? can apple approve an application which shows google map with directions, inside UIWebView (Not with UIMapKit). ...

How do I use custom fonts when implementing in-application email?

I'm trying to implement in-application email, but I would like to compose email using a nonstandard font. How can I write an email in my iPhone app and change the font that the email is written in? I'm trying to achieve something like this: http://vimeo.com/7512018 ...

Change iBook Dictionary ?

Hi .. is there any way to change iBook dictionary ? any language instead of English ? ...

How to rotate the imageView in a UIButton, and NOT scale it.

I am endeavouring to rotate the imageView property of a UIBUtton without scaling it. The image in question is 24x18 - wider than it is tall - but once rotated into place the image is being scaled to keep those dimension - leaving me with a very squished image. How can I prevent this? Below is my code .. -(IBAction)rotateButton { NSLog...

Strange character from iPhone keyboard

Hey guys, I have an iPhone app with thousands of users. Stuff they type goes into my database. I noticed an infrequent crash recently, and tracked it down to a piece of code failing when it had to deal with this character "…" (that's one character, not three dots). Obviously I need to fix my code to deal with it, but in the meantime. D...

Secure online-game http get/post request (How to avoid repeated sending of the same http-req)

In my game/app (iPhone) the client side sends http requests (get or post) to the game http server. Requests have this form: gameserver.com/userId/givebonus/100 This for example would give the userId a bonus of 100. Now, we encrypt the server request and it will become something like: gameserver.com/42c34c234c234/ghjghjg4hj32g42jh2/42...

Howto get the Keyboard UIView on iPhone, iOS 3.2 or newer

Hello, I'm using a trick to overlay the keyboard with my own. Basically I add some buttons as Subviews to the Keyboard. This is how I find the UIView of the keyboard: UIWindow* tempWindow = [[[UIApplication sharedApplication] windows] objectAtIndex:1]; UIView* keyboard; for(UIView* potentialKeyboard in tempWindow.subviews) // if th...

Reinitializing iPhone app when it relaunches

I am building an iPhone app. Currently when I close the app and relaunch it, it relaunches on the last viewed view. Instead I want to be able to reinitialize the app, and present the view that's most appropriate for the application's state (based on what's in the database). How can I do that? ...

Highlight the tabbaritem with image

I have three TabBarItem in a TabBar . And each tabbar item has normal image. I want to highlight the TabBarItem image instead of the normal image. Can i achieve it? Thanks in advance ...

Is there any free open source chart library available for iphone/ipad ?

Is there any free open source chart library available for iphone/ipad ? ...

constricting scrolling in core-plot

Hi, I would like to have my user scroll inside a CPXYGraph. I have a CPXYGraph as part of a CPHostingLayer, like in the tutorials. I enabled allowsUserInteraction, which is cool and allows scrolling. But I don't want to allow my user to scroll to 'infinity', which it seems like it allows-you can keep dragging further and further away fro...

Iphone QTVR (QuickTime Virtual Reality) support

I'm planning to write iPhone app which have to be able to play QTVR (QuickTime Virtual Reality) movies (it'll be one of its core features). I know there are couple of apps capable of doing it, thus I'm wondering if there is any library available that supports playing such content? ...