iphone

How to get call back from server when it is sending data in In-app purchase?

hi i am implementing server based model in app purchase as mentioned in apple store kit programing guide i get purchased receipt from app store and send it to server. after how can i get data from server.. how to get call back from server to get data i am not getting this .... did any one explain this to me thanks in advance.... ...

Date from String using NSDateFormatter regardless 12h-24h setting

Hello everybody, Today my question is about date formats and strings. My application downloads some strings representing dates from the internet. The date format is always like this: "2010-05-24 at 20:45" I need to convert this string into an NSDate object in order to perform some date manipulations. I tried this code: NSString * dateSt...

How to hide UIStatusBar and show UINavigationBar at the top when UIView changes to LandscapeOrientation

I am using two views (portraitView and landscapeView) loaded from xib in a viewcontroller for different InterfaceOrientation each for Portrait and Landscape mode. The view in portrait mode has statusbar and navigationbar and other one has just the navigationbar. The problem is that even i made statusbar hidden programatically the view in...

How to search more than a keyword with UISearchBar

HI, I successfully perform a search within arrayTags with the following code, where arrayTags is the array of a field of each XML element, named "tag". The problem is that, let's say, tag has three words: red, white, blue. If I perform a search "red" or "white, blue", or whatever exactly included in a tag element, everything is OK. But ...

How to Call drawRect programmatically in objective c

How to Call drawRect programmatically in objective c ? I want to call drawrect method of a view in my UItabbarcontroller. How i can do this ? Thanks in advance.. Edit I have to call when the view is not visible currently. It will be the first time i have to call that view ...

UITableView like Contact App

Hi, I try to create an UITableView similar to the Standard Contact App, when selecting a contact (i.e. grouped style). But how do I get some controls at the top or at the bottom of the cells, which scroll with the rest? In the Contact App you have at the top the picture together with the name and at the bottom three buttons. Are these j...

iphone: repeating a transformation

Hi I'm trying to represent a view that rotates on the iphone screen. I have a button and when you press it, the view rotates 180 degrees. My problem is that this only works the first time. Here is the code: -(IBAction) flip:(id)sender{ CGAffineTransform transform; //the transform matrix to be used below //BEGIN ANIMATIONS ...

iPhone Web Application + zoom in zoom out issue

Hello, I am developing a web application for iPhone safari browser. There is one strange scenario: A web page is loaded. User can zoom out that web page to see the contents in zoomed out manner. There is one button in the web page. Click of this button will hide one of the 'div' in same page and another 'div' of that same page will b...

iPhone UIWebView: loadData does not work with certain types (Excel, MSWord, PPT, RTF)

My task is to display the supported document types on an iPhone with OS 3.x, such as .pdf, .rtf, .doc, .ppt, .png, .tiff etc. Now, I have stored these files only encrypted on disk. For security reasons, I want to avoid storing them unencrypted on disk. Hence, I prefer to use loadData:MIMEType:textEncodingName:baseURL: instead of loadRe...

Specific compiler flags for specific files in Xcode

I've been tasked to work on a project that has some confusing attributes. The project is of the nature that it won't compile for the iPhone Simulator And the iPhone Device with the same compile settings. I think it has to do with needing to be specifically compiled for x86 or arm6/7 depending on the target platform. So the project's bu...

NSInteger problem

How to use the NSInteger give example and simplecode ...

nsthread in iphone xcode

Good Day! i want to use nsthreads in a project of xcode that will call a function which is for the network access and will check that if the network is there or not, so i need to have a thread which will execute after lets say 1 minutes to check the connectivity. and will continue run unless the app is closed. [NSThread detachNewThread...

another question about OpenGL ES rendering to texture

Hello, pros and gurus! Here is another question about rendering to texture. The whole stuff is all about saving texture between passing image into different filters. Maybe all iPhone developers knows about Apple's sample code with OpenGL processing where they used GL filters(functions), but pass into them the same source image. I need ...

retrieve Apple ID via Client script (ex: Javascript) or anykind of platform dependent unique ID of client

Title displays the question. I'm making a iphone webApp, and before contacting my server (call api) i need to know a few things: platform OS program version ..etc Wich i have. But i also need the Client's Apple ID before posting Any ideas? THANK YOU ...

Declaring CustomViewController?

I have noticed in some of my older apps that in situations where I have added a custom View Controller I have not changed the View Controller class in the application delegate. For example, below I have created a CustomViewController class but have declared viewController as UIViewController. @interface ApplicationAppDelegate: NSObject ...

Why does my plist file exist even when I've uninstalled an app and wiped the simulator?

I am trying to detect the existence of a plist file on application start. When my data class (descendant of NSObject) is initialized, it loads the plist file. Before it loads, it checks to see if the file exists, and if it doesn't, it sets the data = nil instead of trying to process the array of data in the plist file. However, every ...

How can you push a new view with a grouped table?

Hi All, Ive been trying to push a new view when a cell is tapped but absolutely nothing happens. I figured grouped style pushed the same as plain. Here is my code: -(void)viewDidLoad { [super viewDidLoad]; contactArray = [[NSArray alloc] initWithObjects:@"iPhone",@"iPod",@"MacBook",@"MacBook Pro",nil]; shareArray = [[NSArray alloc]...

Where to #include?

In my past applications I have been #importing into my *.h files where needed. I have not really thought much about this before as I have not had any problems, but today I spotted something that got me to thinking that maybe I should be #import-ing into my .m files and using @class where needed in the headers (.h) Can anyone shine any li...

Why do they initialize pointers this way?

In almost all of the books I read and examples I go through I see pointers initialized this way. Say that I have a class variable NSString *myString that I want to initialize. I will almost always see that done this way: -(id)init { if (self = [super init]) { NSString *tempString = [[NSString alloc] init]; self.myS...

was unable to load a nib named "TwitterDrilldownView"

Hi, -[UIViewController _loadViewFromNibNamed:bundle:] was unable to load a nib named "TwitterDrilldownView" I get the above error when I push a new ViewController onto the navigation stack. This is the push code, [self.navigationController pushViewController:[[[TwitterDrilldownViewController alloc] initWithTwitterAnnotation:temp] aut...