iphone

where to get commercial or free icon for Iphone apps

Hello everyone I have developed a iPhone app reay to sale on app store. I hope add some customized icon rather than using standard iPhone app icon. Is there any resource? Thanks interdev ...

How to call other Controller nib in iphone?

Hey, I'm using the following procedure in my project to call any controller nib in my project on button click :- -(IBAction)referencewindow:(id)sender { frmReferences *reference = [[frmReferences alloc]initWithNibName:@"frmReferences" bundle:nil]; [self.parentViewController presentModalViewController:reference animated:YES]; ...

How to check Object At Index in NSMutableArray

Hi, I have a NSMutableArray, I want to insert data inside it, the problem is first I wanna check if the index where I'm inserting the data exist or not, but how to do that. I try something like that but nothing is working: if ([[eventArray objectAtIndex:j] count] == 0) or if (![eventArray objectAtIndex:j]) Thanks, ...

Keeping UINavigationController's navigationBar hidden after UISearchDisplayController selection

I have a UISearchDisplayController setup with a UITableViewController which is nested inside a UINavigationController. When a selection of a cell is made, UITableView's didSelectRowAtIndexPath method is triggered, which pushes a new view to the parent navigation controller. This new view should have the navigation bar hidden on entry. ...

Simulate mouse on Mac

Hello every one ! I have a virtual trackpad on my iPhone and to move my mouse I'm using : CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, CGPointMake(((float)aD.msg)+location.x, ((float)aD.msg2)+location.y)); It's working well but this not a real mouse because when I put my mouse on my hidden dock, this one doesn't display it self....

Is there anyway to get javascript error on android or iphone mobile webkit browser?

I have built a website for mobile webkit browsers, there is an interval update to refresh data. But it turns out that the pooling refresh will stop at some time after run for a while (some minutes or hours, different by each time). I thought there may be something error occurred in my refresh data functions, but it works well in my lapt...

iPhone memory leak and release problem on sorted array

Hi, I'm having some troubles with the code below: NSSortDescriptor *idDescriptor = [[[NSSortDescriptor alloc] initWithKey:key ascending:ascending] autorelease]; NSArray *sortDescriptors = [NSArray arrayWithObject:idDescriptor]; NSArray *orderArray = [array sortedArrayUsingDescriptors:sortDescriptors]; NSMutableArray *result = [NSMuta...

Accessing a global varibile in any class

Hey all i have been trying to figure out why i am getting this warning: 'TxtAppDelegate' may not respond to '-TCN' 'TxtAppDelegate' may not respond to '-TID' when i try to use this code: // .h file @interface RootViewController : UITableViewController <UIActionSheetDelegate> { NSString *theCompanyName; NSString *theID; } @prope...

number of elements in NSMutableArray

How to know at runtime how many array elements are there in NSMutableArray? ...

iphone movieplayer custom screen size

I tried this code for customizing the screen size.. But it works well this 2.2.1 but it doesn't work with sdk 3.1.2..Its showing some error as windows count beyond bound.. can anyone tell me how to this in 3.1.2. else is there anyother method to customise the screen in 3.1.2. plz help. thanks NSArray *windows = [[UIApplication sharedApp...

what is the context passed into drawLayer:inContext:?

In Iphone development, I want to draw context in layer. Then the question is: What exactly is the context passed into drawLayer:inContext:? Is it the layer's contents's context or the UIview's context? If this is the UIView's context, which UIView it is? Thanks in advance. ...

Strange NSURL behave: baseUrl is always set for a strange value

Hello, I have a strange behave: After making a few changes in my code, I got an unasked URL in the NSURL. Actually, this URL was valid in a test I made yesterday, but the system remembers this URL and I cannot changed it even in another app. When I strted a new app with the followung code: int main(int argc, char *argv[]) { NSURL ...

CGAffineTransformMakeRotation makes image border distorted in iphone

Hi, I am using CGAffineTransformMakeRotation to roatate my image that is palced in UIImageView. But I have noticed that when i move the image it makes the image border look blur and distorted. Below is my code for the same UIImageView1.image = [UIImage imageNamed:@"sample.png"]; albmImageView1.transform = CGAffineTransformMakeRotati...

Use two TabBarController

Hi, I want to use two different TabBarController. Everything is declared in my AppDelegate. Here is the result : TBC1Tab1 | TBC1Tab2 | TBC1Tab3 and then when I push a button my new TabBarController : TBC2Tab1 | TBC2Tab2 Each Tab is linked to a view. I use a button on my first tab to go to my second TabBarController with my new tabs. My...

Design cell make UITableView slow

Hi, Here is my problematique: I design my cell in my UItableView, so I added a title, a little description and an image. All thoses element are store in my database, so in my UIViewController I calculate every position to have a nice cell, if there is no image in a cell I change the position of the title and the little description. To ...

Storing texture name in objects - obj-c

I'm in the process of learning opengles / obj-c and creating an app for the iphone that will render multiple 3d models. I've created an object that stores all the important details such as vertices / faces / textures etc but I also want to store the texture name that is currently being used on the model. In my CustomModels.h file I have:...

Iphone store image (pitfalls ?)

I have an application that loads images from the net and stores it on the app's documents directory so when the users starts up the application and doesn't have internet they still can use the application. but my question is .. does the iphone controls that document directory ? does it clears itself after a certain period or after a c...

Can't update text in UILabel

I have created my ViewController from UIViewController where add UILabel as; @property (nonatomic, retain) UILabel* progressLabel; I initialize this label in loadView - (void)loadView { // Set main view to View Controller UIView* localView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame] ]; self.view = local...

curl down transition for adding an UIView to a superview

now sometimes things just don't work as expected. my UIView has a method to add itself to a given parent view like this -(void)showPanelInView:(UIView*)view { self.hidden = YES; [view addSubview:self]; [UIView beginAnimations:@"categories_panel" context:NULL]; [UIView setAnimationBeginsFromCurrentState:YES]; [UIView setAnimatio...

Three20 getting started

Hello! I have been trying to get started with the Three20 project in order to get to display some images the way they are implemented 'defaultly' on your IPhone. So far, documentation for it is poor and I have had problems to get it working - are there any good beginner's hints on how to use it? Searching for tutorials did not help to...