iphone

Removing image background in UIImageView at runtime

I have a ball assigned to a UIImageView in Interface Builder. An IBOutlet from the UIImageView is wired to a corresponding UIViewController. The image has a white background. When I assign it to the UIImageView in IB, the background is transparent. In IB, I have the UIImageView set to a transparent background and aspect fill. When ...

pushViewController problem...

I create a UIViewController with a button on it. The button's only job is to create a window for drawing some rectangles. (I've taken some code from "QuartzDemo" from Apple's example applications.) Objective C is really giving me fits... When I try this, nothing happens. Here's the code for the button: - (IBAction)startButtonAct:(i...

VERY weird UITableViewController.tableview behaviour on scrollToRowAtIndexPath

hey all, I'm very confused here, i've been trying to figure this one out. I have a UIViewController, viewControllerBrowse, with two TableViewController, Designations & Types, I call a second UIViewController, viewControllerSelectLibrary, that makes some SOLite operations and fills two arrays from where the first two TableView feed. When...

UIImageView change Width and Height

I've read various posts on here asking similar questions... I've tried various ways that were posted including bounds and frames etc. including the following: myImage.frame = CGRectMake(0.0f, 0.0f,50.0f, 50.0f); and: myImage.bounds = CGRectMake(0.0f, 0.0f,50.0f, 120.0f); neither of those work. However, I find it interesting that ...

NSDate Problem

I have the following code below that is meant to change a class var called "today" forward or backward by one day. It will work one time but then after that it crashes. It will do the same no matter if I press the left button or right button. What am I doing wrong? the var today is a class var initiated as .. today = [NSDate date] Here...

Best way to use "Next" version of Return button on UITextField to move to next UITextField

I use the "Next" value for the "Return Key" to get the Next button in place of the Done button, but (obviously) pressing it doesn't automatically move to the next UITextField in my view. What's the right way to do this? On a larger topic, what are some tips for properly building forms in the iPhone SDK? ...

How to simulate touch event ?

as topic , I want fire touch event without user touch actions , does it possible ? thanks for your help in advance . Thanks . ...

Reading HTML content from a UIWebView

Is it possible to the raw HTML content of a web page that has been loaded into a UIWebView? If not, is there another way to pull raw HTML content from a web page in the iPhone SDK (such as an equivalent of the .NET WebClient::openRead)? Thanks in advance! ...

Rename a class in Xcode: Refactor... is grayed out (disabled). Why?

Why is Refactor... grayed out (disabled) in Xcode? I'd like to rename a class. ...

Nested UIScrollViews in [REDACTED] - Controlling Which View Gets the Touch

I have a paged horizontal scroll view which houses uiwebviews. Scrolling side to side triggers the container uiscrollview scroll. Scrolling perfectly up and down triggers the uiwebviews scroll. Anything less than a perfect up-down swipe cause the horizontal scroll to trigger. This is all out-of-the-box [REDACTED] code. What I desire...

UITableView scrolling crashes App

Preface: I am new to the iPhone SDK, Obj-C, Interface Builder and Cocoa. I'm likely doing something obviously wrong. Question: I have a UITableView which crashes if I scroll it. It will scroll a little to reveal the full cell of the bottom most half-hidden cell, but won't load the next one. Similarly, if I scroll past the top to fully...

Launching iPod App from Within Your Own App

Is there a way to open up the iPod app after pressing a button in your own app? Thanks. ...

Most efficent way to create a CALayer with an image in it?

I am wondering what the most efficient way is to make a CALayer with an image in it. I know you can load a UIImage and then call [image CGImage] but is this the best way of going about it? As far as I can tell from Apple's documentation this is the only way you can do it. ...

how to retrieve values from nsdictionary in iphone?

i am using a function to fill dictionary in a array here is the code -(void)getAllFlashCardsNames { if ([listofitems count]==0) listofitems = [[NSMutableArray alloc] init]; else [listofitems removeAllObjects]; for(int i=0;i<listOfCategoryId.count;i++) { int j=[[listOfCategoryId objectAtIndex:i]intValue]; [self getFlashCard:j]...

What's the easiest frame by frame animation technique in the iPhone sdk?

Hi, i've been developing for the iphone platform for about 3 weeks now, and I'm trying to set up a frame by frame animation with 16 1000x1000 png images (with transparency) and plan on animating with around 100 later, so first I tried using imageNamed to animate all the images like this -(IBAction)startClick1:(id)sender { clou...

Removing titlebar from 'Utility Application's flipside view

I've put a table on the flipside of my Utility Application template. The template automatically puts a titlebar with a done button to go back to the front view. When one of the cells in the flipside's table is selected, it brings up the Camera / Image Library picker. But it leaves the titlebar is position, partially obscuring the picker...

Using fonts that aren't on iPhone

I'd like to use some fonts that aren't part of the iPhone OS. I've seen games that use non standard fonts. I can install the fonts, create images for each one in Photoshop and then use those images in the iPhone app. However, I don't think that is a practical way to go. If the color or tint needs to be adjusted (because of background...

How to detect when a UIScrollView has finished scrolling

UIScrollViewDelegate has got two delegate methods scrollViewDidScroll: and scrollViewDidEndScrollingAnimation: but neither of these tell you when scrolling has completed. scrollViewDidScroll only notifies you that the scroll view did scroll not that it has finished scrolling. The other method scrollViewDidEndScrollingAnimation only seem...

Basic HTTP Authentication on iPhone

Hello, I'm trying to get a small twitter client running and I ran into a problem when testing API calls that require authentication. My password has special characters in it, so when I try to use the following code it doesn't work. NSString *post = [NSString stringWithFormat:@"status=%@", [status stringByAddingPercentEscapesUsingEncod...

iPhone app to perform HTTP GET and parse resulting XHTML

I am looking to develop a very simple iPhone app that will allow the user to enter data into two fields and then submit this data in an HTTP GET. I then need to parse the resulting XHTML to get at the data I need. What is the best way to go about this i.e. which of the iPhone SDK frameworks should I be concentrating on? Are there any Ho...