iphone

Trouble with OADataFetcher on iPhone when using URL Encoded strings

Hi All I'm using OAuth/xAuth in an iPhone twitter app, and having a problem with passwords that contain special characters. For example "password&". First off, I am converting the & into %26 by doing: NSString *encodedPassword = (NSString *)CFURLCreateStringByAddingPercentEscapes( ...

NSOperation, Synchronous NSURLConnection, & UIWebView on iPhone

Hello Gentlebeings, I have a weird issue. Here is the setup: I have a NSOperationQueue which I add NSOperation subclass objects to. These do networking using NSURLConnection sendSynchronousRequest method. As I understand it, these are completely asynchronous, since they are NSOperations which each get their own thread. If I launch my ...

iPhone: How to Pass Data Between Several Viewcontrollers in a Tabbar App

Hello guys, I have following problem: I have built a tabbar application with 4 tabs. I want to pass a object/variable from the first tab controller to the third one and initialize this controller with the corresponding object. I've already done some research. The best way, corresponding to a clean model approach, would be to call som...

Is there a way/tool to check memory leak of Cocoa Touch project?

Hello everyone Is there a way/tool to check memory leak of Cocoa Touch project? or I need to write the codes by myself. Thanks interdev ...

iPhone: View that is a Property Fails to Appear after Adding a @synthesize Directive for the Property.

I have a mainwindow.xib which has a tabbar controller. The first tab bar has a view, that loads from "View1.xib". In my View1.xib, I drag the UI element on it. It has this in .h: #import <UIKit/UIKit.h> @class View1Controller; @interface View1Controller : UIViewController { IBOutlet UIView *view; IBOutlet UIButton *startButton...

Xcode and the iPad simulator

Hi - I have just installed Apple's SDK 3.2. When I run the iPad simulator Safari doesnt appear in it. Can anyone help? Any help much appreciated. ...

Multiple view controllers with their own xibs, and when they load

Going through many tutorials and with the help of everyone here, I am trying to wrap my head around using multi view controllers with their own xib files. I have one example where there is a : multiViewController and two others: aboutViewController, rulesViewController. In both aboutViewController.m and rulesViewController.m files, I...

Audible Click when pitch shifting in OpenAL

I am using OpenAL to pitch shift a note. e.g. alSourcef(source, AL_PITCH, aPitch); I am noticing however an audible click when I do this. Other than that the pitch is perfect, correct pitch etc. Any ideas what might be causing this? ...

OBJ-C: Core-Plot XY-Axis Fixing

I want to fix the axes so that they are always to the left hand side and bottom of my plot space. My current implementation is not enabling userInteraction so no need to worry about scrolling. // Setup plot space CPXYPlotSpace *plotSpace = (CPXYPlotSpace *)graph.defaultPlotSpace; plotSpace.allowsUserInteraction = NO; // Axes CPXYAxisSe...

iPhone Static Library Code Signing Issue

I have a static library (SL) that can be build with "Debug" as the active target but not with "Distribution". I have set "Don't code sign" in the "Edit Project Settings" window but still get an error saying that the SL cannot be code signed. Isn't that strange? I'm using Xcode 3.2.1. Has anyone had the same issue and knows how to resolve...

iPhone SDK: Core Data

Probably a silly question but I cannot find a way to do it. I am developing an iPhone application that uses Core Data for it's storage. At one point I want to loop around all the objects in the store and perform and action on them. Is there an easy way to do this? I've tried all manner of for and while loops but can't seem to get anyth...

A better UIAlert dialog

I have seen several apps that display some form of alert which sometimes require user entry or displays some type of information. Anyway, judging by the designs of the "alert", I would assume they are using something else to display these. My first guess was some form of view but I see that they are smaller in size and are centered in ...

Objective-C: How to replace HTML entities?

Hi, I'm getting text from Internet and it contains html entities (i.e. &oacute; = ó). I want to show this text into a custom iPhone cell. I've tried to use a UIWebView into my custom cell but I prefer to use a multiline UILabel. The problem is I can't find any way of replacing these HTML entities. ...

Every time I add a Ad Hoc app to my iTunes replaces my other ad Hoc app

Hello, I don't know where to look for about this problem ... I have three Apps, and when I want to add to iTunes, I can add the first one. When I want to add the second one, it says it exists and if I want to replace it ... Sure there must be some unique name or id, but I can't find it ... I have a valid: Developer certificate Dis...

Ideal sqlite database design

I am relatively new to db design, so any help here would be appreciated. I am working on developing an iPhone app, and keep getting stuck, so I'm thinking my database design is junk. In my app, I have basically three items I need to pull from a db. A book title value, a chapter number value, and a segment content value(comprised of a num...

Monotouch MapKit - annotations - adding a button to bubble

Hey Anyone know if there's anyway to get a button onto an annotation? I'd like the location to be selectable - so you can say.. select the location and get all the events at that location by clicking on the button. is this possible? w:// ...

PHP variable to Xcode variable

how can i get an integer variable from PHP page and save it to the integer variable in my program... USInteger *number = an integer variable from PHP page... ...

iPhone: [super viewDidUnload] calling order

Hi, I would like to know if there is any difference between calling [super viewDidUnload] before realeasing properties or after it. Thank you! self.webView = nil; self.fullText = nil; [super viewDidUnload]; or [super viewDidUnload]; self.webView = nil; self.fullText = nil; ...

TableView Datasource must return a cell, check code

The debugger threw me this error UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath: this is my code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = nil; NSString *text = nil; NSInteger secti...

UITableView insertRowAtIndexPaths then scrollToRowAtIndexPath draws cell twice

Hi I'm inserting a new cell into my table that I know will not be visible (I know it's off the bottom of the screen), so I then call scrollToRowAtIndexPath, e.g. [tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:myIndexPath] withRowAnimation:UITableViewRowAnimationBottom]; [tableView scrollToRowAtIndexPath:myIndexPath atScroll...