iphone

UIView Animation iPhone (obtaining information on the frame dynamically)

I have a UIView called goalBar which is being animated by increasing the size of the frame according to a float value called destination: CGRect goalBarRect = CGRectMake(0, 0, destination, 29); [UIView beginAnimations:@"goal" context:nil]; [UIView setAnimationCurve:UIViewAnimationCurveEaseIn]; [UIView setAnimationDuration:2.0f]; goalB...

Changing UITabBarController More Item Colors

I have a UITabBarController with a "More" tab whose color scheme I would like to modify. Navigation Controller Nav Bar Colors I've been able to change the background color of the "More" tab's UINavigationController by subclassing the UITabBarController and adding the following code to the ViewDidLoad method: UINavigationController *mo...

iphone usb connection

Hello everyone. I would like to know how any computer (mac, windows, linux) shows up media folder when an iPhone is connected. What protocols are used by that? ...

AdMob ad in iPhone app makes App content disappear when "done" is pressed!

Hello All, When I return from an adMob ad by hitting "done" the content of my app has disappeared ! All that remains is a background image I had attached directly to the main window. Oddly I can still hear the result of my touch events from my main screen (which is now gone). This may be related to the issue some people have had re...

How to divide the circle in equal parts?

Hi, i m the beginner in iphone. I want the divide the circle in equal parts. I have the code, #import "MyView.h" #define PI 3.14159265358979323846 static inline float radians(double degrees) { return degrees * PI / 180; } @implementation MyView - (id)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { // ...

Can and should I run 2 versions of XCode side-by-side?

Is it possible to install the beta iPhone SDK as well as the latest "official release"? Is this even necessary, or can i just use the beta for iPhone/iPod development as well as iPad dev? ...

Tutorials or sample code for creating a slideshow with Photos in iphone

Hi, I am new to iPhone development.I want to create a slide show in my application. Is there any sample tutorials or programs are available to achieve the task? I have searched in net and i dint get anything.What is the proper way to create a slide show of photos? Please help me out. Thanks. ...

View doesn't respond to touches after shake

In my app I've implemented a shake event and it shows a UIImageView. When the UIImageView is shown, I hide the Nav Bar with: [self.navigationController setNavigationBarHidden:YES animated:NO]; And after that I want to bring it back when user touches the screen: - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { [[...

NSDefaults storage iphone?

Hey Guys, Where is NSDefaults stored on iphone? Is it a good practice to store UserName and password in NSDefaults? Thanks ...

UIViewController how to catch setNeedsLayout ?

When you add a UIViewController to another UIViewController, and the parent UIViewController decides to resize its view, how to tell the child UIViewController's view to update its layout ? ...

How to create an image from a UIView / UIScrollView

Hi, I have an image in an UIScrollView, that can be scrolled and zoomed. When the user presses a button, I want the code to create an image from whatever part of the UIScrollView is inside an area I specify with a CGRect. I've seen code to crop UIImages, but I can't adapt it to do the same for a view, because it uses CGContextDrawImag...

Image coding library

Is there any good library for lossless image encoding/decoding that has compression rate more or less similar to PNG but decoding to raw RGB bitmap data would be much faster than PNG? Also alpha transparency is needed, but not essential because, alpha channel could be taken from separate image. Original problem lies in slowness of read...

iPhone: Create several button using one function

Hey guys I need to create several buttons in a app so I made this function: - (UIButton*) SetButton:(UIButton*)boton withTag:(int)Tag andFrame:(CGRect)Frame { NSArray *aux = [[NSArray alloc]init]; boton = [[UIButton buttonWithType:UIButtonTypeRoundedRect]retain]; boton.frame = Frame; boton.tag = Tag; aux = [[AmericaI...

How to add star rating to UITableView cell?

I need to display a bunch of UITableViewCell in my iPhone application. Sample look below. I know how I can enable accessory view and image to UITableView cell but the problem is that I need to add a star rating as visible on the screen. There's no fancy logic behind it, it will just be few images that will be either enabled or disabled....

iPhone app crashes with no justifiable reason ?

Hi all, I am developing an app in which I have a table. In the table cell I have an imageview ( the images are displayed via url ) and a textview/webview. I start threads for each row to get the images in the - (UITableViewCell *)tableView:(UITableView *)theTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath method ( if image ...

HTTPHeaders Added to Downloaded File - CocoaHTTPServer???

In an iPhone app where I use cocoahttpserver and take a sqlite database file from the iPhone and download it with a browser to my PC, when I look at the downloaded file using TextEdit, I see the text (below) at the end of the file. This text has apparently no effect on use of the database file, but I would prefer to not add stuff to the ...

On Iphone, how do I implement a button that will open up a website?

From my Objective C iPhone app, I want a user to click on a "Register" for account button and then open up a registration page on my website. What is the code on the iPhone to open up a website in response to a user action? ...

Get BoundingBox of a transparent Image?

Hi, i load a transparent .png into an UIImage. How to i calculte the real bounding-box. E.g. if the the real image is smaller than the .png-dimensions. Thanks for helping ...

UITableViewCell setSelected, but selection not shown

I want to keep a cell selected, and only change when I select another cell. In tableView:cellForRowAtIndexPath: I have set a selected cell with [cell setSelected:YES]. I know the cell is selected, but it is not shown. When I call [tableView reloadData] the selected cell flashes. Any ideas? ...

how to get the datatable view that is used in Alarm application in iphone?

I am new to iphone development. I am trying to develop an alarm app, same as in the iphone itself. But I am struggling to get to display the view of the table that shows only the filled in rows. I get the datatable all over the view. which property on the datatable decides to show only the filled in rows. Thanks, ...