iphone

Iphone App store - Verifying paid customer

I have an idea for an iphone App whereby a level of credit-based after sales service would be included in the initial purchase price. This would be dependant on being able to verify that the person seeking to register for the credit could be verified as a paid up buyer of the application. Is there currently any way to tie a person to a...

iPhone SDK 2: UIButton not working in nested views loaded from nib file

I have a button in a Nib based view which does not behave like a button (the target method is never called). I have tried to dynamically add the button but it doesnt help. I will try to describe the app structure (as I suspect it might be causing this issue) and I may not be using the right design pattern. View A is tied to Controlle...

UINavigationBar title and a right button

Hi, I have a navigation controller and in it a view controller: -NavigationController1 --MyViewController And as well I have another navigation controller - NavigationController2. I want to call MyViewController from another view controller - ViewController2, that was pushed into NavigationController2. -NavigationController2 -...

fill UIView with large sized text on the iPhone in Landscape

Hi, I have put my iPhone app in landscape mode and I want to put a message in one of my views that fills the screen. As of now a 6, 10 or 12 character message only goes up to about 12 point font in portrait view in interface builder. When I build and the iPhone simulator switches to landscape the font size stays the same as in portrait...

Show or Hide a UIButton in iphone app with obejctive c

Hi All, I am using UITextView to edit text. I want to use two buttons Edit and Save. Initially i want to show edit button, when the user click on edit i want to show save button. when the content successfully saved i dont want to show save button any more. I am a c# coder, in c# i used to do like this C# code btnedit.visible=true; ...

Why isn't my UILabel being changed?

Why isn't my UILabel being changed? I am using the following code, and nothing is happening: - (void)awakeFromNib { percentCorrect.adjustsFontSizeToFitWidth; percentCorrect.numberOfLines = 3; percentCorrect.minimumFontSize = 100; } Here is my Implemintation code: - (void) updateScore { double percentScore = 100.0 * va...

iPhone API get local device phone number

Does anyone know how I can get the phone number of the device I am developing on so that I may use it in my app? ...

How do you URL-encode the @ symbol in the iPhone SDK?

Using stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding to URL-encode an NSString isn't encoding the @ symbol. What's the proper way to resolve this? Thanks. ...

Overriding highlighted selection in UIPickerView

I have a custom UIPickerView where I use: -(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view to populate the picker with UILabels. Is there a way to disable the behavior of highlighting the selected row when touched? I think this is a prop...

Switch single view based application view on iPhone

Hi, I have a simple view based application. I want to switch this original view for another view when I push a button on the original view. I do not want to use a navigationviewcontroller, or switchviewcontroller, I simply want to swap the root view for another. Thanks, Joe ...

How to do: Shake your iphone to refresh feature

Hi All, I want to know, how to implement shake to refresh feature. For example, facebook app, they dont have refresh button, on shaking the phone it refreshes the data. i want to include it in my app. but i dont know what is the name for this feature and how to implement it. can any one help me with this. thanks ...

Using NSPredicate to filter an NSArray based on NSDictionary keys

I have an array of dictionaries. I want to filter the array based on a key. I tried this: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(SPORT == %@)", @"Football"]; NSArray *filteredArray = [data filteredArrayUsingPredicate:predicate]; This doesn't work, I get no results. I think I'm doing something wrong. I know th...

[iPhone] Displaying a new view when selecting a row in a UITableView

I have an application with multiple views. I can click on different buttons to select different views, one of which displays a table. When I select a cell on that row, I want to display a new view. I see a log line indicating that view was loaded, but the screen doesn't change. - (void)tableView:(UITableView *)tableView didSelectRowA...

What is the best approach to embed mp4 for the iPhone without using JavaScript?

I am trying to troubleshoot this code and am running into a dead-end, so I thought I would ask my first question here. I have three questions: 1) What is the best approach to embed an mp4 for an iPhone specific view, preferably without using Javascript? 2) Are there any preferred practices to debug code on an iPhone? 3) Can anyone tel...

Make a UITextView selectable but not editable?

Hi, I am implementing a custom keyboard in my app. The thing is, I want to make it selectable so I can use the selectedRange property to get where the cursor is at. However, the only way to allow the user to select text in a UITextView is to make it editable, which brings up the keyboard. Is there a way to hide the keyboard, or place a ...

NSThread Error

I have two uiviewcontrollers. I am using NSThread in first viewcontroller and its works perfect.. Some times the thread was running in the firstviewcontroller, that time i Want to go Secondviewcontroller.This action stops my thread of firstviewcontrollr.. How could i fix this... Can anyone help me? Thanks in advance ...

switch between uiviews with buttons and not uinavigation controllers

I have seen the post for http://stackoverflow.com/questions/584892/how-to-switch-views-by-buttons-on-iphone but this doesn't answer how to switch back and forth between views with buttons. The person that asked the question settled on the answer that they could switch between views with uinavigationcontroller. I put the following code...

webpages slow on iphone and blackberry

One guy mention how sites with 'crap' run slow on iphones and blackberries. What is the 'crap' he is talking about? what makes it slow? There was a severe pause on his phone when he showed me an example site. ...

UIImagePickerController in iPhone OS 3.0

Hi all, I am using iPhone OS 3.0 SDK. My requirement is that I want to get the image from the photo albums library and display it on an image view. I am using the "UIImagePickerController" for that. But the problem is the "- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)imageeditingIn...

Logging into a corporate captive portal with a native iPhone app

I am working on a native iPhone app that needs to be able to automatically (in the background) sign into a captive portal on a company's large WiFi network before accessing the net. The captive portal is a simple HTTPS page with username and passsword form that authenticates then allows access to the Internet. The hope is that the user...