iphone

Take picture with iPhone API and transfer it to a server

Hi, I have written an cocoa application to take a picture on the iPhone. I need to transfer the images taken to somewhere besides the iPhone namely another server. Does anyone know how I can accomplish this? Thanks, Joe ...

Interface builder added one tab bar button, but not showing up.

I replaced one tab bar button in interface builder. It was "Recent" button, I changed it to "Contacts" button. Now the tab bar button not showing up, but I could click on that position, and action does work. The neighbor unchanged tab bars have no problem though. I could not find any place to set the visibility of Tab Bar button. Than...

Cocoa Touch table datasource problem

I'm having some trouble with displaying results from a datasource. This code will show a different (and correct) result in the console, but results in all kinds of random crap in the simulator. ("results" is an NSMutableArray property for the class.) -(void) handleSearchForKeywords: (NSString *) keywords { [results removeAllObjects...

How should I do multiple animations on the iPhone?

I'd like to animate multiple pieces for a game and i'd like to have those pieces move in different directions so my current method of animating an entire view will no longer work. I'm wondering what is the best practice for animating multiple items at once. (Note i'm rendering in 2d so i'm not currently interested in 3d soltuions.) Th...

How resize sub views along with super views

I want to resize super view in different orientations with subviews. I have an image view and I am adding different subviews in this image with layering. Please tell me how can I resize all parts of image on different orientation. ...

How do I create a dictionary-style scroll bar for iPhone (like in the Contacts list)?

I am creating an iPhone app which I would like to have a similar interface to the iPhone's native contact picker view, i.e. an alphabetical list which you can scroll through, with a search bar up top which narrows down the list. Particularly, I'd like to be able to show the letters of the alphabet down the side so that as you scroll thro...

How do I set a custom cell for non databound TableCells

I am happily able to set the styling of my tableviewcells using the cellForRowAtIndexPath delegate, but I want to set the background of all the nonpopulated cells which are still on the screen ...

iPhone WebApp cache

Hi, I've made a simple Web Application for the iPhone, it's just 6 pages each with an image on it and I use the Cube transition to switch between them, all static content. I need this to work on an iPod Touch offline, i.e. visit it once, disconnect from WiFi, and then be able to browse the static site. I'm trying to do this using the H...

iPhone Cocoa mixed Mode Math Basic Errors

Just realized that I am getting errors on simple math if I mixed Integer with floats in iPhone SDK on the Simulator. Two examples: float testVal1 = 10 + 5/10; //evaluates to 10 instead of 10.5 unless I use explicit 10.0f.. // Problem Code mixed float int NSUInteger jvalue = 2312345; NSInteger testVal2 = (jvalue - 2512345); // evalua...

What's the iPhones Screen Dimensions for Coding?

How many pixels is the available area for an image view in iPhone? ...

is it possible to create an app that offers an cam-function on iPhone, but still works on iPod touch without cam-function?

I want to make an app that can take a snapshot with the cam for a user photo, if the user has an iPhone. If he has an iPod touch, he may choose an standard avatar, but the app should still work on iPod touch. Is that possible? Or would apple not allow to differenciate programmatically between "yes, he has an iPhone" and "yes, he has an ...

iPhone: Where is the Starting Point in an View-Based Application?

I can't find it. Actually I look for the part where I could try this: [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; self.navigationController.view.bounds = CGRectMake(0,0,320,480); self.navigationController.navigationBar.hidden = YES; ...

UITabBarController Memory management problem inside UINavigationController

I have to use a UITabBarController inside UINavigationController. Everything seems to be right, but if i log the dealloc calls of the tabs some strange thing happens. If I don't touch eanything just the back button, all dealloc of each tabs are called. If I switch to any other tab and than I tap the back button the dealloc of the first ...

Is it possible to dynamically alter an iphone app's settings page in the settings app?

For my iPhone app I'm working on, i want to have the ability to dynamically add or remove sections to the settings area for my app. ideally I'd like to be able to alter the list of options in a multi-value specifier, and also to add new rows that drilldown into copies of one settings page. I haven't seen anything in the apple documenta...

iPhone - Multiple nib application IBOutlet is nil

Hi, I have a multiple nib application, and on my awakeFromNib: method, some IBOutlets are in nil. I think I have narrowed down the problem, but I'm not sure why. I have a MainWindow.xib file, that was created by XCode. In there, I have the application delegate, and several ViewControllers (one per each other nib I have). One of them, let...

Add cocos2d menu items at run-time

I am trying to add a variable amount of MenuItem objects to a Menu object on runtime. When my game starts I don't really know if my menu is having 2 or for example 5 items. for (MyItem* item in myItemCollection) { MenuItemImage* menuItem = [MenuItemImage itemFromNormalImage:@"MenuItem.png" selectedImage:@"MenuItemSelected.png" targ...

iPhone Application works on simulator & when exported to device, but not via cydia

What I want to do: Deploy an App to my phone using SCP without a dev license. What Is Happening: I can test on simulator and device and the Application works 100%. When I scp the app to the Applications folder on my phone, the icon shows, and the app opens for about a couple of seconds then closes (you don't see anything except a black...

Can you tell UIWebView to use a white indicator style?

I'm running into a case where I have in-application HTML documentation that uses a dark background, but the default scroll indicator for UIWebView is getting lost in that background. The following is an example of this: With UIScrollView, which UIWebView resembles in its behavior, you can set the indicatorStyle property to UIScrollVi...

Property list for storage in database?

Hello! I'm kind of stuck on this one.. I have multiple property lists and have plans to generate many more. Would like to store them in the database (sqlite) iPhone.. And when the time comes retrieve them.. I was thinking in using NSData and storing blobs, but I don't have a clue how to do this, how to retrieve them? how to convert pr...

Using Core Graphics/ Cocoa, can you draw to a bitmap context from a background thread?

I'm drawing offscreen to a CGContext created using CGBitmapContextCreate, then later generating a CGImage from it with CGBitmapContextCreateImage and drawing that onto my view in drawRect (I'm also drawing some other stuff on top of that - this is an exercise in isolating different levels of variability and complexity). This all works f...