iphone

Appcelerator - Newbie in the mix!

Hi guys, Quick one for any developers using appcelerator out there. I have two labels (This may even bew wrong) which are populated from an RSS feed. One label houses the title and another the description. The content for these comes from an RSS list which all works fine. THe issue I'm having is that some titles are longer than others s...

iOS 4 web app viewport scaled in landscape

Hello, I have trouble with Safari included in iOS 4. I created application which should have same scale in portrait and landscape mode. However, iOS 4 zooms the viewport when changing from portrait to landscape orientation, although I included following viewport meta tag: <meta name="viewport" content="width=device-width, initial-scale...

Implementing Granular iPhone Push Notifications?

I've been trying to figure out the best way to go about implementing granular push notifications for specifying the type of alert notifications that members will receive. I haven't been able to find details about this on the Apple docs. This is a two-parter: 1) Similar to the Facebook app, I'd like to allow members to turn on/off certa...

iPhone app, running other code while flipping a view

In xCode, writing an iPhone app, should I NOT put code after/while flipping a view? I seem to get random crashes.... { FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideView" bundle:nil]; controller.delegate = self; controller.modalTransitionStyle = UIModalTransitionStyleFlipHor...

grabbing data from an internal file

I'm grabbing data from an external file using NSURL with the code below. If i wanted to grab this data from an internal file in my resources folder how would the code be different. here's the NSURL code: NSURL dataUrl = [NSURL URLWithString:@"https://sites.google.com/site//*/file.asc"]; NSString *fileString = [NSString stringWithConte...

Making an in-app settings page (iPhone)

Hi, I am making an app which needs a settings page. Which will be a different class, so how do I pass data from one class to the other? For example: There is a UISwitch on the settings page, and I need to see what option the user selected for another class. Thanks. ...

How can I resize a UITableView header?

self.headerView.frame = CGRectMake(0, 0, 320, 167); //this is a UIView doesnt seem to do anything. everything is hooked up in IB. ...

Avoid flicker when moving annotations in a MKMapView on iPhone

As far as I know, there isn't a way to move an annotation without removing & readding it to the MapView (Maybe I"m wrong?). Is there a way to prevent the MapView from being redrawn between removing & readding the annotation? Right now the redraw after removing the annotation causes a frame without the annotation, so it appears to flicke...

MonoTouch - XIB or not to XIB?

I am deciding on where using .xib files are needed while developing with MonoTouch. My current project needs to work with iPhone and iPad, so I'm wondering if even using Interface Builder is worth it. I already have to remove some designer files so that 2 different views (one for each device) go to the same controller. I also am the o...

Calling a Method from a different Class - iPhone SDK

Hi all, I am trying to call the method "foo" which is in the class called "fooClass". In another class i have my appDelegate and I want to execute the method foo in applicationdidfinishlaunching. I have imported the class "fooClass" into the appDelegate header file and I did initiate it in applicationdidfinishlaunching with this: "fooC...

Problems setting background for grouped UITableView

I want to have a background image behind my UITableView. This works fine, but for each grouped UITableView it seems to be using my background image. I just want it to use the background image once: Note: This is all inside of a UITableViewController class self.view.backgroundColor = [[[UIColor alloc] initWithPatternImage:[UIImage image...

how to ask an array if an object is contained?

how can i ask an array if it contains an item and if it does it to [[NSArray alloc] initWithObjects:@"those objects" automatically. this is my fav .h @interface FavoriteViewController : UITableViewController { NSMutableArray *favoritesArray; NSMutableArray *didContain; } @property (nonatomic, retain) NSMutableArray *favoritesArr...

How to Include Chipmunk libraries to iPhone Xcode project?

[SOLVED] I copy the chipmunk folder structure from cocos2d+chipmunk template and build OK. Classes/Chipmunk/include/src for 'src' folder Classes/Chipmunk/chipmunk for 'include' folder Thanks to Beta for trying to help. ::::: I download chipmunk 5.3.1 and try with a simple example but I receive this compiled errors: Undefined symb...

What to learn after learning Objective-c for iphone programming

Hi im im learning objective-c so i can program for the iphone and ipad. What do i learn next? cocoa? and then what else if any of you are developers please give me a list of what i need to learn Thanks :) ...

Retractable UITabBarController / UINavigationController

I'm looking to implement something similar to the Mashable app article view. When clicked through to read an article and begin to scroll down the Navigation controller slides up off screen and the Tab bar controller slides down. I'm open to other suggestions but the goal here is to not see the tab bar controller while in the article vi...

UIActivityIndicatorView Trouble

This is a bit of a silly question but I don't know how to get around it. I am making an iphone app and I am just trying to display a progress wheel while my UITableView is loading. I try to test if the view is loading but I get an error: 'request for member 'loading' is something not a structure or a union'. So, I'm not sure how I am ...

UIPickerView with variable/dependent second column

I am trying to have a UIPickerView where the second column will depend on what's chosen in the first column. For example: Suppose the first column has the fruits Apple, Orange, Pear. If i select Apple in the first column I want the second column to list (Fuji, Granny Smith, Red Delicious). For Orange I want the second column to become ...

iPhone GPS Accuracy

Hi everyone, as I am developing for iPhone, I've just bought an iPhone 4 to test my application which needs to measure the coordinates of my location. I don't have any Internet (3GS, GPRS or whatever...) on my iPhone and the problem is: 1) Without internet I get a 1744m horizontal accuracy, and that's very bad. (I've also tested the acc...

Accessory View out of visible range of UITableViewCell

I create custom UITableViewCell and just put the Accessory Type to Disclosure Button cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; But the half Accessory is out of the View on the right border of the screen. Sadly, but I can not post a screenshot because I need 10 posts to do that. I searched everywhere but I d...

Problem setting base sdk to 4.0 and OS Deployment Target to 3.1.3 (Using MapKit)

Hi, I'm building an application that uses MapKit functionality. The base sdk is 4.0 but I'm building to a 3.1.3 device (the OS Deployment Target is set to 3.1.3). After the app is installed and right when it begins to run, I run into the following error: dyld: Symbol not found: _CLLocationCoordinate2DMake Data Formatters temporarily un...