iphone

Objective C - Remove last character from string

In Objective C for the iPhone, how would I remove the last character of a string using a button action. ...

Implementing GUI pop-ups on iPhone

Hello community, Is there any way to implement pop-ups similar to the system ones on iPhone? I'd like to see something similar to pop-ups used with Copy/Paste in 3.0 (screenshots) Thanks in advance! ...

How to make UI Image Picker Controller read a custom source type in iPhone

I have to create a photo gallery app in iPhone. It should function same as the Photos app which is shipped with iPhone. But it should show the images which I package with the app. UIImagePickerController reads only the following source types. UIImagePickerControllerSourceTypePhotoLibrary, UIImagePickerControllerSourceTypeCamera, ...

Calling Twitter API in X-Code Iphone Application

Hi , Is there any wrapper available for Twitter in X-Code? if not then do I have to call original Twitter API in my Iphone's application ? ...

iPhone UITableView "More" Cell? How to implement?

Having trouble figuring out how to add a new row into the bottom of a UITableView that says "Load More Results" in a different format than the rest of the UITableView's cells? This is how Mail.app works on the iPhone. Anybody done this? Is it super-obvious and I missed it? Any help is appreciated! ...

iPhone board game: OpenGL ES or CoreGraphics?

I want to program a board game (similar to checkers) for the iPhone. Would OpenGL ES or CoreGraphics be a better option? What do most games of this type on the App Store use? ...

Is it possible to write or change EXIF data of images saved to iPhone photo library

I would like to add some custom data to an image the user generates in my app, no more than 1kb tops. I could probably hide the data in the image, but I want to do this in a way that will resist resizing but not deliberate deletion of EXIF tags (say, for privacy reasons). Is this possible using the current public SDK 3.0? ...

Slow loading of UITableView. How know why?

I have a UITableView that show a long list of data. Use sections and follow the sugestion of http://stackoverflow.com/questions/695814/how-solve-slow-scrolling-in-uitableview . The flow is load a main UITableView & push a second selecting a row from there. However, with 3000 items take 11 seconds to show. I suspect first from the load ...

Building with CoreLocation framework, simulator and device

How can I add a reference the CoreLocation framework to my app and get it to compile for both the Simulator and a device without needing to delete and re-add the frame when switching platforms? I'm writing a multi player game. Sometimes I test by putting my app on a device and also in the simulator and debug in simulator side. But I...

iPhone - restore tab to original view

I have three tabs. When I press the tab button on the bottom, is it possible show the original view of the tab. Because when I change the view of tab1, go to tab2, then go back to tab1, I do not get the original tab1 view. The changes in tab1 remain. Is it possible to to reset tab1 view when I go back to it? ...

presentModalViewController crashes my app

It's one of the simplest things to do, I know. But I've been banging my head against this for days. I've done it plenty of times in the past, but for some reason trying to present a modal view controller just crashes the app to a black screen. Nothing reported in the console or anything. I'm hoping someone might have had this problem and...

iPhone socket program

I want to create an extremely simple iPhone program that will open a telnet session on a lan-connected device and send a sequence of keystrokes. Most of the code I've seen for sockets is overwhelming and vast overkill for what I want to do: open telnet socket to IP address send ascii keystrokes Any simple code examples out there I ca...

Iphone changing to another view [BEGINNER]

Hi I have a small doubt, I have 3 Nib Files: ConfigureContacts.xib CallContactsViewController.xib MainWindow.xib When Application starts I do: [window addSubview:callContactsViewController.view]; [window makeKeyAndVisible]; So that the CallContactsViewController.xib is loaded. Inside CallContactsViewController.xib there is a b...

Animation one image to the next

I am new to iphone app and pre-beginner of SDK programming. I have a flash file and need to reprogram for iphone. The design of the app is a navbar with start buttom and an image view below them. I have 46 PNL images that I want to show in succession after the start button is clicked. Each picture will stay on the screen for 5 seco...

iphone - adding the view of MFMailComposeViewController (in-app email)

I've spent the past two days just trying to enable the sending of email from within my app. Hoping one of the smart folks on here can help me out. presentModalViewController doesn't work for me (just crashes the app with no explanation as to why), so I'm forced to add the view of MFMailComposeViewController. Here's my attempt: MFMailCom...

NSMutableArray - replacing an item causes exception...help!

I am a newbie in Obj-C. I need to learn this better so please tell me what I am doing wrong.. I have an array of Images.... at various points of exec I need to replace the last element with one of the preceding images... so the last image always replicates one of the images before. When I do the replacement, it throws an exception! If ...

multiple setting of the image for UIImageView

Hi, Recently I've been trying to save on render time by minimizing the amount of time spent on allocation and duplication of resources as images by using an already allocated UIImageViews and UIImages. What I try to do is maintain a map of all UIImages - each one unique, and reassign each one to to several UIImageViews, by demand from ...

Where to put local variables

I have a view who's methods are called by the accelerometer updates in the view controller. I need more than one method to use and change certain variables, for example one method initializes the variable and another updates their value with each accel update. I know if they were only used on one method I could declare them inside that...

How to make iPhone app look right when user is on a phone call or Internet tethering?

The status bar has grown, so parts of my interface get cut off. Any pointers on how to fix this (e.g. using autoresize masks, etc.)? I use Interface Builder for the UI, so everything is .xib's. ...

Built-in preprocessor token to detect iPhone platform

Hi, Is there a single preprocessor token that can be used to detect any iPhone device or simulator at build time? I'm currently using: #ifdef __IPHONE_OS_VERSION_MIN_REQUIRED // This is an iPhone build #endif Is this the recommended approach or is there a better way? I'd prefer the macro to be built-in, i.e. defined by the compil...