iphone

How to add to an NSDictionary

I was using an NSMutableArray and realised that using a dictionary is a lot simpler for what I am trying to achieve. I want to save a key as an NSString and a value as an int in the dictionary. firstly , how is this done? Secondly, what is the difference between mutable and a normal dictionary? Regards. ...

improving performance of a CATiledView

I have been looking for a way to improve the performance of my CATiledView. The view takes up nearly the entire screen (i have an iPad and iPhone version).Currently it takes about 12 seconds for the tiles to fill in completely (12 seconds on both devices). I have seen other apps use CATiledView and it take much less time for the tiles to...

Unactivated test phone?

Hello - I have an iPhone 3G that I would like to use to test my app, however, it is not activated. Is it possible to use it as a test device? ...

MobiOne is expired , what should i do to test iphone web page on windows xp . whats the best software about it

i use MobiOne to test iphone web page on windows xp but now it is expired , i uninstall it, and then reinstall it , it is also not running , so what should i do , or whats the best software about it . thanks ...

New Three20 Build-Error

Hey, i just upgraded my Project to the newest Three20 Build. When compiling i get following errors: Undefined symbols: "___restore_vfp_d8_d15_regs", referenced from: +[TTEntityTables(TTSingleton) sharedInstance] in libThree20Core.a(TTEntityTables.o) +[TTEntityTables(TTSingleton) releaseSharedInstance] in libThree20Core.a(TTEntity...

iPhone Tabbar Application -> hide Navigation Bar in "more"-View

Hi, I'm still new to iPhone development. I have an Application with more than five Tab Bar Items. When I click on the "more" Tab I can click on one of the other 4 visible views. But the Navigation Bar of the "more"-view is still there and I want to remove it. I hope it is clear what I mean with it. Thanks for your help! ...

UISliders and UIButton stop working in landscape mode

Hi all, I can't seem to find anyone who's had a similar problem so hopefully someone on here can help me with what might be a very obvious problem. Basically my program currently has a bunch of UISliders, UIButtons, and text boxes in it. Although I laid out all of this in landscape (I plan on having this view work only in land scape, o...

How to implement timeout for socket?

Hi, I've been working on a application for iPad that use sockets to communicate with another application and I'm having a lot of problems figuring out how to implement a timeout when sending data to my server application. I have like 3 command that I send to the server depending on what type of information I need, one of this commands ...

Saving a view with nscoding

I implemented the two methods of the protocol nscoding in a view controller, but now I want to save the view when the apps close and restore the view when the apps start, how I do this? ...

Imported files not recognized in OCUnit

Hi, I am doing unit testing on my iPhone app using OCUnit on XCode 3.2.3, and iOS 4.0. I have successfully set up my testing environment to pass and fail basic tests appropriately, but when I import my own files (in this case, "UserAccount.h", it fails to compile and tells me: "_OBJC_CLASS_$_UserAccount", referenced from: It then says...

iphone - how to extend a button touch area?

I have 5 round buttons in a row, each one, 40x40 pixels. Between each one, I have 20 pixels. 40x40 pixels is too small to touch, but as I have 20 pixels of space between each button I can extend the button touch area to 60x60 pixels, making it easy to touch. I could simply using the dirty solution of creating a square 60x60 pixels trans...

Draw a rounded UIView with gradient and drop shadow

Hi ! I have been working on a custom control that is a rounded rectangle button, filled with a linear gradient, and having a drop shadow. I have filled the two first steps using this answer : link text My problem is now to add a drop shadow under the resulting shape. Actually, the context has been clipped to the rounded rect path, so w...

Picking a HD video from library in iOS4 shows 'compressing video', results in horribly compressed video

Why is it that if I pick a video from the library in my application I'm given this horribly pixelated/compressed video but if I take the video with the camera in my application I'm given a nice video file, this is on the iphone 4. Sample of video taken w/in the app: http://photos.smugmug.com/photos/912709066_Kcc8p-1280.mp4 Sample of vi...

Rotate and Scale UIImageView with animation

How can I get a UIImageView to rotate itself 90° counter-clockwise and have the same UIImageView scale to fill the entire iPhone screen with animation at speeds of one-second? ...

Is background GPS\location logging possible on iPhone 4 or 3GS running on iOS4

I've never coded anything for the iPhone but have written a GPS tracker for Windows Mobile, with the release of iOS4 I understand there have been some improvements to the multitasking story. Is is possible to log a GPS trail with an app running on the iPhone iOS4? Can you achieve this by running in the background or using scheduled pus...

handle tap gesture with an argument iphone / ipad

when my tap gesture fires I need to send an additional argument along with it but I must be doing something really silly, what am I doing wrong here: Here is my gesture being created and added: UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTapGesture:itemSKU:)]; tapGestu...

iPhone Radio program with VU Meter

Fellow coders, I wrote an iPhone app that plays wma stream, using libmms and ffmpeg open source libraries. The app has already been approved by Apple and is available for download, free of charge. Now I'd like to have a VU meter on my app. I'm using the avTouch code sample, downloaded from Apple (https://developer.apple.com/iphone/lib...

Setting font in UIWebView for a loaded in rss feed

Hey guys, How would I set the font for an rss feed I am loading into UIWebView? Right now the rss feed loads in fine but is a default font and size that is undesirable. I would like to somehow control that. I am a super beginner so I apologize if this is a dumb question. ...

Can you develop an internal business application for the iPhone?

Possible Duplicate: iPhone app without AppStore My boss had an idea to develop an application that would be used for a few hundred contractors/employees and deploy it on an iPhone. So basically an internal business application that is an extension of the home-office application for mobile workers. I was under the impression t...

How to determine if the user has scrolled to the bottom of the UITableView?

How can I determine if the user has scrolled to the last cell/bottom of a UITableView? ...