iphone

CGRect var as property value?

CGRect type is a structure type. If I want to define a property as this type, should I use assign or retain attribute for this type? @interface MyClass { CGRect rect; ... } @property (nonatomic, assign) CGRect rect; // or retain? or I have to write my own getter and setter? ...

how to find direction of device movement?

I am implementing one iphone application in which i want to find direction of device on movement.I dont know how to find.Can u help me for this query.Thnks in advance. ...

iPhone OAuth with formspring

I'm trying to authenticate with oauth for the formspring.me website using the oauthconsumer framework. I'm successful getting the request token (see 'getRequestToken'). I show them the authorization URL and have them authenticate. I don't see the callback url ever being requested in the webview (even though I believe I specify it with th...

dynamic texture compression

Is dynamic texture compression possible in iPhone? (3G or 3GS?) I create a UIImage dynamically each time the app runs. Can I dynamically generate a PVRTC file from it? ...

UINavigationBar and calculation of available screen area

CGRect fullWindowRect = [UIScreen mainScreen].applicationFrame; is an easy way to get the available rect, minus the status bar. With iPad/iPhones increasingly diverging in these basic system metrics I want to stop subtracting 44 to get the screen height when a UINavigationBar is in place. It is important for positioning things so that ...

Lua and a little Multitasking

I'm working on a small project for the iPad and I simply want to run a script that will halt after certain function calls and then let me resume the script from the same place later on. In fact I only do 'threads' one at a time in a queue so it's really only multitasking between the iPhone OS and Lua. static int yield__ (lua_State *L) {...

How to reset keyboard for an entry field?

I am using tag field as a flag for text fields text view fields for auto-jumping to the next field: - (BOOL)findNextEntryFieldAsResponder:(UIControl *)field { BOOL retVal = NO; for (UIView* aView in mEntryFields) { if (aView.tag == (field.tag + 1)) { [aView becomeFirstResponder]; retVal = YES; break; } } ...

iPhone contacts app styled indexed table view implementation

My Requirement: I have this straight forward requirement of listing names of people in alphabetical order in a Indexed table view with index titles being the starting letter of alphabets (additionally a search icon at the top and # to display misc values which start with a number and other special characters). What I have done so far: 1...

how to copy array?

I have four arrays as follows: toArray = [[NSMutableArray alloc] initWithObjects:@"to 1",@"to 2",@"to 3",@"to 4",@"to 5",@"to 6",@"to 7",nil]; fromArray = [[NSMutableArray alloc] initWithObjects:@"from 1",@"from 2",@"from 3",@"from 4",@"from 5",@"from 6",@"from 7",nil]; messageArray = [[NSMutableArray alloc] initWithObjects:@"message ...

want to extrac image from string url

I have the following image xml tag in which image path is stored NSString *imgstring =[[blogEntries objectAtIndex: blogEntryIndex1] objectForKey: @"image"]; now i want to display this image in UITAble cell by following method cell.textLabel.text=imgstring; i am just getting path on the cell not actual image how should i display ima...

Navigation Back Button Item Event in iPhone Application

Hi Guys, I am working on an iPhone application. Application has a navigation bar at the top. I have two views say "View1" and "View2". When you push "View2" view controller the navigation bar shows a back button with the title of the "View1" so you can go back to view1. Now my question is which event is fired when you click that button...

Iphone navigationalcontroller removing stack

How to remove Navigation controller from stack? When i push navigation controller it automatically get pushed into stack, after starting new navigational controller i want previous controller to get remove from stack. thanks in advance. ...

How i can open HTML page in my Native application?

i an new in this Field.I want to open static HTML page which i have so how can i open that page in my application. ...

UINavigationController back button problem

HEllo, I have a hybrid iPhone application that has a UITabBarController and 5 Tabs. Each tab hosts a UINavigationViewController initialized with a root controller that is a UIViewController hosting one UIWebView. On a certain specific link, I push a UITableViewController inherent on the navigation Controller (which shows some data store...

Building a titanium module with xcode that uses other libraries

I have a Titanium module and i want to use it for voice over ip using pjsip. I have changed the project settings the following way: added to the other linker flags the libraries from pjsip added to the header search paths the headers from pjsip added to the library search paths the libraries from pjsip If i do these things for a norm...

How to get last dialled number or call logs in iPhone Programmatically

Hi All, Can somebody help me in getting the last dialled number or call logs in iPhone Programmatically? Thanks in Advance. ...

zoomfactor value in CGAffineTransformMakeScale in iPhone

Hello, 1) I'm doing pinch zoom on the UIImageView , how should i decide upon the zoomfactor value, because when the zoomfactor value goes beyond 0[i.e negative value]the image is gettig tilted, which i dont want it to happen. how to avoid this situation. 2) Y is the flickring kind of rotationis happening, Y not the smooth rotat...

What is the optimal way to monitor changes in a directory with a kqueue()?

OK: I'm implementing File Sharing in an iPhone OS app, and of course this means filesystem monitoring. Yay! Basically, the OS copies and/or deletes from and to a directory I can access when the user manipulates files into my app's section in iTunes. Thus, I need to monitor the directory for changes presumably via an efficient mechanism ...

Objective C object by string name?

Is it possible to find the object named with specific string. For example i can use that in php $objectname="foo"; $foo="bar"; echo $$objectname="bar"; is this possible? objectbyname would a proper function for this. ...

NSArray runtime array

Hi, I have got I have got two methods both in different classes. One is class method and other is instance method. i am calling class method from instance method. When instance method finishes it gives runtime error "EXC_BAD_ACCESS". #import "xmlObject.h" #import "textmeAppDelegate.h" @implementation Class1 - (void)method1 { ...