iphone

JQTOUCH - Anytime loading occurs, add a loading class?

Hi, I'm using JQTOUCH and in JQTOUCH several of the links are being loading via AJAX and then sliding in. The problem is that there is no loading indication provided to users. I'd like a way to add a Loading class with an AJAX spinner, when ever the an ajax call is loading, and have the class removed when the loading is done, and the pa...

iPhone: UILabel applying CGAffineTransformMakeRotation causing mysterious crash

In -(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil parentController:(GameViewController *)myGameController{ Have a series of transforming labels like so: deg90 = 1.570796326794897; //....transforms background.center = CGPointMake(160,230); background.transform = CGAffineTransformMakeRotatio...

TwitPic Multiple image upload

Has anybody experienced Timeout error with TwitPic API using ASIFormDataRequest when uploading multiple images? Status updates without images are fine. I was trying to upload the exact same 2 images. The first request went through fine, but the second one was timeout. It also happens when multiple images are uploaded, some went through, ...

Is there an equivalent apple-touch-startup-image for the IPAD?

For web apps you can set the startup screen with apple-touch-startup-image What about for iPads? ...

How to find the leaky faucet that loads into Malloc 32kb

I have been messing around with Leaks trying to find which function is not being deallocated (I am still new to this) and could really use some experienced insight. I have this bit of code that seems to be the culprit. Every time I press the button that calls this code, 32kb of memory is additionally allocated to memory and when the bu...

Nothing is editable and no keyboard in MFMailComposeViewController

I'm launching a MFMailComposeViewController like so: ShareViewController *shareView = [[ShareViewController alloc] initWithSubject:subject body:body footer:footer]; shareView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; shareView.modalPresentationStyle = UIModalPresentationFormSheet; [self presentModalViewControll...

UITableViewCell with custom gradient background, with another gradient as highlight color

I have a custom UITableViewCell with a custom layout. I wanted a gradient background, so in my UITableViewDelegate cellForRowAtIndexPath: method, I create a CAGradientLayer and add it to the cell's layer with insertSubLayer:atIndex: (using index 0). This works just fine except for two things: Most importantly, I can't figure out how t...

Switching between TabBarController Views when event fired

I have a UITabBarController with two different views to switch between. What I would like to do is when a button is clicked in View1 to switch directly to View2. Then in View2 if they click a button it switches them to View1. It transfers between View1 and View2 when they click on the tabBarController fine but I'm trying to perform the ...

UISlider disappearing when calling setValue with 0

I have several UISliders in my application which all work fine until I call the following code: ... frame = CGRectMake(43, 210, 201, 23); mySlider = [[UISlider alloc] initWithFrame:frame]; [mySlider addTarget:self action:@selector(sliderUpdate:) forControlEvents:UIControlEventValueChanged]; mySlider.minimumValue = 0.0; mySlider.maximumV...

splash screen for Universal application for ipad and iphone

hi i am create an universal application using iphone sdk3.2. i want to know for ipad and iphone do i need different default.png of different size. ...

objective c iphone : can we view console log on device

is there a way to view the console output as we are running an iphone App on the device? If not directly, is there an app on the App store which lets you view the log after the App has finished running? ...

Passcode functionality for iPhone app?

I was thinking about putting in PIN number functionality within my iPhone app (various examples can be seen here http://forums.mint.com/showthread.php?t=5956 ), but I was kinda stumped how to go about it. Should I just go with a hidden textfield and simulate the inputs with images? ...

How to set interface method between two viewController to pass paramter in Navigation Controller

Hello, I have created Window based application, root controller as Tab Bar controller. One Tab bar has Navigation controller. Navigation controller's ViewControlller implementation, I am pushing Viewcontroller. I am looking to pass parameter from Navigation Controller's View controller to pushed View Controller. I have tried to pass a...

Inset selection in gimp? Reverse drop-shadow?

I'm wondering how to achieve this effect that Apple uses. It looks as though the button is depressed into the bar, can't figure out how to do the same effect for my graphics. Thanks! ...

Running out of memory but not seeing excessive object allocation in Instruments

I have an iPad app that's crashing due to low memory. However, Instruments doesn't show any significant amount of memory allocated using ObjectAlloc - it stays under 1MB for the lifetime of the application. Leaks shows less than 1kB leaked over the course of the run. Memory monitor shows the free memory on the devices drop significantl...

DC: Mac Developer vs iPhone Developer

http://developer.apple.com/programs/ so whats the difference between Mac Developer and iPhone Developer membership? If you signup to Mac Developer you can download the iPhone SDK anyways? so why would you sign to iphone developer? ...

Pass NSMutableArray between two UIViewController's

I have two view controllers name RootViewController and SecondViewController. In the FirstViewController I have this NSMutableArray @interface RootViewController : UITableViewController { NSMutableArray *allClasses;}@property (nonatomic,retain) NSMutableArray *allClasses; In the RootViewController I populate the UITableView with all ...

Iphone app getting slow after sometime,how to make it work?

I've made a game in objective-C for iphone and is getting slow after playing it for 20- 30 times.I am using 3 timers but i am also releasing them.I am allocating 9 UIImageViews but again releasing them also. Please help? ...

How to crop the UIImage?

Hi, I develop an application in which i process the image using its pixels but in that image processing it takes a lot of time. Therefore i want to crop UIImage (Only middle part of image i.e. removing/croping bordered part of image).I have the develop code are, - (NSInteger) processImage1: (UIImage*) image { CGFloat width = image.size....

how can I know current viewcontroller name in iphone

I have BaseView which implement UIViewController. Every view in project must implement this BaseView. In BaseView, I have method: -(void) checkLoginStatus { defaults = [[NSUserDefaults alloc] init]; if(![[defaults objectForKey:@"USERID"] length] > 0 ) { Login *login=[[Login alloc] initWithNibName:@"Login" bundle:n...