iphone

UIView clipsToBounds property: Does it improve performance?

The documentation says that the clipsToBounds property of UIView will clip the drawing to the bounds, or more precisely that the subview can't draw outside of the bounds of the superview. Sounds nice, but what does that mean in practise? If I set that to YES, then my subview will automatically only draw those parts which are not outside...

inline assembly error

I am using inline assembly for iphone, I working for device debug mode. The instruction is as follows: __asm__("smlatb %0, %1, %2 ,%3 \n\t": "=r"(Temp): "r"(treg5) : "r"(fac5) : "r"(Temp) ); And I am getting an errors: error : expected ')' before tokedn '(' error: unknown register name 'r' in 'asm' I am using X-code 3.0 and...

Technology to write iPhone, BlackBerry and Android phone at the same time?

Is there a strategy or at least best practice to write an app that runs on iPhone, BlackBerry and Android? I'm ignorant about the development environments for BB and Android, but I assume they both support Java apps. I know that the iPhone would require an ObjectiveC portion (as well as a whole new UI). Has anyone done this? ...

How to Convert website for iPhone / iPod?

If Client Give you some website and then tell you to convert this design into the iPhone compatible and user friendly website then , which Points take care while converting or Optimizing for iPhone. ...

iPhone SDK - Looking for resources regarding....

I am wondering if anyone can help me find two resources for iPhone Development. 1) I am looking for a nice tutorial explaining how to use UITableView to input settings (UITextField, UISwitch, etc...) just like practically every single app does. 2) I am also wondering if there is a resource online that has Custom Objects for IB. I find ...

Taking an RGB color and normalizing it with UIColor on the iPhone

Hey all, I'm looking for a straight forward way to convert a color from RGB, grabbing it from a tool like Photoshop, then convert it to a UIColor. Since UIColor uses normalized gamut of 0.0 to 1.0 for each color space, I'm not sure how this is done. Thanks for the solution. ...

Call back style

I am writing an iPhone application which in numerous places needs to perform non HTTP or FTP networking of a very simple request response type. I've wrapped all this up into a SimpleQuery class that integrates with the run loop. SimpleQuery *lookup = [[SimpleQuery alloc] init]; [lookup setDelegate:self]; [lookup doQueryToHost:querySer...

Iphone UIButton not working

This is so damn simple im sure! Im missing something and im exhausted from trying to fix it. hopefully someone can help. The Button in CharacterView.m works but the button nested down in CharacterMale.m does not. I'm not using IB everything is done progmatically. CharacterView.m is being used as a container ///////////////////////////...

How not to let user choose a certain TabBarItem

Hi, When a user wants to choose a certain UITabBar item, I want first to check if he can choose it. And if he cannot, then show an alert. There is a delegate method that is being raised when a user chooses a certain item, but it doesn't work when an item is disabled. What is the best way to achieve this? Thanks. ...

Is there a way to hide the scroll indicators in an UIScrollView?

I've got an use case where those indicators disturb the user interaction. Can I subclass and overide an method or something similar to remove the scoll indicators from the scroll view? ...

Code for syncing the iPhone with REST-servers

Hey, is there any open source code for syncing an iPhone with a server (preferably REST)? Found nothing on github and google code. Regards... ...

What type of iPhone application file should I use?

What type of iPhone application file should I use? Before, I was trying to make an application that gets information from an RSS, then populates a tableview. The application would be using a Tab Bar, and have many different views. Before I tried using a "Tab Bar Application" but I did some stuff wrong (I am not sure what) and I had to...

How to set up CMake to build an app for the iPhone

This is closely related to my previous question, which was about using CMake to build a static library on the iPhone. I got that to work setting the CMAKE_OSX_SYSROOT. However, this doesn't work to build an app. My CMakeLists.txt looks like: project(TEST) set(CMAKE_OSX_SYSROOT iphoneos2.2.1) set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDA...

Why can't I correctly parse this date string with NSDateFormatter?

I'm trying to parse a string that was generated by an NSDateFormatter using another NSDateFormatter with the same format. Rather than trying to make that previous sentence make sense, here's some code: NSDateFormatter *format = [[NSDateFormatter alloc] init]; [format setDateFormat:@"MMM dd, YYYY HH:mm"]; NSDate *now = [[NSDate alloc] ...

Should I store it in an array, or what?

Hello, I am making an application (iPhone app) which gets information (jokes) from an RSS feed, then populates the tableView. Now, would I take the RSS and store it in an array then populate the tableView, or what? And how do I receive information from an RSS feed? Thanks! ...

Accessing and setting iPhone's alarm / User alert on timed interval

Are there any way to access or set iphone's alarm? Im assuming if this isn't available, the only other way is push notification to alert the user on a timed interval. Any ideas? ...

iPhone Memory Management

Dear friends, I'm about to make a fool out of myself, but I've noticed many friendly and patient people around here, so I just give it a try: I'm developing an iPhone app, that contains a database of car reviews. I want the user to be able to share the reviews by email. So, when he/she finds an interesting car in the app, he/she would ...

launch safari from iphone app

This might be a rather obvious question, but can you launch the Safari browser from an iphone app? all the best. ...

Does anyone know a good tutorial for Tab bars?

Does anyone know a good tutorial for Tab bars? My app is currently a "view-based" app. I need a tutorial on how to make it so that my main nib loads the view from other nibs, and when I click different tabs, it loads other nibs. Thanks ...

How to create a horizontal scrolling view on iPhone???

I want to create a horizontal scrolling field at the top of a UITableView (something similar to what can be found on the Home section of the Facebook App). I want the scrolling field to be filled with six sections where only one section could be selected at a time? How should i do this? I know i should create a UIScrollView and set i...