iphone

Programmatically pressing a UITabBar button in Xcode

Sorry for the newbie question. I have a UITabBar in my main window view as well as an array of UINavigationControllers for each Tab. The structure is similar to the iPod app in that the main views can be seen by selecting TabBar items and then the user can drill down further with the NavigationController by pushing views to the stack. ...

What's the fastest way to save data and read it next time in a IPhone App ?

I have the following problem: In my dictionary IPhone app I need to save an array of strings which actually contains about 125.000 distinct words; this transforms in aprox. 3.2Mb of data. The first time I run the app I get this data from an SQLite db. As it takes ages for this query to run, I need to save the data somehow, to read it fa...

How to archive and unarchive images in iphone

I am coding an iphone application where images are transferred from one iphone to another using bluetooth. can anyone tell me how to archive an image and send it to another iphone Then unarchive the image back . Archiving the image directly using NSKeyedarchiver doesnt work. Can anyone post sample code ...

How can I initialize a date to NSdate?

Hi, I want to give, for example, 12/11/2005 in the format of mm/dd/yyyy. Can I initialize 12/11/2005 to NSDate directly? Any help? it gives a warning and crashes when I declare it as NSDate *then = [NSDate dateWithNaturalLanguageString:02/11/2009 locale:nil]; ...

combining flipsideview and navigationview

when i am trying to combine flipsideview and navigation view i am getting following error "request for member 'delegate' is something not in a structure or union" on the line controller.delegate = self; ...

Bulk update & occasional insert (coredata) - Too slow

Update: Currently looking into NSSET's minusSet links: http://stackoverflow.com/questions/1475636/comparing-two-arrays Hi guys, Could benefit from your wisdom here.. I'm using Coredata in my app, on first launch I download a data file and insert over 500 objects (each with 60 attributes) - fast, no problem. Each subsequent launch I d...

UIPicker didSelectRow Strange Behavior

I have a 3 component dependent picker and I had it working fine until I noticed a strange behavior. If I spin component 1 and then click down with mounse on Conmponent 2, then wait for Component 1 to stop spinning then let the mouse button up, all without moving the mouse or picker wheel at all... didSelectRow does not get called at all...

[iphone DEV] makes pointer from integer without a cast

Hello, i have a simply warning in my iphone dev code. NSUInteger *startIndex = 20; This code work, but i have a warning : warning: passing argument 1 of 'setStartIndex:' makes pointer from integer without a cast Thanks for your help. ...

uiview flip from top

how to flip a uiview from top/bottom using uiviewanimation ? Does anyone have any ideas how this can be accomplished? ...

significance of 'z'?

hello, i started out learning cocos2d and came across these lines of code: -(id)init { self=[super init]; if(self!=nil) { Sprite *bg = [Sprite spriteWithFile:@"menu.png"]; [bg setPosition:ccp(240,160)]; [self addChild:bg z:0]; [self addChild:[MenuLayer node] z:1]; } return self; } I ran the same lines of code with the followin...

Objective C - Sorting by property

Hi, Is there anyway I can sort a NSMutableArray that contains UIImageView by the UIImageView's frame.origin.y value? Trying to do the sort before adding the view to make sure the stacking order is correct. Thank you, Tee ...

uiview Transition problem

i have a UIview holding two other UIviews. that two subviews having 15 buttons and images. i have to translate the parent view. but the translation is not smooth in 3g phone. im using UIviewanimation and CGAffineTransformTranslate for translating the view. please help me for making it more smoother. ...

how can i refresh Particular UITabeviewCell through NSTimer?

how can i refresh Particular UITabeviewCell through NSTimer? is it possible? any help pls? ...

how do I round numbers with NSNumberFormatter

I've got a calculation for example 57 / 30 so the solution will be 1,766666667.. How do i first of all get the 1,766666667 i only get 1 or 1.00 and then how do i round the solution (to be 2)? thanks a lot! ...

iPhone textfields/keyboard - how to disable second textfield until first one has been completed

Hi, I have a login screen with two textfields (username and password). When the user clicks on either textfield, the keyboard appears and everything is fine. However, if the user clicks on the other textfield before clicking Done (on the keyboard) for the first textfield, the text for the username isn't saved. The only way to save the o...

Are Database operations thread safe?

Hi, I am using sqlite in my iPhone app. I have some database operations, in which I have to insert into two tables different data(means there is no data-dependency). Can I perform these two operations in seperate thread. While the insert operation in each table are more than one. So I am doing this in a while loop also. ...

how to hide selection on UITable?

Hi, i want to disable click on particular Cell.it means, i want not to show highlight color(selection indication) when we touch on particular cell? any help please? ...

how to convert NSInteger to NSString datatype?

Hi, how to convert NSInteger to NSString datatype? i tried.. month is NSInteger.... NSString *inStr = [NSString stringWithFormat:@"%d", [month intValue]]; any help please? ...

Making large toolbars like the iPod app

I am trying to create a toolbar programatically (rather than via IB) very similar to the toolbar featured in the iPhone app. Currently I've been experimenting with the UIToolbar class, but I'm not sure how (and if?) you can make the toolbar buttons centrally aligned and large like that in the iPod app. Additionally, regardless of size,...

iPhone drill-down menus are resetting when current tab is touched

I'm building an iPhone app with a tab bar. The second and third tabs each contain an identical set of drill-down menus, implemented as a stack of (a subclass of) UITableViewControllers. Almost everything works fine, except this: when I drill down through the menus on the second or third tab, and then touch the SAME tab again, that set ...