iphone

Custom uitableview cell issue

I have a custom UITableViewCell as such: @implementation CellWithThreeSubtitles @synthesize title, subTitle1, subTitle2, subTitle3; - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { self.textLabel.backgroun...

Ipad landscape splash won't show

I'm trying to set a Landscape splash for my iPad app but it's not working. I currently have a Default-Landscape.png and a Default-Portrait.png. I added the four orientation in my plist file and still nothing. It works if I launch in portrait, but if I launch in Landscape the screen stay black until my app start. Is there anything els...

automate installation + running of iphone app in simulator outside of xcode

I'd like to install + run my app built outside of xcode (through xcodebuild) through a similar sort of command line tool. How could I get it on the simulator? I've looked at a few related posts: http://stackoverflow.com/questions/1108076/where-does-the-iphone-simulator-store-its-data http://stackoverflow.com/questions/692064/cleaning-...

When are iOS keychain items removed?

I could have sworn this worked differently in previous versions of iOS, but as of iOS 4.0 it looks like my app's keychain items are not removed when the app is removed. However, it looks like some are cleared when the app is upgraded without first removing? Can someone provide a clear explanation of when iOS keychain items are removed? ...

iPhone: Image mask with text/image running through mask

This question is hard to explain, so I will try my best. I know that you can create a mask by just building a .png with a transparent window, then put whatever I want inside that so it shows through. My question is, can I somehow mask an area? Say I have a background image with a second "mask" image over it. I want to marque some tex...

:active pseudo-class doesn't work in mobile safari

In Webkit on iPhone/iPad/iPod, specifying styling for an :active pseudo-class for an <a> tag doesn't trigger when you tap on the element. How can I get this to trigger? Example code: <style> a:active { background-color: red; } </style> <!-- snip --> <a href="#">Click me</a> ...

Delete Applications

IS it possible to delete app from main page of "Manage Your Applications"in itunesconnect ? ...

scrollview scroll delegation

Is there any delegate or some notification which tells that scroll view has been scrolled? ...

xCode Active Configuration: Release, Distribution

Hi, In xCode 3.2.3 (haven't updated to 4.1 yet) under Active Configurations I have: Debug, Release, Distribution. When I select Release, I always get 'Base SDK Missing' and when I do a 'Build and Archive' and try to 'Validate Application', I get a Code Sign Error. When I select 'Distribution' the 'Validate Application' succeeds. I ha...

WaveFront OBJ converted from LightWave taking forever to render on iPhone

I'm working on a project where I need to render a 3D human body on an iOS device. The 3D object was built in Adobe LightWave and is 7.4MB. I opened it in Blender and exported it as OBJ/MTL pair which are 5.5MB and 4KB, respectively. Using Jeff LaMarche's Wavefront Loader (linked below) as a starting point to figure out OpenGL ES and get ...

Getting video to play in simulator

So I have an alert view pop up in my application and on clicking a view button a video is supposed to play but nothing happens in the simulator. I don't want to test this on a device until I get it working in the simulator. This is the code below as far as I can tell it should work. It reaches the Log statement and outputs to the console...

iPhone NSMutableArray and NSKeyedUnarchiver unarchiveObjectWithFile release oddity

I archive an array (NSMutableArray) of custom objects that implement the . Once i load it froma file to a retaining property @property (nonatomic, retain) NSMutableArray *buddies; the release count of the object is 2 (correct, it's 1of autorelease + 1 of retain of the property) but then noone releases it and the retain count becames 1, ...

how to create a UIView with a UINavController and a UITableView

Hi all, I have an App and, when I press the 'i' button, to show the About App view, I need to have a view, with a background image, with a UINavigationController and a UITableView. How can I achieve that, with InterfaceBuilder, or progamatically? It's not done in AppDelegate. I need it to be done on a view. I have the following code, bu...

Is it okay these days to use PNG with alpha-transparency in websites?

I remember from 3 years ago that it was an absolutely huge pain to use any nice PNG with alpha in websites, because of IE6 and other bad browsers. But how about now? How about if your target audience are iPhone, iPad and iPod Touch users? I believe these people aren't so stupid to use old-aged bad browsers. They use the newest, best stu...

Game Center Finding a Match Programmatically

I just can't figure out how this works. What I am trying to do is let two players play a game if a third player joins it can instantly join the game, if the fourth and last player joins it can also instantly join the game. They can also leave the game at anytime for whatever reason, if that happens there should be a space open for anothe...

Push method for core motion and frequency of Accelerometer/Gyroscope Data

When push method is used to get accelerometer/gyroscope/device motion data, unfortunately the gyroscope and the device motion maximum frequency cannot exceed 72Hz on average (in fact the data is not periodic at all either). Even worse, if only the gyroscope data is recorded (without starting device motion update service: i.e. using only...

In App Purchase : adding new items for sale

I Just wanna make sure if I got it right, If I want to sell ebooks through my iphone app, I shouldn't bundle them with my application ( because I want to add ebooks for sale from time to time ), they should be put on a separate server, and each time i want to add an ebook, I add its information in itune connect , and the ebook itself is ...

iphone: is this a correct design: 2 views with 1 class ?

Hi guys, i' a new iphone developer coming from flash stuff. let me tell you about my problem: i'm doing a puzzle game and have a tab bar controller with 4 tabs. i use 1 tab for sign up and other for login, they works different but uses a lot of the same code (displaying images, playing sounds, settings stuff, audio things, animation...

iPhone SDK Background threads calling other methods

Hi all, I am a seemingly straightforward question that I can't seem to find an answer to (and it is hindering my app). I have a background thread running a paricular method: -(void)processImage:(UIImage *)image { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; //Process image here in the background here [pool dra...

Unexpected results from NSUserDefaults boolForKey

After uninstalling an application completely from the device and then loading it in the debugger, I am attempting in a setup method to load a flag using boolForKey. The first time the app runs I have the expectation that the bool will not exist, since I have just reinstalled the app. I expect from the documentation that boolForKey will t...