iphone

UILabel shadow from custom cell selected color

Hi everyone! So this is my problem: I'm loading a custom nib file to customize the cells of a UITableView. The custom nib has a UILabel that is referenced from the main view by tag. I would like to know if it is possible to change the shadow color of the UILabel when the cell is selected to a different color so it doesn't look like in t...

How can I determine if a view has been loaded for the first time?

I want to detect the very first time my view is displayed. After that, I wan't to forget about it. Where can I set a BOOL to do this? ...

Problems with UITableViewCellStyleValue1

I have the following code: static NSString *CellIdentifier = @"Cell"; cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; cell.textLabel.text = @"Publisher"; cell.detailTextLabel.text = @"This Is A Very Very Long String"; which results with the following look: (only ...

iPhone - Image overlay MapKit framework?

I can see with iOS4 you can now tile an image on google maps (Been looking at the TileMap example from apple). This is great as this is what I want to do, but from what I can see I need to know the GEO reference of the image so I can raster the images with the appropriate zoom levels, etc. What I have is an artist image, which is a map o...

If I submit my app with NSZombieEnabled = YES

Sometimes I set NSZombieEnabled environment argument to YES for debugging. This time I forgot to turn off the option, and submitted my application to App Store. I suppose this option is just an environment option, so and does not affect to submitted application. Am I correct? ...

iPhone iOS4 low-level camera control?

Is there a way to manually set low-level still-camera settings like shutter speed, aperture, or ISO in iOS4 on the iPhone 4? I don't think it exists in the official SDK but perhaps someone has found some private APIs to allow this? I find my iPhone 4 camera to be unusable because even in fairly decent lighting, it always insists on shoo...

Remove chars upto specific one in NSString

Hi, if i have an NSString eg-> string(102)"?xml etc How to remove all chars upto and including the double quote. I want to remove the string(102)" Doing this NSString* newString = [str substringFromIndex:13] works but is not ideal ...

OpenGL ES tiled object (cube?), with clickable tiles

I'm starting study opengl, and im tring to make a 3d chess like, but i cant figureout, how i can know where i have clicked in the "table" to make the proper animations, any advice ? ...

Why does a UITableView data source get loaded after rows are created?

I have an interesting problem. I am loading a UITableView asynchronously. I am trying to get the count: prefs = [NSUserDefaults standardUserDefaults]; NSInteger dmCount = [prefs integerForKey:@"dmCount"]; NSLog(@"items count %d", [self.items count]); if (abs([self.items count] - dmCount) > 0) { [prefs setInteger:abs([self.items...

iphone memory over release

if I release a variable more than it should be, would that be a problem? I cannot determine the retain count ahead of time. ...

Path is not working

NSBundle *thisBundleb = [NSBundle mainBundle]; pathb = [thisBundleb pathForResource:[a3 objectAtIndex:0] ofType:@"html"]; NSURL *instructionsURLb = [[NSURL alloc] initFileURLWithPath:pathb]; [webView loadRequest:[NSURLRequest requestWithURL:instructionsURLb]]; value of [a3 objectAtIndex:0]=index but when i pass like this i a...

iPhone UIView Animation Duration only works instantly

This code is being executed in the touchesended method of a subclassed uiview, however it doesn't animate, it just instantly changes the background color. What is wrong? self.backgroundColor = [UIColor blackColor]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:20]; [UIView setAnimationCurve:UIV...

Delete all my NSUserDefaults that start with a certain word

[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"Dog*"]; Is there a way for me to "walk" through a list of all the userDefault values in my iPhone app, and only delete certain ones? I.E. All the keyNames that start with a certain word. ...

iPhone SDK: is it possible to make standard movie player working in portrait orientation?

I tried to use - (BOOL) shouldAutoRotateToInterfaceOrientation(UIInterfaceOrientation)interfaceOrientation { if(interfaceOrientation == UIInterfaceOrientationPortrait) { return YES; } } but it doesn't change anything in a standard movie player. Screen rotates to landscape mode automatically and movie player does not re...

Is it possible to be accepted on Apple's App Store for a Web App?

If an iPhone app is developed in JavaScript not in Objective-C can it be accepted ? Advantage being not technical but marketing since the app store is much more exposed to traffic. For example app store is linked from homepage: http://www.apple.com/iphone/ ...

Where can download the souce code of sntp?

Hello All, I will use the sntp protocol in iphone applicaton.Where can i download the souce code of sntp? Please give me the address,if you know where can download. Thank you! ...

Bignum, Linear Algebra and Digital Signal Processing on iPhone OS (iOS 4)

I think I've found some gems in the iPhone OS (iOS 4). I found that there're 128-bit, 256-bit, 512-bit and 1024-bit integer data types, provided by the Accelerate Framework. There're also Apple's implementation of Basic Linear Algebra Subprograms (BLAS), Apple's implementation of LAPACK (Linear Algebra PACKage), and Digital Signal Proce...

\n in NSSting * and .plist

Code: NSString *strDirect = @"Dummy\nMessage"; NSString *strBundle = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"MessageDummy"]; NSLog(@"Direct: %@", strDirect); NSLog(@"Bundle: %@", strBundle); where MessageDummy is a string type value Dummy\nMessage in the .plist file. i.e.: <key>MessageDummy</key> <string>Dummy\nMes...

why did my app use a high real memory?

My app is a client what can watch videos online. I test my app with Instruments,i selected Leaks,ObjectAlloc,Memory Monitor from library of Instruments.I find that All Allocations Live Bytes is just 9.33 MB,but it's 81 MB in Memory Monitor,told me this process use a lot of memory.And when i play a movie,the usage still comes up ,but th...

Bundle Name, Executable Name, Product Name...anything else??

Bundle Name, Executable Name, Product Name... any more?? can someone please help clarify the use of each of these in Xcode on an iPhone project? They never fail to confuse the living bajezus out of me...and Im tired of getting them wrong. Someone please explain... why the hell do we need this many different naming schemes for one app ...