iphone

three20 - loading external Data for TTViewController

Hi, i created a TTViewController that should show some Informations from a external (web) source. i already worked with some TTableViewControllers where i used the TTModel System (i created a TTURLRequestModel and a TTListDataSource for my TTTableViewControllers) whats the way to do this with a TTViewController? is there also something...

Socket not working for iPhone SDK 3.0+

Hi, My code was working absolutely fine before the launch of iPhone SDK 3.0 , I am using socket functions to send data and receive data. What changes must i make to make it compatible for 3.0+. -(int)InitSocket:(int)nPort: (NSString*)sServer{ if(sServer == nil) { return -1; } m_nPort = nPort; sServerAddress = sServer; const char...

Unrecognized selector sent to instance on UIViewController

I've got a really annoying problem, and as much as I've searched, I can't find the answer. My app is terminating when I try to view a TableView. The data source and delegate is set to the File's owner, which implements the protocol. The error I'm getting looks like this: [Session started at 2010-02-27 16:28:24 +0000.] 2010-02-27 16...

Compass spinning javascript problem with angle - rotate/translate

Hi i'm building a compass for the iphone, duh, just for experiment purpose and to learn how to do it, in javascript, with phonegap. now i'm already able to get the degrees, i was able to apply the deg 0-360 to a div (let's call it the "wheel") using the webkit-transform translateZ (or i could use rotate) but i have a bug: when the w...

Hard crash using [NSDecimalNumber stringValue]

Hello, My app crash when I try to access any property of my NSDecimalNumber amount_before_current_year: [amount_before_current_year stringValue] Program received signal: “EXC_BAD_ACCESS”. The object is a NSDecimalNumber as shown in the image attached. I created it in the viewDidLoad, it exists in the header file: .h ... NSDeci...

How do I set an array with another Array?

@property (nonatomic, retain) NSMutableArray *filteredListContent; ---- @synthesize filteredListContent; - (void)applicationDidFinishLaunching:(UIApplication *)application { NSMutableArray *test = [[NSMutableArray alloc] init]; [test addObject:@"test string"]; [filteredListContent addObjectsFromArray:test]; N...

UINavigationBar BarButtonItem with Plain Style

Hi, i got the following code: - (id)init { if (self = [super init]) { self.title = @"please wait"; UIBarButtonItem *favorite = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"star.png"] style:UIBarButtonItemStylePlain target:self action:@selector(buttonFavoriteClicked:)]; self.navigationItem.rightBarBut...

iPhone & iPad - how to include frameworks in a project with two targets

I have a project that was developed for iPhone OS 2.0. I am transforming this project to have two targets (iPhone & iPad). This will not be a universal binary. It will have two different binaries. In the old project, if I right click on a framework and choose REVEAL IN FINDER, I see the framework is a 2.0 one, for example, UIKit is lin...

iPhone How to modify the data contained on the Persistent store using Core Data

Hello, I'm stuck trying to figure out how to modify the data contained on the persistent store. I'm writing an application with several views using a tabBarController, my core data methods are located mainly on the main application delegate but I will only be using this data from the tableViewController view. In order to use the manage...

Image processing without openGLES

I want to implement image processing without using openGLES and having this functionality: Brightness Contrast Saturation Hue Sharpness How can I do this? ...

Dismiss modalviewcontroller with a page curl

Hi, I am trying to dismiss a modalviewcontroller with a page curl. The curl works okay but I cannot seem to get the tableview under the modalviewcontroller to show up. The image of the modalviewcontroller is still under the curled away page. If I dismiss the modalviewcontoller before the animation finishes the animation doesn't show up. ...

Data not loading in Detail View

Im trying to get my data to load in my detail view. Can any one take a look and see why it isnt showing? It loads fine in my rootviewcontroller, just not the detail view. DetailViewController.m #import "DetailViewController.h" @implementation DetailViewController - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarni...

UISlider, knowing thumbImage position

Is there a way to display the Slider value over the ThumbImage? I was thinking of getting the X position of the ThumbImage and then moving a UILabel accordingly. Is that possible? ...

How do I get Attributes from Core Data into an Array for - iPhone SDK

Hi All, I'm trying to retrieve data from Core Data and put it into a Mutable Array I have an Entity called 'Stock' and in Properties, attributes called : code, price & description... How do I get the data stored in these attributes into a simple Mutable Array? I've added this code... NSMutableArray *array = [[NSMutableArray alloc]...

Can someone explain to me the memory management issue going on here...

Ok, I have an iphone program that is simply a tableview using the CoreData to load, I have added a simple data loading class that is passed the NSManagedObjectContext, reads in the data from a file I want loaded into the database, instantiates objects using the managedObjectContexts as needed, loads them with the data read in, and then ...

iPhone SDK - How to draw a UIImage onto another UIImage?

I have several rectangular images (in landscape and portrait mode) and want to draw them onto a transparent square image, so that all images became the same size without cropping them. How would I create a transparent UIImage and draw another on top? Thanks for any hints. ...

Can I programmatically fire the "switch to number pad" button on iPhone keyboard

I want to find a way to programmatically fire the selector that causes the iPhone keyboard to switch from letters to numbers. I am aware that I can switch the keyboard type, but I want to know if there is a way to do this without switching the keyboard type. ...

Weird UIPickerView bug

Here is a picture of the main view for an app I'm making, the thing at the bottom is supposed to be a UIPickerView. I have the UIPickerView view controller in its own .h and .m files, separate from the main view controller's. could this be the problem? here is the code that (should, I pretty much copied it from a tutorial) populate th...

Customized NavigationBar not displaying correctly after return to Tab

I've added a few components to the NavigationBar in an app I'm creating. The height of the bar changes dynamically, like in Safari for the iPhone, when you click on the URL field. I have all of the interactions and resizings working perfectly, except when I move to another tab and return. If I start the app, click on second tab the navb...

Why do my xcode builds always go to the iPad simulator instead of the iPhone simulator?

I just installed the latest SDK from Apple so I can start learning iPhone / iPad app development. However, I'm having a stupid issue: all my builds get run in the iPad simulator instead of the iPhone simulator, and I have no idea how to change it. ...