iphone

IPhone - Which View Controller methods to use

I'm trying to figure out what logic should go into the different UIViewController methods like viewDidLoad, viewDidAppear, viewWillAppear, ... The structure of my app is that I have a root view controller that doesn't really have a view of its own, rather it has a tab view controller and loads other view controllers into it. But in the...

How can I show a tabbar when pushing a UIViewController onto the Navigation stack

So it is very easy to hide the tabbar when you push a view controller onto the navigation controller stack: uiViewController.hidesBottomBarWhenPushed = YES; works just peachy. Put let's say I want to push deeper into the stack and show it again? Setting laterUIViewController.hidesBottomBarWhenPushed = NO; on some later view con...

Any way to get a Cached UIImage from my 'Documents' directory?

I know that the -imageNamed: method returns a Cached UIImage, but the problem is that my image file is stored in 'Documents', and the -imageNamed: method seems to only search the Bundle... I am currently (reluctantly) using -imageWithContentsOfFile: to get my image from 'Documents' but it is not the same...Scaling up/down a UIImageView c...

NSThread, NSTimer and AutoreleasePools in an iPhone SDK application

Hello every one, I want to create an appilication in iPhone in which I want to use NSThread. I have created one thread using [NSThread detachNewThreadSelector:@selector(doThread:) toTarget:self withObject:nil]; I want that my one thread will handle all the touches and other user interaction and the second thre...

can we play ipod music through MobileMusicPlayer

hi can anyone tell me how to play songs through this third party MobileMusicPlaye??how to use this if yes?????? my requirement is playing song as well as i have to record the voice simultaneously.first i go throuh with ipod music player or application player .the player goes in pause state if i start recording..i have set the audio sessi...

Iphone VPN security

When developing an application, there might come a time where I would want to establish a secure connection like a vpn with a client. An iphone is the topic here. Once the user has established this, is all IP traffic routed when I suggest it do so? I'm curious about some open port or inspection of vpn traffic. Is there any method availa...

Table crashes when sorting the data multiple times

I have a tableview with a navigationBar with a segmentedControl on the top of the view. I have set up the segmentedControl with buttons that sort the table by either "FirstName" or "LastName". It works perfectly the first 2-4 of times you press the sorting buttons, but then the app crashes. The debugger and console seem to be of no hel...

Iphone Invisible Keyboard

Hi, I'm working on an app right now that was working fine until I started implementing some threading for background loading of images. Now theres no crashes but the keyboard does not display. That is to say its invisible (I can still type, I just cant see the actual keyboard). The only thing I've done was implement threading so I'm won...

PNG image sequence playing problem

Hi, Ok, I have a button that, when pressed, should animate/play a png image sequence. My problem is - I press the button (button A) and the image sequence plays - which is good! but then I press (button A) again and nothing happens. - bad. but then... if I press (button A) a third time - the image sequence plays. So basically, the ...

Passing NSInteger variable to NSMutableDictionary or NSMutableArray

Why does this not work: NSInteger temp = 20; [userSettingsFromFile setObject:temp forKey:@"aTemp"]; but this does: [userSettingsFromFile setObject:@"someObject" forKey:@"aTemp"]; How can I use the NSInteger variable? ...

How to know when a UITableView animation is completed?

I want to do a series of things in reaction to the end of certain UITableView animations. For example, I want the table view cell to highlight (via selectRowAtIndexPath) after it has been scrolled to via scrollToRowAtIndexPath. How can this be done? ...

Barcode reading using picture taken using mobile phone camera

How do we do programmatic reading of a barcode that is captured using a mobile phone camera? For example, how do that using iPhone or Android or Java ME? Do we need separate hardware to read bar code or can we do image manipulation? ...

How to provide something like nil to this parameter?

I have a parameter like this: rightOperand:(const NSDecimal*)rightOperand how could I provide a value that represents "nothing" or "empty"? would that be void? i.e. [myObj rightOperand:void]; or something different? Or is that impossible for structs? ...

iPhone: sectioned UITableView rendering glitch with insertRowsAtIndexPaths

I hope you can help as I'm a bit stuck as to where to look for a solution for this UITableView problem I'm having: When I insert a new item at the top of a UITableView section using the following method (see code below) it all works beautifully apart from this glitch: The inserted row at the top of the section renders as expected - with...

iPhone UITextField - Change placeholder text color

I'd like to change the color of the placeholder text I set in my UITextField controls, to make it black. I'd prefer to do this without using normal text as the placeholder and having to override all the methods to imitate the behaviour of a placeholder. I believe if I override this method.. - (void)drawPlaceholderInRect:(CGRect)rect ...

Custom iPhone User Interface Component.

Can anyone list custom iPhone UI Components? I know about the Three20 components which are UI and framework. Does anyone know of other similar libraries of UI components for the iPhone. To be even more specific I am looking for a horizontal slider that you can flick and it will continue sliding. Currently Apple has those big wheels (...

list of object types for iphone sdk programming

Can anyone link to or list out the object types that the iphone sdk has built in? For the moment I'm just looking for the simple data types. I'm looking for variable types that are accepted in @interface definitions and also can be made into properties. For example: NSNumber is for integers, right? BOOL is for booleans. What are t...

Push Notification Device Token?

How to get Device Token from my iPhone Device? ...

How can I find out the type of a NSDictionary element?

How can I find out the type of a NSDictionary element? ...

How to create a custom locale with a custom NSDecimalSeparator value?

I'm having trouble with + (NSDecimalNumber *)decimalNumberWithString:(NSString *)numericString locale:(NSDictionary *)locale Because I want to provide very high precision values programmatically to have no floating-point errors initially, apple gives me the only option to rely on a wonky locale. So the documentation says pretty encr...