iphone

Two subviews in UIScrollView

Hi, I want to use two views in UIScrollView. In the first view, when I scale down to 50% its size then the second view will show and then the first view will hide then the second view will continue scrolling down. Now my problem is how can I scroll down the second view? Thanks. ...

How do you tell if a key exists for an object using Key-Value Coding?

I'd like to test whether an object has a writeable @property in the iPhone SDK. One possible way of doing this is to check the -valueForKey: method, but that seems rather inelegant! Example: @try { id *value = [instance valueForKey:@"myProperty"]; } @catch (NSException * e) { // Key did not exist } Is there a better...

Can other programs read my NSUserDefaults settings?

On the iphone can other apps read the values you've set using NSUserDefaults? Not including jail-broken phones. I'm considering saving the customer's userid/password for our service. Thanks, ...

what is the application heap size in iphone ?

HI,, What is the application heap size in iphone ? i mean that up to what size a application can use memory in the iphone. Does it same for the ipod or it is different for iphone or ipod? What is the downloaded content size in iphone which we can download in our app using NSdata? Thanks ...

Trying to play sound on iPhone

Ok this works - (id)initWithCoder:(NSCoder*)coder { if ((self = [super initWithCoder:coder])) { // Load the sounds NSURL *soundURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Begin Drawing" ofType:@"wav"]]; AudioServicesCreateSystemSoundID((CFURLRef)soundURL, &_boomSoundIDs[0]); soundURL = [NSURL fileUR...

Trigger web-request when user scrolls to bottom of UITableView

Hi, i'm trying to get a UIActivityIndicatorView to "appear and animate" when a user scrolls to the bottom of a UITableView…. Upon reaching the bottom of the table view, a web-request is made that will take a few seconds to complete and then the UIActivityIndicatorView should "stop and hide" I'm triggering the appearance of the UIActivi...

What is the correct usage of arrayWithContentsOfURl?

This is a bit basic; I am trying to retrieve http data for an iPhone app. I have www.myhost.com/test.html that reads <array><string>test</string><string>test2</string></array> Then I have NSURL *baseURL = [NSURLRLWithString:@"http://www.myhost.com/test.html"]; NSArray *array = [NSArray arrayWithContentsOfURL:baseURL]; NSLog(@"%@", [...

Cast as an NSNumber doubleValue adding extra [phantom] precision

iPhone sdk 3.2.1 NSMutableDictionary *myDict = [NSMutableDictionary dictionaryWithCapacity:2]; [myDict setObject:[NSNumber numberWithDouble:0.1f] forKey:@"testDoubleObject"]; [myDict setValue:[NSNumber numberWithDouble:0.1f] forKey:@"testDoubleValue"]; Printing the description of myDict to the console yields this: Printing descrip...

NSString - doubleValue is returning NaN from a viable NSString

Ok, so I am pulling an NSString from and NSMutableArray and storing it in an NSString: entry = [NSString stringWithString:[array objectAtIndex:row]]; This is wrapped inside of a couple different for-loops. I then convert it to a doubleValue and store it in a number but apparently [entry doubleValue] only returns a NaN instead of a num...

Scrollview would not detect my touch?

Hello all you guys probably encountered this type of problem. i added a scrollview to one of my views inside that scrollview i add subview of UIimage i also added a subview of Toolbar. The toolbar shows up fine. I have the touches methods so when the user touches any object it hides the toolbar, the problem is when i touch the screen no...

CABasicAnimation

I have UIImageView with subviews. How can I change frames of subviews after rotation UIImageView? I need your help) ...

What is the easiest way to make a UIAlertView that's tinted of a different color?

My application uses a black navigation bar and other custom colors for various UI components and the dark-blue tinted alert views look really out of place. I'd like to make the alert view translucent black without having to resort to using an image file. I'm not opposed to generating the UIImage, since I get that the only way to change...

Customizing UIImagePickerController under iPhone OS 3.0?

In OS 3.1, Apple provides a way to overlay custom controls on the camera view (UIImagePickerController). However, the properties and methods to do so weren't available in OS 3.0, and as far as I can tell, all you can do is hack the view hierarchy in 3.0. So, I have a couple of related questions: 1) Is hacking the view hierarchy the on...

Triple DES interoperability between .Net and iPhone?

I need to encrypt a string on the iPhone and send it to a .Net for decryption using Triple DES. I am able to encrypt/decrypt on the iPhone and with .Net, but I get different results in both platforms. I use the very same code as the encryption/decryption with AES between .Net and iPhone in here The only thing that I changed .net is t...

Has anyone used Buzz Andersen's Simple iPhone Keychain code?

You can find it here. I'm trying to understand his sample code in order to write a simple program with that stores passwords into the keychain and retrieves them for login. Has anyone done this before? It would be most appreciated if I can see any examples you may have. ...

Does NSURLConnection take advantage of NSURLCache?

I'm trying to figure out how to use the URL loading framework to load URLs taking advantage of caching. I am using NSURLConnections and feeding them NSURLRequests. I have even set the cachePolicy on those requests to NSURLRequestReturnCacheDataElseLoad. The first time I load a request, it does automatically get put in the cache ([NSUR...

Wireless communication: AVR based embedded system and iPhone

What is the best way to realize wireless communication between an embedded system (based on an AVR controller) and the iPhone? I think there are only two options: either WiFi or BlueTooth. The range is not really a problem, since both devices should stay in the same room. I have no idea, if there are any useful WiFi boards that can be c...

How can I show a UIDatePicker instead of a keyboard when a user selects a UITextField?

I have a nice clean UI within a table view which has a few text fields for the user to fill out. One of the fields is for the user's birthday. I'd like to have it so that when the user selects the birthday field, a view containing a UIDatePicker would come up as, just like the different keyboards do when selecting a text field. Can thi...

How do I match non-ASCII characters with RegexKitLite?

I am using RegexKitLite and I'm trying to match a pattern. The following regex patterns do not capture my word that includes N with a titlde: ñ. Is there a string conversion I am missing? subjectString = @"define_añadir"; //regexString = @"^define_(.*)"; //this pattern does not match, so I assume to add the ñ //regexString = @"^def...

whats better, to insert multi images to uiimageviews using the code or IB ?

hi, if i have multi uiimageviews (30 images) in the view, is it better (for performance) to insert the images from the code or insert them using the IB. ...