iphone

Remove a toolbar when pushing a new view

In the iPhone maps app there's a toolbar at the bottom of the map view (it contains the Search/Directions segment control and others). When moving from the map view by clicking on a callout, the toolbar slides out with the map view, leaving the next view (a table controller) with no toolbar. I've tried to do the same thing with [self.n...

Is there a way to measure skin tone of an object from an iphone app

Hi - Im trying to find a way to programme/buy an app to use the iphone to detect someones skin tone against an objective scale using RGB froma phot they take of themselves. Anyone got any pointers? ...

animation in one direction

i like to animate my image "finga" not centered but from left or right: [UIView beginAnimations:nil context:nil]; [UIView setAnimationRepeatCount:1]; finga.transform = CGAffineTransformMakeScale(2,1.5); finga.animationDuration = 2; [UIView commitAnimations]; ...

atan2 doubt UIAcceleration

What is the difference between atan2(x, y) and atan2(y, x) in acceleration code (iphone)... Can you tell me briefly ? ...

3d / 2.5d game library for iphone and pc

I'm trying to make a 2d shooter game with 3d background. The player and enemies are essentially just quads with textures. The background will be simple 3d polygons with textures and some fog and light. Therefore, I don't need a really powerful 3d library. I tried Unity3D and Torque2D, but I don't like to use their GUI editors. I pref...

Speed up UI loading from NIBs on the iPhone

First up, i realize this application has some design issues and while rewriting a huge chunk of it would probably solve my issues, I'm looking for a way to make things faster right now. Basically I've got viewController = [[MyViewController alloc] initWithNibName:nil bundle:nil]; viewController.view; where MyViewController.xib is a ...

Failed to move file error in ASIHTTPRequest

i am using ASIHTTPRequest for downloading file from server but its giving error Failed to move file from '/Users/admin/Library/Application Support/iPhone Simulator/3.1.3/Applications/8650FFE4-9C18-425C-9CEE-7392FD788E6D/Documents/temp/test.zip.download' to '/Users/admin/Library/Application Support/iPhone Simulator/3.1.3/Applications/86...

Circular Dependency of Navigation Control in iPhone

Hi everyone , In my view this is one of the strangest problem i have ever come across in iPhone app development. Let me explain the scenario , i have main screen 'A' on which i have a Button that directs me to another Screen say 'B'. Now on Screen 'B' i have a feature in which user can send a mail to his friend for promotion purpose e...

iPhone screen shot in landscape view

I'm running the app in landscape mode. What care do I have to take so that the screen shot taken is also in landscape mode. I'm using the following code in iphone app with tabbar at bottom and taking screen shot, but its always in portrait mode only. why? UIWindow *screenWindow = [[UIApplication sharedApplication] keyWindow]; UIGraphi...

UIView autoresize problem

Hey, I have a UIView with several subviews: one UIImageView and a couple of UIViews. When I change the frame property of the view, the imageView's size changes accordingly, but the rest of the subviews remain in their original size! I can't figure out what I'm doing wrong. Can anybody help? Thanks, ...

Is it possible to do programming using iPhone?

Is it possible to do programming using iPhone? Any idea? ...

Where to start openGL ES to create and rotate a cube in an iPhone?

Hello. I've done some apps on iPhone using Objevtive-C and Cocos2d, and I'd like to start learning 3D. My first goal is to make a very simple app that: - Displays a 3D cube in the center of the screen. - And move the camera around the cube I want something very simple: no texture, no background. Where should I start to be able to do th...

Release and pushViewController

Hi, I have a custom view controller that I push onto my navigation stack as follows: myViewController *myVC = [[myViewController alloc] init]; [myVC generate:myData]; [self.navigationController pushViewController:myVC animated:YES]; the code runs fine, but when checking for memory leaks I get a warning that myVC is never released. ad...

iPhones OS: how to programmatically differentiate iPad 3G from iPad Wi-Fi?

Is there any property or other mechanism in iPhone OS to check during runtime whether application is running on iPad 3G or iPad Wi-Fi? Seems like UIDevice class does not provide anything like that. My application is using internet access extensively and I would like to explicitly warn user that on 3G delays or additional costs can be ex...

in table view my cell value is blank for second row in objective-c

i am calling the data from xml in table view. after the the first row of data in tableview, my second row is empty in tableview, and from third row data is available. but my last data for row is missing from tableview, because of the second row. how can i fill that second row. this is my code: - (UITableViewCell *)tableView:(UITableView...

Using MFMailComposeViewController to send both HTML and Plain Text versions of email

How can I use MFMailComposeViewController to send both an HTML and fallback plain text version of an email? The API has a method for setting the message body as either/or, but not a way to specify both. I have seen other apps do it (such as Doodle Jump), so it must be possible. ...

Outline view from UITableView

Hi guys, I need to implement a 1 level outline view out of UITableView. The cells which have children in them will have a '+' symbol and if user taps on it, the cells below it should slide down and the children cells of current selected row should appear. The sliding of cells should be visible and if the user taps '-' button of the alre...

From Xcode 3.2.2 to Xcode 3.2.3

Hi Everyone! Yesterday I felt in big issue that happens with all my projects. After I installed new Xcode 3.2.3 (for iPhone OS 4), all my projects started to spit out the "referenced from:" errors. I noticed that in new Xcode all the iPhone SDK versions earlier than 3.2 removed. But I have a projects that built perfectly for iPhone SDK ...

Iphone: writing some methods in a seperate file to acess from everywhere

Hey, here is a quick question, i have my couple view controllers classes, and have some other classes. i've found my self creating some methods in all of their implementation files, which are doing the same. i would like to write some of my methods in a seperate file, and import this file into my view controllers. therefore, i will be ...

How to know tabbar tab was pressed?

I have a tabbar based app. In the app delegate, I've implemented: - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController{ if([viewController isKindOfClass:[TabBNavigationController class]]){ NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; [...