iphone

find iphone device id from web request

Hi is it possible to find the device id on a web server if a page is viewed from the iphone/ipod touch browser ...

can anyone send me some good links on cocoa touch framework ?

I am new to iPhone application development so that i want to learn cocoa touch framework. As i want to read on cocoa touch framework if anyone can help me to find some good resources to learn the framework as ebooks tutorials and videos it will be very useful to me . ...

What are the "gotchas" when developing an iPhone Game?

Am used to developing business and reference apps. Now I have to do an iPhone game. What tips can you share to help me with: understanding the scope of the project defining the deliverables specifying the game play and other parameters estimating the development effort testing the game A big question, I know. Thanks! ...

CGLayer appearing the wrong way around

I've got a UIView subclass (TraceView) which is 200 wide by 100 tall, and I'm attempting to draw on it pixel by pixel. In this case, I'm trying to draw a horizontal blue line that goes 75% of the way across. Instead, I get two vertical blue lines (one at the edge, one in the middle), that go 75% of the way up. It seems like the CGLaye...

Core Data Fetched Properties to rank connectivity between Objects

I want to rank how strongly connected instances of Entity A are to other instances or Entity A are in my graph.I only need to do this for the n most recently viewed entities. I describe relations between two instances of Entity A by means of another Entity B. This is because I need to describe each relationship. I was considering using ...

How do I get the filesystem path for a resource on iPhone?

On the iPhone I need to get the path for the resource. OK, done that, but when it comes to CFURLCreateFromFileSystemRepresentation thing, I just don't know how to solve this. Why does this error occur? Any solution or workaround would be highly appreciated. Thank you in advance. I have taken a look at the following examples in order to ...

Disabling Keyboard

How to Hide Keyboard by pressing Returnkey ...

What is "Attempt to lookup host entry for bad IP address" error?

Hi All, Check this error and please help me. 2009-07-24 15:58:34.209 LBS[2636] Host 'staging.common.virtualearth.net' not found using 'gethostbyname()' - perhaps the hostname is wrong or networking is not set up on your machine 2009-07-24 15:58:34.209 LBS[2636] Attempt to lookup host entry for bad IP address (staging.common.virtualearth...

?examine a response while webView:shouldStartLoadWithRequest:naviagiontType... waits?

iPhone/objC I'm really stuck here and I could use some help, please. Let me first explain some things: I have an UIWebView which loads an url. once the user clicks a link - (BOOL)webView:shouldStartLoadWithRequest: navigationType: gets a message (according to the protocol). Inside this method I can decide if the url should be loaded ...

Core Data simple relationship in code

Hi, I am a cocoa newbie trying to create an iPhone app including Core Data. My problem is this: I have a little app running now with a single entity called Playlist that I display in a table view and can add and delete entries in. I have these in my PlayerAppDelegate: playlistManagedObjectModel playlistListManagedObjectContext play...

MPMoviePlayerController will play once, then throw an error

Hello, I realise that a similar question has been posted before, but I really can't seem to find a solution that works for me. I have a MoviePlayer class which stores an ivar of MPMoviePlayerController, and I have the following method in the class: -(void)playMovie:(NSString *)movieName { NSURL *movieURL; NSBundle *bundle = [NS...

How is the relation between UIView's clipsToBounds and CALayer's masksToBounds?

A UIView has a CALayer. That's pretty sure. But both seem to provide something that means the same thing. If I'd set clipsToBounds=YES, would this also set the layer's masksToBounds=YES? Why different names? Anyone knows? ...

How to stop UITextView from scrolling up when entering it

Hi, I have a UITextView included in a UITableViewCell. The layout is correct when the views are initially displayed, but once I click in the UITextView it automatically scrolls up a bit and the top half of the characters on the first line becomes invisible. This image is when the UITextView is not active: And this one is when I clic...

IPhone SDK: Wrappers, Delegates, and Data - OH MY!

I'm writing a wrapper for another library and I would like to know the BCP for receiving the data returned via the delegate and returning that response to the instance that called the wrapper object. // Original_Instance.m BOOL example = [wrapperInstance getSomeData]; // Wrapper_Instance.m [self thisWillReturnDataToTheDelegate]; retur...

indexPath.row is returning null in tableView didSelectRowAtIndexPath

indexPath.row returns null in tableView didSelectRowAtIndexPath:indexPath I thought it was supposed to return the row selected. When i look at indexPath in the debugger it (corectly) returns: "2 indexes [0, 0]" Am I missing something? ...

iPhone - fopen and pathForResource - Permission denied

I've tried to open a file directly like fopen("/test.txt","w+"); it works on the simulator but doesn't work on the iPhone. Then I've tried this: NSString *path = [[NSBundle mainBundle] pathForResource: @"GirlName.txt" ofType:nil]; NSLog(path); fichier = fopen([path cStringUsingEncoding:1],"w+"); if (fichier != NULL) { ... } else {...

UITableView pushViewController On Selecting a Row

Hi all, I'm building an iPhone app with a UITableView. On selecting a row, I'd like a UIWebView to be pushed in loading a specific URL. I currently have: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSDictionary * story = [stories objectAtIndex:[indexPath row]]; NSString * storyLink =...

Creating an alternative way to scroll TableView on iPhone

I currently have a TableView with over 35,000 cells. Obviously the standard iPhone flick-and-scroll becomes inefficient with this many cells. I have already implemented search but still think that a way to scroll the entire table is necessary. I am currently using the -sectionIndexTitlesForTableView: method to populate the side wit...

Animating dynamic buttons in iPhone SDK

I'm dynamically creating UIButton's in my app. When I show the buttons I want to animate them. I can't seem to get the buttons to animate with this code: UIImage *buttonBackground = [UIImage imageNamed:@"ButtonRed.png"]; for (NSInteger x = 0; x < 4; x++) { CGRect btnFrame = CGRectMake(x * (buttonBackground.size.width+2), ...

iPhone - Custom Class Won't Access Method

I'm trying my hand at some iPhone programming and I've run across something that may be fairly obvious to veterans but I'm not exactly sure why it's happening. I have two UIViewController classes, and I want to access a method from the other class. I have two NSObject classes associated with both of them in IB (with the Class file as U...