iphone

iphone run app as root

I am writing a gui wrapper for gcc for a jailbroken iphone, etc. and it is almost done. However, I get this output when it is run ld: can't open output file for writing : a.out, errno=1 collect2:ld return 1 exit status. I believe this has to do with the privelages the app runs with. I have tried the setuid trick in the cydia developer fa...

cell view disclosure button and relevent method

hi, I have been struggling with a cell disclosue button... First it was saying it is depreciated as I was using: Code: -(UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath { return UITableViewCellAccessoryDetailDisclosureButton; } So I commented that out and adde...

Iphone: stop execution of code when alert is shown in a viewWillAppear implementation

I have a working application before the first view is loaded, i put an alert in the viewWillAppear method: - (void)viewWillAppear { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"MyAppp" message:@"Application will connect to Internet. Continue?" delegate:self cancelButto...

any good iphone/ipad photo gallery template

hello, i am looking for an easy to use photo gallery however i need to find an easy to implement one that has good and clean functionality. Any solutions? ...

Custom use of MKPinAnnotationView

Hello all, Is it possible to use MKPinAnnotationView controls in a application that has nothing to do with maps. I do not want to use MKMapView, I just want to reuse the MKPinAnnotationView control and be able to drop it at a specific screen coordinate. Thanks, Cristian ...

iPhone SDK - plist not being copied to simulator

Hi, I've created a pList (myData.plist) in XCode & populated it, but when I run the program it's not being copied to the iphone simulator directory. Hence, I can't read from it. I've logged the filename and it appears to be pointing to the correct place, there's just no plist file there (confirmed in Finder) NSArray *paths = NSSearch...

IPhone Memory Management: What do I need to release inside dealloc?

So say in my viewcontroller's .h file I have: @interface MyViewController : UIViewController { IBOutlet UILabel *myLabel; IBOutlet UIView *myView; IBOutlet UIImageView *myImageView; IBOutlet UIButton *myButton; NSNumber *myNumber; NSString *myString; NSMutableArray *myArray; UILabel *myCurrentLabel; SomeObject *myObject; CGPoint my...

UITabBarController and UINavigationController Interaction

I have an app with a tab bar with two tabs. One tab displays a UINavigationController, the other a UIViewController that I have customized. What I have noticed is that if switch tabs to the UINavigationController tab then navigate a few levels deep in UITableViews, if I click on the current tab on the UITabBar the UINavigationControlle...

terminate called after throwing an instance of 'NSException' Error Xcode

I'm trying to compile my app (which is a scanner (a fake ;])). But in the simulator (and in my iTouch), the app crashes. This is what I've got : [Session started at 2010-10-03 00:25:56 +0200.] GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Thu Aug 5 05:54:10 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free soft...

Custom Class, IBOutlets Not Working?

I have a custom class, derived from UIView, called Element. In Element I set up some IBOutlets to handle some UIImageViews I have in my XIB. My ViewController adds the Element object to a larger view where the Element moves around. And I added an Object with class Element in IB, and connected the Outlets up through that. But in my Eleme...

20px gap on top of landscape view in iPhone app running on iPad

I am running an "iPhone-only" app in the iPad simulator...When the orientation of the device is changed to landscape mode, I have a view controller that kicks in and programmatically loads a WebView. This works swimmingly in the iPhone (no gap on top of landscape view), but when simulating in the iPad, there's a 20px (I think?) gap at th...

How to reload table view with new data.

I am calling other view controller name "cityState" on button click which has table in it. code for calling that view on button click(which has table): [self presentModalViewController:cityState animated:YES]; now in this view controller I am loading my table with data, its working fine for first time. For example numberofRowsI...

When I use a .xib file to layout my viewController IBOutlets aren't being released when the view controller is released

I use a .xib to layout my viewController and have 10 IBOutlet objects that IB uses, none of them have @properties assigned to them (no @property(retain) IBOutlet...). When I release the viewController none of those objects are being released, I have to manually release them in the dealloc of the viewController. This doesn't seem like n...

iOS multitasking for an Audio Recording application

I am writing an application that records audio. I am looking into the feasibility of supporting multitasking while doing audio recordings (in the background). The answer seems to be a no from what I've read so far, especially since the program is meant to release any system resources being used when switched out. So I am wondering, is ...

UINavigationController Toolbar and device orientation (rotation)

So I have this iPhone app with a nested setup like this: [RootViewController]->[UITabBarController]->[UINavigationController]->[subViewControllers]. Everything is built programmatically, not in Interface Builder. I'm simply trying to support all device orientations. All of my AutoResizing masks are set up and everything rotates and expa...

iphone - UIImageView class shadow

I have a UIImageView based class. At the start of this class, I have this. if ([super initWithFrame:frame] == nil) { return nil; } self.layer.cornerRadius = 6.0; self.layer.masksToBounds = YES; self.layer.shadowOffset = CGSizeMake(3,3); self.layer.shadowOpacity = 0.7f; self.layer.shadowRadius = 5.0; ...

Catching error: Corrupt JPEG data: premature end of data segment

When creating an UIImage with corrupt/incomplete JPEG data, the console will print out <Error>: Corrupt JPEG data: premature end of data segment The incomplete image will be shown, with grey filling up the incomplete part. I do not want this to happen. I desperately tried with a try-catch block but it does catch the error. Is there a...

How to put a auto delete option in a text field

Hi, I want to show gray circle with the white x in the right-side of the field which on click will delete the content of the textfield. ...

CGImageCreateWithMask works great but the masked out area is black in my resulting image, how can I set it to be white?

I've masked out my image thusly: CGImageRef maskRef = [[UIImage imageNamed:@"testMask2.png"] CGImage]; CGImageRef mask = CGImageMaskCreate(CGImageGetWidth(maskRef), CGImageGetHeight(maskRef), CGImageGetBitsPerComponent(maskRef), ...

where can i download OolongEngine?

I have searched the web, but have been unable to find the OolongEngine.zip to download (ie. a link that actually works). Can anyone help? ...