iphone

using specific fonts in iphone 4 but not before version 3.2

Hi, I am using the external fonts capability for my application. As external fonts are not supported in 3.1 version I would like to define the font name in relation with the IOS that is executing the program. I have defined MY_FONT_NAME variable in a Constants.h file like this: //#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2 ...

efficient sprite rendering opengl es 2.0

Hi there! I am working on ipad app that renders hundreds of sprites (2d images) each frame. I am using modified drawing method taken from sdk's opengl template but problem is, I got only 3fps and I am not even rendering everything I need. I tried simple optimization methods like using texture atlases, minimizing number of state change...

Get iTunes user mail ?

Hi, I would like to use the iTunes user mail account in order to synchronise some informations (with a server) accross different devices. This mail would be a convenient way to identify one user. I didn't find a way to access it, is it possible to get it ? How can I do that ? Thanks in advance for your answers. ...

Categories/Interfaces From Static Libs Not Autocompleting?

Thanks to this post and the now built-in static library template, I am able to put some of the pieces of my project elsewhere. Everything compiles with no warnings and runs fine. However, I used to get autocomplete for the categories in my import statement. This is no longer happening. How can I get autocomplete for categories in a stati...

iPhone In App purchase subscriptions pay for renew?

I'm developing an app in which the user could subscribe for a feature to use for a specified period. The subscription period gets verified on our own server and after this time the user needs to buy a new subscription. Now I am confused about the alert from Apple: After the "Do you want to buy one ..."-alert there comes another one with...

How to set label.text with NSString as soon as new view loaded, NSString value is set in class method

I want to set label on my new view (which I am loading on selection of table row) to variable NSString value, here is what I am doing - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { int selected_row = [indexPath row]; SingleTon *index_instance = [SingleTon sharedInsta...

NSTimer for UITableviewcell similar to World Clock app

I would like to build a few simple countdown timers in a UITableview. I noticed the World Clock app has animated clocks in each of it's rows. What is the best method to firing an NSTimer to update each table row? Can a single timer be run that updates all cells or should I have a custom view subclass with built in timer that is added to ...

Problem with UIButton on subview of a cell

Okay, a short breif of my app before i explain the problem. My app has two views for it's custom TableViewCell, one frontview, and one backview(which is revealed once you swipe your finger across the cell, much like the twitter-app). Anywho, i wanted to have some buttons on the backview. I did this in the cellForRowAtIndexPath-method T...

Return height between navBar and keyboard

Hi, I have got a tableViewController with one section and one cell. How can I get the height between the navBar and the keyboard without any toolbar above it? I tried this code: self.view.bounds.size.height but I get the height of the entire view down the navBar... I'd like to get this size to assign it to the cell and to the textView in...

packager for iphone XML

I am trying to build my iphone app from a swf in windows using pfi but i run into this error: C:\Users\tkazak\Adobe Flash Builder 4\iphoneTest\bin-debug\iphoneTest-app.xml(117): error 105: application.icon.image29x29 contains an invalid value C:\Users\tkazak\Adobe Flash Builder 4\iphoneTest\bin-debug\iphoneTest-app.xml(117): error 105:...

Converting sample iPhone Code to iPad

Hello - I am pretty much clueless when it comes to graphics so I am trying to make a simple drawing view in my iPad using this tutorial as reference: http://www.ipodtouchfans.com/forums/showthread.php?t=132024 The problem I am having is that the points that are drawn on the screen are a couple inches off from where the finger is actu...

iPhone custom urls and encryption

Hello stackoverflow, Quick question: Are the custom URL's passed between applications encrypted in iOS? I can't seem to find any documentation anywhere that can tell me yes or no. Thanks! ...

How can I find out if the iPhone user currently has a passcode set and encryption enabled?

I'm writing an iPhone application that requires its data to be encrypted. I've learned how to turn on encryption for files by setting the NSFileProtectionComplete attribute. I also know how to check the iPhone version to make sure they are running iOS 4.0 or better. What I've realized though, that if the user has not chosen a passcode a...

How do I add multiple components to a PickerView?

Hi, It may be a simple question but how do I add multiple components to a UIPickerView? I use NSMutableArray to populate one component but I dont know how to populate the others. I also need to change the value of a label when a row is selected. Thanks in advance Kieran ...

Why do people always use reassignment for instance variables in objective-C (namely iphone)?

I always see example code where in the viewDidLoad method, instead of saying, for example someInstanceVar = [[Classname alloc] init]; they always go Classname *tempVar = [[Classname alloc] init]; someInstanceVar = tempVar; [tempVar release]; Why is this? Isn't it the exact same thing, just longer? ...

Changing text of done button in keyboard

I know there is a question about this subject already but I think it's possible to change the text of the done button of a keyboard, because many of the apps I use are in french and the text of the done button is "accéder". But I don't know how to do this? ...

Setting the tintColor for 2 buttons in an iPhone app Nav-Bar

I've created a UINavigationBar in IB. But don't see any way to set the button colors... so I do this with code: for(id subView in navBar.subviews) if( [subView isKindOfClass:[UIButton class]] ) { UIBarButtonItem *b = (UIBarButtonItem *)subView; if( [b.title isEqualToString:@"Cancel"] ) [b setTintColor:[UICo...

How do I get the best result with images in UIButton and UITableViewCell for both iPhone and iPhone 4 retina?

Do I simply check for screen size and use twice the resolution for the iPhone 4, or do I need to tell the UIButton/UITableViewCell to render the image in high resolution? Thank you ...

Replace string within a array

NSArray *ArtistNames = [RawData componentsMatchedByRegex:regEx1]; NSCharacterSet *doNotWant = [NSCharacterSet characterSetWithCharactersInString:@"'"]; ArtistNames = [[ArtistNames componentsSeparatedByCharactersInSet: doNotWant] componentsJoinedByString: @"'"]; Thats my code at the moment basically i cannot use it as A...

How safe is it to upgrade to a beta iOS then downgrade again?

Apple responded to one of my bug reports suggesting I try to reproduce the issue in the beta version of the next iOS. As with all betas before, this one comes with a warning that iOS [version] beta should only be installed on devices dedicated exclusively for iOS [version] beta testing. Do not install this software if you do not have...