iphone

Bind Boolean value in Sqlite

Hello, Anyone have idea about how to bind Boolean in sqlite with objective - c. i know how to bind int and string but i don't know about boolean value. sqlite3_bind_int(addStmt, 1, id); sqlite3_bind_text(addStmt,3 ,[message UTF8String], -1, SQLITE_TRANSIENT); but how can i bind boolean value. Please help me. Thanks you ...

What is a Context in iPhone?

Can any body explain me what is a Context and how can i use it? There is also Graphics Context (CGContextRef).Is there any relation between Context and Graphics Context? ...

Download big mp3 file and pause/resume functionality in iphone applcation

Hello, I need to download one big mp3 file and i need to pause and resume it when i quit the application and relaunch the application. I tried to do using NSURLConnection but it is not working and i did not get using NSURLConnection. I know its possible because Download Manager application doing same thing which i want to do. Can an...

Browsing files within iphone application

Hello, I have problem to browse different types of file. I know browse music file and Photo from iPhone but i want to browse all typs of file doc,zip,ppt,xls,pdf files within a application. like music and photo library. Is there any way to browse all types of files? Thanks you, ...

Animate multiple UIView in a cicle

Hi all, i'm creating a card game on iphone. My problem is that i want to animate the cards at the beginning of the game making the cards animate from a point to another point in a deck. I move my cards that are UIView, in afor cicle. this is what i do With this code, alla tha cards move together, i need to move the cards separately o...

Simple string pattern matching

What's the easiest way of doing simple pattern matching a la .something.com something.com/ something.com/somefolder/*.jpg in the iPhone SDK? At this point it looks like I'm going to have to use a regular expression library of some sort, which is really overkill when all I need is simple wildcard matching. None of the standard NSString me...

crash happens when NSMutableArray is returned?

Hi, I have coded like that(that function will be called again and again), but the returned object gives "BAD ACCESS", the NSLog prints correct string, but toReturn sometimes(i called again and again) gives crashes..any help to alter this code,If i remove the "autorelease" method,it worsks fine - (NSMutableArray *)getAll:(NSString *)typ...

code sign error : doesnt match key pair in default keychain

*Code Sign error: The identity 'iPhone Developer: XXXXXXXXXX' doesn't match any valid certificate/private key pair in the default keychain.* i am a member in developer profile... i am having theprovisioning profile... what must be the problem sir? Code Sign error: The identity 'iPhone Developer: XXXXXXXXXXXX' doesn't match any valid c...

Writing photos (and other things) to disk and getting them later in iphone

I'm trying to write an image to disk: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsPath = [paths objectAtIndex:0]; NSString* savePath = [documentsPath stringByAppendingPathComponent:@"photo"]; BOOL result = [data writeToFile:savePath atomically:YES];...

Dashcode development for iPhone resources

I've been developing web applications and iPhone applications for years. Now I want to create a web application oriented to the iPhone browser. I willing to use Dashcode, since it seams to have tons of cool features that make my web app look like an native iPhone app. The problem I face is twofold: On one side I don't know it Dashcode...

Is there any reason why we don't use subclasses of UIImageView ?

Hey everyone, I'm currently trying to create a subclass of UIImageView in order to make it download its image from server asynchronously ;) I tried to do it by myself but I haven't gone very far yet :D Anyway, I looked around here and found this : AsyncImageDownload I had a look at the code and the first which springs to mind is : ...

uiimage oncomplete iphone

Is there such a thing as an "on load complete" for images in iphone? I want to be able to destroy a UIActivity indicator once and image is loaded. What the general best practice for doing this? ...

Saving data so it can be loaded locally

hi guys, i'm working on iphone application which needs to run offline at an exhibition. It should present data, stored local because there is no internet at the booth. Still, to easily have content updates it should be able to update it's content once connected to internet. It's quite some data ( around 300 full lines of text ) and I...

IMEI number using iphone code

how can i get IMEI code from iphone simulator? ...

question related to UINavigation

(void)setHidesBackButton:(BOOL)hidesBackButton animated:(BOOL)animated can any 1 tell me the meaning of above statement with example????????????? ...

Is that possible using "setAutoresizingMask" to make the view autoresizing after hiding/showing navigation bar?

I am doing this with the following: [[self navigationController] setNavigationBarHidden:YES animated:YES]; and also I didn't use IB to create view objects. But my view did not auto-resize after hiding navigation bar(there was a blank area where the navigation bar used to be) I am wondering if I could make it auto-resize only by "set...

iPhone: Howto get notified when an UIView becomes visible

Is there a way to get a notification, a callback or some other means to call a method whenever a UIView becomes visible for the user, i.e. when a UIScrollview is the superview of some UIViews, and the ViewController of such a UIView shall get notified when its view is now visible to the user? I am aware of the possible, but not so elega...

NSURL doesn't work any time

Hello community, i have the following problem sometimes my openURL-Dialog works perfectly, then i looked at the variable from the url and that is the variable: www.brehm-gmbh.de but some other times there are some crazy elements at the end of the variable like this: www.adamczyk-fenster.de%E2%80%8E i get this pages from an .asc fi...

When saving something to disk with NSKeyedArchiver, where is that stored on the iPhone?

Example: If I used this, where does the iPhone store the file? if (![NSKeyedArchiver archiveRootObject:your_object toFile:@"filename.plist"]) // save failed. On my mac the filename.plist goes to Macintosh HD directly. No folder. Also, the NSKeyedArchiver doesn't seem to ask for a path, just for a file name. Strange or not? And how...

UIButton Transition Curl Up problem

Hello again SO peeps! Basically, I am trying to UIViewAnimationTransitionCurlUp a UIButton. The animation works perfectly but the button stays there. i.e. The button curls up, but there is another instance of the button still underneath. My code as follows: [UIButton beginAnimations:nil context:nil]; [UIButton setAnimationDuration:0...