iphone

How to generate Perlin Noise on an iPhone

Hi, I want to create an animated perlin noise on the iPhone, so I can ultimately do something like this: http://dl.dropbox.com/u/1977230/example.png I've looked and looked, but can't find anything similar or a way to actually display a Perlin Noise. I've been told to look at OpenGL ES, but even searching for an example of Perlin noise...

UITableView crashes when adding 2 objects to an empty store, with sections (NSRangeException)

UITableView crashes in endUpdate, called by the Managed Object Context "save" method, when: 1- The Core-Data Store is empty 2- The Fetched Result Controller is configured to show sections 3- Two managed objects (or more) have been added to the store When I've searched this problem in google. I've found exactly matched error in this p...

iPhone: how to use performSelector:onThread:withObject:waitUntilDone: method?

Hi all, I am trying to use a separate thread for working with some API. The problem is that I am not able to use performSelector:onThread:withObject:waitUntilDone: method with a thread that I' instantiated for this. My code: @interface MyObject : NSObject { NSThread *_myThread; } @property(nonatomic, retain) NSThread *myThread; @en...

iPhone: UIImageView not showing images

Hello, I've got UIImageView drawn in my nib-file and it's connected to a imageView iboutlet. I can load single pictures which will show up very nicely, but when it comes to drawing many images separately as like an animation, images won't show. I've got drawImage() function which takes NSData-objects(image data) and draws it to a screen...

UIRemoteNotificationType invalid conversion

Hi, I'm trying to use this fairly standard line of code in my app: [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)]; But am receiving the follow error: error: invalid conversion from 'int' to 'UIRemoteNotificationTyp...

Redirection of xml file for iphone app

Hey guys, I have a xml file on my server like the one below : www.myWebSite.com/myXmlFile.xml which is used by my iphone application. In case the address of my xml file changes to www.myOtherWebsite.com/myXmlFile.xml How can I make my app to work anyway ? What kind of PHP server-side code do I need to write ? Is NSURLConnection...

How to print pdf file using wifi printer in iphone

Please bare if is repeated question... In my application there is a pdf file and i have to print it using print button through i-phone. I search lot but didnt find. There the provide a Print n Share software for such thing but it do not suit to my requirement. I need core programming coding support for printing it. Is there any sam...

NSXMLParser + encoding="windows-1257"

So i'm making small program and it download ziped XML database file that is ~30 MB size (unziped). As I understand there is only way with such big files on iPhone, it's to use NSXMLParser. But that file is encoded with windows-1257 format and NSXMLParser does not eat files like that. What can I do? Is there a way to change file encoding ...

inserting new relationship data in core-data

My app will allow users to create a personalised list of events from a large list of events. I have a table view which simply displays these events, tapping on one of them takes the user to the event details view, which has a button "add to my events". In this detailed view I own the original event object, retrieved via an NSFetchedResu...

I want to get the value from one class (SearchTableViewController.m) to another class (HistoryTableViewController.m)

#import <UIKit/UIKit.h> @class SearchDetailViewController; @interface SearchTableViewController : UITableViewController <UISearchBarDelegate, UITableViewDelegate, UITableViewDataSource>{ IBOutlet UITableView *myTableView; NSMutableArray *tableData;//will be storing data that will be displayed in table. //Search array den buna aktarm...

when is a push notification old?

I have noted that when the iPhone OS receives a push notification, it considers that a user action to click on the action button as a "response" to the push notification for some indefinite period of time. If the user lets the push notification sit on screen for a number of seconds, or lets the phone go to sleep, the phone no longer con...

UIWebView(DataDetectorsCore) Crash only in Simulator.

Hi Guys. I found a crash only in iphone simulator while loading the webpage but not in iphone,and i am not able to find the reason of the crash in my app. Here i am attached the crash log. Can any one please suggesting the fix regarding these crash. Process: Matador [28671] Path: /Users/chethan/Library/Application ...

setNeedsDisplayInRect: paints a white rectangle only

Hi, I'm still a little fresh to CoreGraphics programming, so please bear with me. I'm trying to write an application, which allows the user to rub stuff off an image with the finger. I have the basic functionality nailed down, but the result is sluggish since the screen is redrawn completely every time a touch is rendered. I did some re...

Change the keyboard in UITextField with animation

Hi. I have a table with several textFields in several cells, each with different input keyboards (numeric for phone number, standard for name, etc.). When I change the editing text field by selecting one when other is editing, I want the first text field to hide the keyboard (the one which is being used) and only then the new keyboard ...

IOConnectCallStructMethod question

Hi, I am trying to pass a structure to IOConnectCallStructMethod.the structure declaration I got is below (I am not sure it is correct or not). struct JPEGDriverArgs { int must_be_zero_1; IOSurfaceID src_surface /*in*/; size_t src_size /*in*/; int must_be_zero_2; IOSurfaceID dest_surface /*in*/; size...

How to make the tabbar view appear when parsing is done in iphone?

I am new to iphone development.I created a application , in which the first tab bar view ,load a web page and in second tab bar view ,it parses a xml file and display the content in the table view. When i click the second tab bar, the tab bar view is seen only after the parsing is done, till the parsing time the tab bar appears like unse...

How to make an tiled background like on the web?

On the iPhone, how could I achieve the same tiled background effect? For example, I have an pattern image which I want to repeat only horizontally. Would I have to go the route in -drawRect: by myself and loop over to draw the pattern, or is there a convenient method to do that? ...

Detect long tap in UIScrollView

How would I detect a long tap (tap and hold) within a UIScrollView? ...

How to draw an tiled background image with alpha transparency on iPhone OS?

When I use UIColor -colorWithPatternImage: to create a view with an tiled background pattern, everything that is supposed to be transparent appears to be black. Of course I can't assign clearColor to the background, since the background is already this pattern image UIColor object. I believe that this internally is using CGContextDrawT...

How can I detect if an iPhone OS device has a proximity sensor?

The docs related to proximity sensing state that if the proximity sensing APIs are used on a device without a proximity sensor (i.e. iPod touch, iPad) they will just return as if the proximity sensor has fired. Aside from checking the [[UIDevice currentDevice].model] string and parsing for "iPhone", "iPod touch", or "iPad" is there a sl...