iphone

How to create mobile substrate plugins on XCode?

Hi Everyone, I just wanna create a MS plugin to hook SpringBoard. I'm following "gojohnnyboi" tutorial from here "http://www.ipodtouchfans.com/forums/showthread.php?t=103558". To create a dylib on XCode, I'm following "SkylarEC" tutorial. I mix these two great tutorials and finally got succeed by getting a dylib. But when I placed the ...

Vibration effect on ipod

How to make vibration effect in ipod. Can any one help me? Thanks in advance.. ...

Is it okay to programmatically create UITouch and UIEvent objects to emulate touch events?

I want to simulate some touches on my UI, without using private API. So one simple way to do it is to simply call those -touchesBegan:withEvent:, -touchesMoved:withEvent:, -touchesEnded:WithEvent: and -touchesCancelled:withEvent: methods inside my custom controls. For that, I would have to create UITouch and UIEvent dummy objects with a...

How to get a reference to the current window?

Need a ref to the window in which a view is inside (no matter how deep inside). Usually there is only one window in an iPhone app. How would I access that the most easy way? Is there something cooler than getting the app delegate to access the window? ...

image gallery code?

hi all, is there any code available for image gallery?? i want to make a gallery in which,first view will show thumbnails of images and on selecting any of the images,it will come up in full screen...something like dat? suggestions are always appreciated. regards shishir ...

Why this kind of release doesn't work?

Hello, I have a newbie question about the following: - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { NSArray *anArray; anArray = [dictionary objectForKey: [NSString stringWithFormat:@"%d", section]]; //here dictionary is of type NSDictionary, initialized in another place. An...

Ideas for loading initial data in an iPhone application?

Hi all, In my app I want to load some initial data to show the user how it works. The app uses a CoreData managed sqllite db. SO far I've thought of 3 options: Write code into a class to programmatically create the data. Create a xml file in the apps resources and load through a NSXmlParser whose delegate creates the entries in the ...

UITableViewCell outlets not set during bundle load (possibly very elementary question)

What are the most common reasons for an outlet (a class property) not being set during a bundle load? I'm sorry; most likely I'm not using the correct terms. It's my first steps with iPhone OS development and Objective-C, so please bear with me. Here is more details. Basically, I'm trying to create a table view based form with a fixed n...

A pattern for having the topmost UITableViewCell feature a "Settings" Cell.

Hi If it is unclear what I mean from the headline, I am referring to the functionality that is in the Facebook app where to topmost cell in a "Feed" view is a "Load new posts" button that extends upwards "forever". You have to pull it down a bit for it to display it self. Background In my case I reload the data for the entire UITableVi...

Open standard iPhone photo library application from iPhone app

Hello, I need to open photo library from my iPhone app just like standard iPhone Camera application does. Is it possible? I don't want picking-style interface of UIImagePickerController - it has unnecessary controls like "Use" and "Cancel" buttons and does not have full photo library viewing functionality - zooming and sliding between p...

How do i add functionality to an iPhone application?

There is an application available for jailbroken iPhones called YourTube which adds extra functionality to the stock YouTube application. Info here: http://forums.macrumors.com/showthread.php?t=754439 My question is... how is this possible and how could I do something similar? ...

Dynamically loading hi-res images into UIScrollView

I've been looking into creating a gallery mode in my application. The functionality will be identical to the built in Photos App. Here's the flow: 1. You touch on a thumbnail and ... 2. a modal view displays a large detail version of the image 3. You have the ability to scroll horizontally through all the images in the gallery while in...

OpenAL doesn't work when using AVAudioRecorder and AVAudioPlayer

hi. i have been troubled about audio problem for several days. i don't think OpenAL get along with AVAudio functions. i have my own OpenAL class. ( wrapped the MyOpenAL class ) my app start to record using AVAudioRecorder. i stop recording. and then i clicked the "OpenAL Play"button that play any sound using OpenAL. i can't hear it. but...

iPhone SDK: Text between UITableView sections?

In the settings on the iphone, there is text between some of the UITableView sections. Sometimes larger text, sometimes smaller text. How do I do this? I would like to know how to do the "Security" text, as well as the "Warn when visiting fraudulent websites." text. Ideas? ...

updating uitableview from the custom cell after changing it

Hi, I've implemented edit menu from my custom UITableViewCell class. I have a small problem of updating a table view from inside the custom table cell class. What is the best approach to do that? TIA Clarification: By edit menu I meant a standard Cut/Copy/Paste... menu, that can complies with a standard UIResponder protocol. I want to...

buttons and menu items in cocos2d/objective-c

In my app, I'd like a method called whenever the user taps the screen (anywhere on the screen). Normally, I'd make a transparent UIButton that covers the whole screen. If I'm using the cocos2d framework, what's the best way to do this? Is it good practice to still use UIButtons? I've been reading about MenuItems but haven't found an eas...

What's the best way to call an IBAction from within code?

Say for instance I have an IBAction that is hooked up to a button in interface builder. - (IBAction)functionToBeCalled:(id)sender { // do something here } Within my code, say for instance in another method, what is the best way to call that IBAction? If I try to call it like this, I receive an error: [self functionToBeCalle...

How to define colors in XCodes' Interface Builder?

Hi, I would like to copy colors between elements in the interface builder or define them using RGB values. I.e. copy the background color of a button to another button without duplicating the button. Or: Enter an exact RGB code using the interface builder. Currently I can do this only programmatically but the interface builder is mea...

Stop NSXMLParser Instance from Causing _NSAutoreleaseNoPool

Hi Everyone: In my iPhone application, I have an instance of NSXMLParser that is set to a custom delegate to read the XML. This is then moved into its own thread so it can update the data in the background. However, ever since I have done this, it has been giving me a lot of _NSAutoreleaseNoPool warnings in the console. I have tried ...

Is there a simple way to let a layer throw an smooth shadow?

I was drawing a path into a layer. Lets say I can't access that drawing code in any way, because it comes from a compiled lib. Now I want to let that layer throw a shadow which matches the shape of its irregular content shape. Is there an easy way to do it? Or must I draw like 20 of those layers and scale them up on every iteration, adj...