iphone

syntax error before '^' token in UIView.h - not fixed by changing compiler setting

Hi, I installed the latest official iphone sdk and now my personal project is getting the same compiler error in UIView.h as described in this question: http://stackoverflow.com/questions/3098611/syntax-error-before-token syntax error before '^' token The solution is apparently to change compiler settings to use GCC 4.2 or LLVM. I've ...

Hide empty cells in UITableView

Hi, I have a searchable tableview, but would like to only display the number of cells that are returned once a user starts a search. For instance, if a user types in a charecter and there is only one cell that matches the search, the remaining cells the remaining cells of the table are empty. I was wondering if there is a way to hide th...

Cross Disolve working on iPhone but not iPad.

I have the following code that gets called after the view loads. It works perfectly on the iPhone, but appears to do nothing at all on the iPad. I have confirmed the frame/bounds of my UIImageView is set to the size of the iPad's screen. Recommendations please? - (void)startNextAnimation { CABasicAnimation *crossFade = [CABasicAnimat...

iphone - Xcode 3.2.3 refusing to run simulator 3.1.3

I have a project build to work with iPhone 3* and 4. Base SDK is set to 4. Target OS is set to 3. I have an iPhone 3GS with 3.1.3. Xcode 3.2.3 refuses to install the app on this iPhone. It refuses also to run the simulator. WHen I try to debug on the device I get "Failed to upload". When I try to debug on the simulator I get a message...

Add barButtons to navigationbar with modalView iphone

Hi all, In my application, I'm presenting a modalViewController with a navigationbar on the top of it, but I'm not able to add barbuttons to the navigatiobar. I'm using following code: EDIT: displayController = [[UIViewController alloc]initWithNibName:nil bundle:nil]; UINavigationController *cntrol = [[UINavigationController alloc] i...

iphone NSDate with NSDateFormatter Problem

All i am trying to do, is to get an NSString with the value of the current date ( NOW ) with this format: 7/14/10 8:20 PM Exactly like the native mail app of the iPhone. i am using the following code to do it: NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"EEE, dd MMMM yyyy HH:mm:ss ...

objective-c : iphone programming : Showing variables on UIAlert view

hi, i want simply to show a double value on a uialert view it is possible? ...

Animate object along a drawn path?

Hi, I recently downloaded the sample application, GLPaint from apple. This app showed me how to implement drawing, but now I would like to animate a image over the drawn lines. Similarly to how the application "Flight Control" works, I would like to be able to draw a path for an image and then have the image animate over this path. any...

What is the best way to work with a user interface/user experience designer on an iPhone app?

I have a friend who is a graphic designer & user experience designer who will be collaborating with me to develop an iPhone app. He does not have previous iPhone experience. What is the best way to work with him on developing the user interface, i.e. custom colors for UITableViews, UIButtons, etc? We've looked into Photoshop mock ups,...

XCode building: identical configurations behave differently

I have a superweird problem: I get a crash (EXC_BAD_ACCESS) when running my app with Release as active configuration on my 3.1.3 iPhone 3G. (works well in debug configuration or in simulator , works perfectly on device running iOS4). My first guess was one setting in the Release configuration was erroneous/missing. In order to test it ...

how to implement Facebook to my app

hello I am used Facebook for my application where i have to post comment on wallpaper.But now i have to modify that application. i want page after user login it will give option like 1: post to wall 2: reterieving friends 3: logout Can we implement this page after login instead of direct opening the page of post wall. If yes then pr...

NSOperationQueue dispatching threads slowly?!

I'm writing my first multithreaded iPhone apps using NSOperationQueue because I've heard it's loads better and potentially faster than managing my own thread dispatching. I'm calculating the outcome of a Game of Life board by splitting the board into seperate pieces and having seperate threads calculate each board and then splicing them...

iPhone change height with animation, not downward sweep

Hello! I am using the code: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDelegate:self]; [UIView setAnimationDuration:0.3]; [info setFrame:CGRectMake( 0, 96, 320, 384)]; [UIView commitAnimations]; to have an animation of the object "info" to change its heght to 384... Nothing else is changed, but the only way to do t...

refresh uitableview data

how can I refresh the content of UITableView every 5 minutes? ...

notification when program is in background iOS 4

Hello all, We are looking for a way to timeout an iPhone application, and have tried several methods: NSTimer that resets after an action LocalNotification that resets after an action Both are close, but suffer from unique issues: NSTimer: When the phone sleeps, the timer will not fire LocalNotification: When the app is in the backg...

Dynamic UIMenuItems with @selector and dynamic methods.

Hi, I am trying to use UIMenuController for a dynamical menu (titles and actions come from a server). The problem is that I have to use UIMenuItems initWithTitle:action: where action is a @selector. I can use @selector(dispatch:) but then I am not able to distinguish which of the items the user pressed. - (void)dispatch:(id)sender { NSL...

how to pop a controller off the navigation stack without using the navigation bar

I'm trying to implement a navigation controller with some hierarchical views. I want to use a regular UIViewController to present choices for drilling down, I don't want to use the navigation bar - I want to have my own, custom buttons for returning back up a level. I see examples like: [[self navigationController] pushViewController:...

iPhone programming: Inserting labels between sentences

I have an interesting UI where a table view contains some lines of text. There are certain words in each line that I need to highlight and those words can be selected to render some tooltip. I thought of using labels for these words so I can highlight them and also capture any touch events. But I couldn't find a way of achieving a flow ...

iphone- Highlighting div on tap that isn't a link

I'd like to highlight an entire div when the user touches or selects the text contained in the div. I'm able to highlight the text only when it is contained in a span with a javascript function, but when I try to apply the function to the entire div it does not work. In my research I've seen many people remove a highlight with -webkit-...

iPhone Text View within a Flip View

Hi guys, I have a Flip View and on this "flipped" view I have a UItextView, (NOT a textField). I need to be able to display a rightBarButtonItem when the editing of the textView begins and then to click this rightBarButtonItem to resign the keyboard. There are lots of similar problems such as this but none of them are on a flip view. ...