iphone

Syntax for creating View delegate in Objective-C

I am trying to create a delegate protocol for a custom UIView. Here is my first attempt: @protocol FunViewDelegate @optional - (void) funViewDidInitialize:(FunView *)funView; @end @interface FunView : UIView { @private } @property(nonatomic, assign) id<FunViewDelegate> delegate; @end This doesn't work because the FunView inter...

How do I create a bar between navigation bar and table header?

In NYTimes iPhone application, one bar exist in between table header and navigation bar on the top news screen. what bar is that? or it's just a label in between navigation bar and table header? Thanks in advance. ...

Custom UITabBarItem Image/Title on iPhone

Hi all, I'd like to add a custom title to one of the predefined UITabBarItems. Whenever I select the particular instance I like in Interface Builder -- if I modify the the title it gets preset back to a 'custom' identifier. Ideally I'd like the book icon from the 'Bookmarks' identifier with my own custom title. Is this level of customi...

OpenGL: How to implement an "eraser" tool?

I'm working on a game for the iPhone that has a drawing/paint mechanic involved and I'm having problems trying to create a tool that would erase things already painted. The main problem is that the background being painted on is not a solid color but a static image or animation. I've tried using different blending options and logical op...

Anyone know whether there is a 5-star rating component on iPhone?

In Google groups and some other web sites, there is a 5-star rating component which is pretty neat, such as in this url: http://groups.google.com/group/Google-Picasa-Data-API/browse_thread/thread/b5a346e6429a70a7?hl=en I am wondering whether there is an existing 5-star rating component in the iPhone environment. Or if there is not, if a...

How do I create a view with scrolling where the size of a label is unknown?

Hi. In my iPhone application I have a table view. When user taps any row, information about that element will open. All information comes from an XML file, size unknown; some information may contain images. I tried to do it using a multiline label and image view, both inside an UISrollView, but I couldn't get scrolling. And is it poss...

Do I need a UUID to program for the iPhone?

Do I need a UUID to program for the iPhone? I was told I need this, how can I get a UUID ...

SpeakHere sample can't play sound which loads from internet

I'd like to play sound file which loaded from internet, so I tried to start from iPhone SDK SpeakHere sample. I recorded the sound, then saved and uploaded to the internet, I could download that file and play without problem from sound tools. But when I tried to play that URL from SpeakHere, I am getting error Program received signal: “...

iPhone app using .NET development environment?

How could I create iPhone applications using the .NET development environment? ...

Whats the best workflow for adding a new device to an adhoc provision?

So we all need to deploy our applications to real iPhones for testing purposes. I'm sure you much like me have found a group of sucke^H^H^H^H^H testers to help you out with this process. Whenever you want to send a build out to a new person this requires adding the new device id to your ad hoc provision. This part is fairly painless. ...

iPhone - debugging "pointer being freed was not allocated" errors

When over freeing a pointer you may see an error such as "pointer being freed was not allocated" When debugging with the simulator, I add a build argument MallocStackLogging = YES - this allows me to use malloc_history in the terminal to track down where I have over freed a pointer. If I debug on the device with this build argument I ...

Animation End Callback for CALayer?

Hi all. I'm wondering where the callbacks are (or if there are anything) for animations in a CALayer. Specifically, for implied animations like altering the frame, position, etc. In a UIView, you could do something like this: [UIView beginAnimations:@"SlideOut" context:nil]; [UIView setAnimationDuration:.3]; [UIView setAnimationDelegate...

UIButton in a UITableView header ignores most touches

I've got a button that I'm adding as a subview of a table view's tableHeaderView. The button appears fine, and tap-and-holding on it works intermittently - for the most part, though, it's unresponsive. I've tried adding it as a subview of the table itself; the effect is about the same. I thought the problem might be with the scroll view'...

Re-displaying EAGLView in simple iPhone game

I'm playing around with a really simple game for the iPhone based on the CrashLanding example on the developer center. I've extended it a little so that rather than using OpenGL for display all the time I have a plain UIView as the title screen, a UITableView for a high scores screen and an unmodified EAGLView for the game screen. So a...

How should I interact with the geometry of a UIView, disregarding any transforms applied?

I have a view that I would like the user to rotate around its center, by tapping and holding somewhere and just move their finger round and round. I have all the geometry worked out; What I do is store the initial touch angle relative to the center as offsetAngle, then my touchesMoved method looks like this: - (void) touchesMoved: (NSS...

Hosted Mac OS X/iPhone development

I want to try my hand at developing for the iPhone but I don't have an Intel-based Mac available to me; likewise, my budget doesn't include provisions for getting one anytime soon. I've tried messing around with winchain and that hasn't gone too well. I'm not interested in jail-breaking my phone and installing other tools for developin...

Why Virtualize the mobile ??

Virtualizing the mobile is way different from virtualizing the server or the desktop, where in the the hardware components are almost standardized [like the keyboard, mouse , usb, LAN etc] so the hardware could be easily abstracted for any of the OS. While on a mobile there is a multitude of hardware [like the iphone touch screen, stylu...

How do I generically use KVC to update fields?

Say I have the following Objective-C class: @interface Foo { int someNumber; NSString *someString; } and for reasons I won't get into here, I want to use KVC to update, in a generic fashion, the values for those variables: [f setValue:object forKey:@"someNumber"]; or [f setValue:object forKey:@"someString"];` If object ...

What is the minimum Mac OS X needed for iPhone development?

I'm looking to get an über-cheap mac just for iPhone development. What's the oldest OS that works? Any other hardware tips? ...

Why does Xcode keep changing its active executable?

Something really weird is going on with Xcode and an iPhone project I'm working on, when I'm building for the simulator, the project has 2 active executables (MyApp - iPhone Simulator (2.0) and MyApp - iPhone Simulator (2.1)) Almost all of the time, I want to use the the 2.1 active executable, but Xcode will occasionally silently change...