iphone

Difference between @interface declaration and @property declaration

I'm new to C, new to objective C. For an iPhone subclass, Im declaring variables I want to be visible to all methods in a class into the @interface class definition eg @interface myclass : UIImageView { int aVar; } and then I declare it again as @property int aVar; And then later I @synthesize aVar; Can you help me understa...

iPhone--passing data between views in tabbar

I am writing an Tab-Based iPhone application (3.1.2). The purpose of this application is to gather and process data from the GPS, accelerometer, etc. from one view, and then, once data collection has finished, pass this data to another view in order to graph the values. What is the best way to pass this data? Would it make sense to us...

"Beveled" Shapes with cocos2d

I would like to draw 2d shapes like this in an iPhone app: I asked a similar question here to see if I could do it easily with Quartz, but didn't get a solution. So I got to thinking that I might be able to leverage an exsiting 2d library out there, and then I thought of cocos2d. The goal is to draw these kinds of beveled shapes dyna...

How can I add a UIDatePicker Subview with working user interaction

I have a view based application which has some textboxes that I'm trying to populate with some pickers. For example, one of them will be for date selection. I'm using the following to add a new view to the bottom of my current view, then scroll the entire view upwards: - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { if(...

How can I populate a UIViewController after it's loaded?

I'd like my UIViewController to appear on the screen with a "Loading..." UILabel in the center and then, once that's been displayed, start loading data to display. How can I achieve this? I tried loading it in viewDidAppear:, but at this point the view has still not been displayed on the screen, so the app appears unresponsive to users...

UITabBar + UINavigationBar conflict title

Hi, I have a UITabBar and a UINavigationBar created in IB, when I launch my application everytime I navigate the UINavigation title change because I'm using self.title = @"NAME"; my problem is that the UITabBarItem will change with the same name at the same time. I want to put a static name only for the UITabBarItem, how to do it i...

How to get the time and date details from pasteboard

when i copy the content in iphone the content is available in the pastebpard ,how do i get the time and date from the pasteboard ...

is it possible to authenticate with oauth, on the iphone, without making the user enter a pin?

there is no practical way that i can see or have read about that lets you authenticate using oauth without making the user leave the app or have to write the pin down before they can post an update..... is there maybe another Rest API that i missed? ...

Mimic UIAlertView Bounce?

Whats the best way to mimic the bouncing animation from the AlertBox (UIAlertView) on the iPhone? Is there some built-in mechanism for this? The UIAlertView itself won't work for my needs. I looked into animation curves but from what I can tell the only ones they provide are easeIn, easeOut, and linear. ...

C++ compilation for iPhone (STL issue?)

Hello, I am trying to compile some C++ code as a static library to use on the iPhone. If I compile things for the simulator (i386 architecture), everything compiles just peachy, but when I switch the architecture to arm, I get all these include errors, seemingly within the iPhone SDK STL headers. Any idea what's going on? First of the e...

howto remove error the service is invalide please check your setup and try

I have been working away and things are going well, except suddenly when I try to build my project, I get the following errors in Xcode: 1 - in an alert box on upon building: The service is invalid Please check your setup and try again. (0xE8000022). ...

MPMovie player how to get the amount of time played??

I was trying to go through the iPhone's sample code for mediaplayer. I want to be able to capture the amount of time the media player has played the video. The duration at which the media player has stopped. Is there a method or property that will tell me the duration of play of the media?? ...

Question regarding iPhone core data and how to duplicate features for multiple users...that doesn't make sense, just read my question :)

So I am working on a simple iPhone app, that uses core data to manage objects. My code is similar in function to Apple's CoreDataBooks app, found here. There is a blank UITableViewCell, and you have the ability to add objects to this blank list. If you hit the add button, a DetailViewController pops up that manages the attribute of each ...

Error : The service is invalid

Hi everybody, I am having some problem in installing my app on the iphone as I am constantly getting the following error message The service is invalid Please check your setup and try again (0XE8000022) It was running perfectly well till yesterday but since yesterday I am having this problem. Can anyone help me with this... Thanx...

how to show a disclosure indicator button in table view editing mode

How to show a disclosure indicator button in table view editing mode . Thanks ...

PHP + MySQL iPhone MMORPG

Is it possible to make a mmorpg for the iPhone using PHP and MySQL(1,000+ players)? I was thinking of using MySQL to store all of the player information (name,username,pass,location,position). Then I would make that data accessible through php(pass a location to the php page and it returns all the player info for that area). Would PHP an...

sin inverse in Iphone SDK?

hi,i wanted to calculate sin inverse ..so i did like float radians = asinf(1.1205); NSLog(@"%f",radians); output is like nano....any help? ...

how to use counter in objective c??

Sir, I'm making a pedometer application using the accelerometer feature of the iPhone. I just want to detect the steps while walking using some counter. Should I use a loop to get the updated X,Y,Z coordinates? Kindly suggest. ...

How to decide parameters of the property of an instance variable in iPhone os

Hi.. I am noob in iPhone development..I have a query hope I you people will solve.. In every interface file(*.h file) we declare a property for every instance variable like this... #import <UIKit/UIKit.h> @interface Fruit : NSObject { NSString *name; NSString *description; } @property(nonatomic, copy) NSString *name; @property(...

Accessing an object class member without self.var in a UIViewController

I have a view outlet in my view controller. It's defined like this: IBOutlet MyView * view; The MyView class has some instance methods in it. I try to use them in the view controller like this: int x = [view someMethod:4]; Xcode doesn't show any warning, no runtime errors are produced, but it doesn't call the method at all. When I ...