iphone

How do I display my info view in my iApp

I am writing my first iPhone App, a test case before I write my life saving app to help me learn how things are done on this platform. So I used the standard ModelViewController widget and created my app. I put my UI on the default view and added all the glue code in the ViewController.m/.h files: event handlers, IBOutlet mappings to c...

uiwebview baseurl directory

hi, I have a directory images with lots of sub folders. 100,101 etc., How should my img tag and the uiwebview's base URL should be ? img href="/101/1000/238.jpg" /img ?? ...

UISearchBar and resignFirstResponder

I have a very basic UITableView with an attached UISearchBar, and here's the flow of what happens UITableView is empty, user taps UISearchBar, and brings up keyboard. Once the user taps the Search button - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar { [searchBar resignFirstResponder]; //move the keyboard out of the...

iPad - iPhone Large UIActivityIndicatorView

I need to make a large spinner (with grey style, about 80x80px) but it looks low quality. Is there a way to make it high quality or to replace the animated image? ...

setting multiple UITextView's to editable causes cursor to blink between them

I'm attempting to set the UITextViews in a set of UITableViewCell's to editable when the user taps the "edit" button for the UITableView. Each UITableViewCell has a UITextField (cell.blurb). This code will set each UITextView to editable, however, the cursor alternates very rapidly between each one. I'm pretty sure it's a responder ch...

How do I make UITableViewCellAccessoryDisclosureIndicator visible in orange color instead of gray color?

Hi, without Creating any of the uibutton(custom button with background image)in tableview cell. I want to change the accessory indicator color from gray to orange.What should i do for that... plz reply as soon as possible(plz answer me clearly or else i can't understand)... i'm waiting for ur reply... Thank u... ...

Right tool for the job: CoreAnimation, Cocoa Animation, or OpenGL ES?

I am relatively new to doing graphics work on the iPhone and was hoping to get some guidance on which technology I should employ. The issue I am facing is that I need to create an iPhone app that will have a spinning wheel in it, think the Price Is Right wheel. I am not looking for anyone to provide a detailed solution, that would spoi...

How to access subclassed UIView's properties?

Hi. I'm having problem accessing the usual properties like frame, bounds, origin, size, etc etc. Within my subclassed UIView, I'm trying to edit the frame/bounds when the user presses something. I keep getting this error 'frame' undeclared (first use in this function). EyeView.h #import <UIKit/UIKit.h> @interface EyeView : UIVie...

Are IBOutlet properties required to be nonatomic?

Getting up to speed with Cocoa iPhone/Mac development, I know the difference between atomic and nonatomic properties, and the performance difference with nonatomic, but every definition of IBOutlet properties I've seen specifies nonatomic, over the default atomic. I've not been able to find an explanation of whether this is a requirement...

iPhone - Creating a custom TableView programmatically

Hi, So I've got a custom tableviewcells set up programmatically. I have 4 classes of custom cells, one custom cells for one section. But i don't know if it's wrong or not : - (UITableViewCell *)tableView:(UITableView *)TheTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *ShopsIdentifier = @"ShopsIdentifier";...

When resizing a UIView to height or width zero, springs and struts stop working permanently

I'm trying to workaround a long-running bug in Apple's SDK here, but I can't see how to achieve it without huge amounts of code. Here's the bug: Create a view. Put another view inside it, with an origin ANYTHING except (0,0). Configure the subview to resize to fill ...then, at runtime: 4. Set the superview size to zero 5. Set the su...

How do you display a browseable list of images obtained from an RSS feed?

I have a requirement to grab images from an rss feed and display these images in much the same way as browsing your picture library and I really dont know where to start first. I can get tutorials on the rss reader but I really dont know the component to use to allow the user to "swish" through the images on screen Any help much apprec...

Switching views - iPhone development

I need help figuring out how to change out the view in my application. I have a wonderfully working view that I have finished and now I'd like to be able to switch the view to a brand new, blank white screen to display. I have these files: HelloAppDelegate.h, HelloAppDelegate.m, HelloViewController.h, and HelloViewController.m Then, I ...

Questions about recreating the "Add Alarm" form in the iOS Clock app

Hello. I'm diving into iOS development and am building my own alarm app to become familiar with the SDK. My questions are... I've played around with UITableViews a bit, but I don't understand how I would implement the table at the top half of this form. If I had to guess, I would say it's a single UITableView, defined with one sec...

catch objective-c loadRequest loading blank page

How would one catch loadRequest returning a 404 page, i am calling the load request like so: [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:qype_url]]]; can't seem to figure out how to catch what it returns so i can deal with this situation and load an error page. If the url is incorrect a blank page is return...

App freeze and then crashes on splash screen

Hello guys, I have an iPhone App published for a while, developed under the SDK3, and everything works great. Some weeks ago, when Apple released the SDK4 I made some changes to my app to support multitasking (it plays audio in the background). In my simulator and my device (iPhone 3GS iOS4) the app runs great, there is no problem at ...

Getting exception as "Collection was mutated while being enumerated".

Hi Guys, I am getting the Collection was mutated while being enumerated exception when I am using this code can any one suggest me how to get out of this. PaymentTerms * currentElement; for (currentElement in termsArray) { printf("\n currentElement Value........%s",[currentElement.days UTF8String]); printf("\n Str value...%s",[...

UIImage and UIImagePicker and UIImageView

I have a UISegmentedControl and I have some photos, my initial aim is when ever I click on a particular segment one particular image should appear on the view. For example: If i have four segments and four images then upon each segment I click I must see a image. Here I have taken an NSArray and Uploaded all these images using this par...

Should I verify objects inside Foundation API containers?

In languages like C++ and C# when you create a contain such as a std::vector or a C# list you explicitly declare the container type when you create it: C++: std::vector<MyObject> C#: List<MyObject> list = new List<MyObject>(); Looking at the code above, I know immediately that these containers can only contain objects of type MyOb...

UIScrollView not showing

I have a simple ViewController that looks like this: @interface MyViewController : UIViewController<UIScrollViewDelegate> { UIScrollView *scrollView; UILabel *label; } ... @property stuff ... Now, what I'm trying to do with this Controller is have a ScrollView handle a really large label of text that I have. So in the viewDidLoa...