iphone

Problems using glDrawTexfOES to render background image with foreground objects

I have a simple iPhone OpenGL ES app, in which I render a full-screen background image using a texture, and then draw 3D polyhedra on top of it using lines. The texture is displayed using glDrawTexfOES. The problem is that I don't seem able to display the polyhedra on top of the background. In the glDrawTexfOES call, if I use a z value ...

iPhone app submission without a website

I'm just about ready to submit my iPhone app to iTunes Connect, but they require a company website. I don't have a website, and I can't afford a domain registration and hosting. Is there a way to submit an application without a website URL? ...

Why does full-screen iPhone background texture need y-offset of 32 points?

I'm using a full-screen background texture. It's stored in a 512x512 PNG file. When rendering it to the screen using glDrawTexfOES, for some reason I need to add a 32 point y-offset in order to make it align with the screen. Why? glBindTexture(GL_TEXTURE_2D, backgroundTexture); int backgroundRectangle[] = { 0, 480, 320, -480 }; // Handl...

iphone scroll to top when press the time

Hi I have 2 UIScrollViews, 1 which scrolls vertically. Inside is a UIScrollView which scrolls horizontally with a long image. Befor placing the horizontal scroller inside the original UIScrollView I could press the time at the top and it would scroll to the top, where now it doesnt. I tried using this code [mainScrollView setScrollsTo...

cinema App in Iphone

Hi !! M very new to this field of iphone development.I need to make one app in which customer will be Purchasing ticket for movie by selecting the Location,Movie,Timing of show and seat. Can anyone help me out in implementing Ticket Purchasing Part. Thanks ...

NSKeyedArchiver archiveRootObject for an object inside an object doesn't work!

I have a Level class, witch contains another Class LevelPoints for some attributes, how can I archive the instance of Level by using [projectDictionary setObject:level forKey:@"testlevel"]; [NSKeyedArchiver archiveRootObject:projectDictionary toFile:@"somewhere"]; I can not get the _levelPoints variable with values out of the [NSKeye...

How to get ISOCurrencyCode from a ISOCountryCode in iphone sdk?

I have the ISOCountryCode avaliable and now i want to derive the currencyCode of this country from the ISOCountryCode. How can i achieve that? NSString *countryCode = < get from someother view>; NSString *currencyCode = ?; I receive this country code from some other view on runtime? ...

mkmapview zoom to bounds with multiple markers

I'm working with MKMapView and have plotted several points on the map. I have used the MKCoordinateRegion and MKCoordinateSpan to enable zooming etc around one of the points - but that's not what I want... I'm trying to use something similar to the Javascript zoom to bounds function. so all my points should be visible to the user. (Ther...

Making hybrid iPhone application work in offline mode.

I am building a hybrid iPhone application (Objective-C and html/javascript/css/jQuery through UIWebview) and there is part of the application that need to be able to run in offline mode (just simple browsing data, not updating) and is implemented in html/css. We stored html, css and javascript locally but use JSON service to retrieve dat...

Alternatives to NSHost in iPhone app

I'm currently using this code NSHost *host = [NSHost hostWithAddress:hostname]; if (host == nil) { host = [NSHost hostWithName:hostname]; if (host == nil) { [self setMessage:@"Invalid IP address or hostname:"]; return; } } to retrive my IP Address for a networking app I'm working on, however I'm aware t...

Memory leaks in NSMutableDictionary

My coding contains a memory leak, and somehow I can't find the leak. Leaks points me in the direction of the way I create "ReportDetailItems" e.g. areaContainer = [[[ReportDetailItem alloc] init] autorelease]; I've been looking at this for hours and I am at a total loss, the objects reported leaking are "ReportDetailItem", and the NSM...

How to get a glow effect in Quartz for the iphone ???

I am searching for a glow effect in quartz 2d for the iphone. I tried making lines with different alpha values to simulate glow but it didn't work... Can anyone help me with that ?? p.s. I'm making an app where the user can draw with glow. I have the basic lines, but no glow :( ...

NSString memory leak ?

Hi there, I'm turning around and around with the following code giving me a memroy leak in the pics object apparently linke to the object imageName. for (int i = 0;i<[potatoesIndexesArray count];i++){ int imageNumber = [[potatoesIndexesArray objectAtIndex:i]intValue]; NSString *imageName = [[NSString alloc] initWithFormat:@"...

change the dot color of date selection in kal app based on my value

hi friends, I am new to iphone calendar programming. I using Kal calendar app in my application. Is it possible to change the dot color of date selection in kal app based on my value. Thanks in advance for your suggestion. Regards, sathish ...

Using applicationwillenterforeground for a passcode screen

Before iOS4, my app's initial view controller would check a passcode on/off settings variable in viewWillAppear and if set on, present a modal passcode screen that would stay there until the correct passcode was entered or the Home button was pressed. With iOS4, if my app has been in the background, I would like the user to feel comfort...

Launching my app causes iPod music to stop

Hi, I'm compiling using iOS4. When I launch my application that uses UIImagePickerController and iAds the iPod music halts and doesn't continue in the background? Any settings I have to add to my app? Thanks ...

Is there a book for Objective-C like "Effective C++" for C++?

In C++ community, "Effective C++" is very famous for its concise, in-depth and practical style. For Objective-C, most of the books in the market is primer introduction to the language. Is there a book for Objective-C like "Effective C++" for C++? BTW, I found this document is very valuable for a programmer from C++ to Objective-C: http:...

"Best" way to structure long views on iPhone

Hi all, I'm working on an iPhone app that (among other things) has a detail view for records with lots of attributes and lots of related records. Rather than having one really long scroll view or table view, I am thinking it might be easiest to break the detail view into several separate views (some UIViews, some UITableViews, etc) tha...

Updating iPhone application from 3.0 to iOS4

Hi, I was just wondering if anyone knows of any articles relating to upgrading an iPhone application from 3.0 to iOS4. (Thanks for this iWasRobbed). While the application still runs on iOS4, it will not run on the iPhone 4, but does on my iPhone 3G. When I deploy the app on the iPhone 4, the Default screen loads and it will sit there ...

iphone - how can I get a leak with this alertView?

this is on the main code: NSString * title = NSLocalizedString(@"myTitle", @""); NSString * cancelTitle = NSLocalizedString(@"dismiss", @""); NSString * otherTitle = NSLocalizedString(@"noMoreTips", @""); NSString * message = NSLocalizedString(@"myMessage", @""); [self ShowAlertBox: title : message : cancelTitle : otherTitle]; This i...