iphone

How to make a view like Recents in the Phone application for iPhone?

Hi, I need to make a view just like Recents in the Phone application. There are two connected buttons on the top, and when either one is clicked, the view below will change. I tried to use UIToolbar but there are spaces between buttons. Does anyone know how to do this? Thanks in advance. -Joey ...

repeat a code while a UIImageView is being pressed

I want to be able to repeat the code inside my touchBegan code that activates when you click the UIImageView but will not repeat itself while your finger is down... How do I make it so while my finger is pressing the UIImageView it repeats itself. ...

Rearranging buttons in an iPhone alert?

Is it possible to have alert view buttons above each other instead of next to each other? ...

Getting the pixel color from a image

I'm working in a view based application and am trying to find some code that will let me grab some pixel colors from one of my images and use it for collision detection against one of my UIImageViews but haven't had any luck finding anything on this subject. So if my UIImageView for my player collides with the UIImageView of my map && co...

Text link in Alert View message

Is it possible to add a text URL Link in an Alert View message? ...

UITabBarController support orientation problem

i have a tabBarController which contain two tab, i would like 1 tab is support orientation but another one not,how to do that? i have tried the code: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations if(self.tabBarController.selectedIndex==1){ NSLog(@...

Checking if a date is of the same calendar day

Could someone please help me figure out how to check if some date is of the same day as today. I guess it would require creating a calender day at 0 hour of the same day in the same timezone and checking against that, but so far my attempts have confused me more then anything. ...

Using of a single view to display different content on flip.

Hi everybody, I am trying to add a flip on row did select of every section.The flip side view should display the content of the selected section. I have tried to understand the apple transition tutorial but its tough to get. Any simple application related to it . ...

What is the right way to check for a null string in Objective-C?

I was using this in my iPhone app if (title == nil) { // do something } but it throws some exception, and the console shows that the title is "(null)". So I'm using this now: if (title == nil || [title isKindOfClass:[NSNull class]]) { //do something } What is the difference, and what is the best way to determine whether a ...

iPhone dev box

I would like to try some iPhone development but am not a Mac user. I'm not keen to spend a load of cash on a new mac, so if I were to buy an old Mac on ebay, what system should I look at as a minimum for an acceptable iphone dev machine. Cheaper the better obviously. Note: Not keen on running mac os on a pc so really looking for an appl...

is it possible to change UITableView section title background color

as title, possible to do it? ...

Change UIDatePicker from 12 hour clock to 24 hour clock and back

Hello, I'm sorry to make my first question here a bit of a simple one -- I've spent a day reading the NSLocale and NSCalendar class descriptions but I couldn't see if this was possible. I have a UIDatePicker in the UIDatePickerModeDateAndTime mode. It is currently displaying date and time according to the user's locale, which is the d...

UITableView disable swipe to delete, but still have delete in Edit mode?

I want something similar as the Alarm app, where you can't swipe delete the row, but you can still delete the row in Edit mode. When commented out tableView:commitEditingStyle:forRowAtIndexPath:, I disabled the swipe to delete and still had Delete button in Edit mode, but what happens when I press the Delete button. What gets called? ...

Only showing View after second Push on iPhone

Hi, I'm having an annoying problem, that may have a simple answer! I have a ViewController (which contains a TableView Controller and Header View) which I am pushing on to a Navigation Controller - When I push it on the first time after launching, I get a blank view. When I click the Back button to pop it, it appears fine from then on ...

EAGLView orientation changes and strange buffering

I'm writing an app that offloads some heavy drawing into an EAGLView, and it does some lightweight stuff in UIKit on top. It seems that the GL render during an orientation change is cached somewhere, and I can't figure out how to get access to it. Specifically: After an orientation change, calling glClear(GL_COLOR_BUFFER_BIT) isn't e...

Best way to debug Javascript on an iPhone app?

I'm doing some rough development on the iPhone. I'm writing a native iPhone app, which uses an UIWebView object to load web sites with javascript. I find very difficult to debug the javascript code on an iPhone. What are the methods/techniques available for this matter? ...

iphone app - adding another view.

Hi, I am working on a iphone app but found that I have now require another view / window to get the user to input and save data / information there. how do I add another view? do I add it in interface builder and then link it in the main app delegate or will it have its own .h and .m files. I selected a window view app to start with,...

UITextField - keyboard pops up when pressed

Hi, When using a UITextfield to enter information a keyboard pops up on the iphone simulator, the information with it says it will disappear again when return is pressed but it does not. is there a line of code I need to add so that it will disappear again or is this a querk with the simulator??. Carl. ...

iPhone - How can I add the NSStepper control to Interface Builder?

I have searched for over 4 hours on the net, but every answer I view seems to assume that the user knows how to add controls to Interface Builder. How does one add extra controls to IB? (Please assume that I know nothing - which is not too far from the mark!) From my research to date, it seems that extra controls have to be programmed,...

Beginner iphone question: drawing a rectangle. What am I doing wrong?

Trying to figure out what I'm doing wrong here. Have tried several things, but I never see that elusive rectangle on the screen. Right now, that's all I want to do -- just draw a single rectangle on the screen. I'm getting an "invalid context" on everything but the CGContextSetRGBFillColor(). Getting the context after that seems kind...