Multiple textures with OpenGL ES
I have two textures (made from two different images). I want to mix these textures on one view. How I can rich this? ...
I have two textures (made from two different images). I want to mix these textures on one view. How I can rich this? ...
hi I am new to iphone development. numberOfRowsInSection method of UITableViewController executed before parsing the XML node so that this method return value as zero, but this method should be return value of number of rows with data. please help me thanks. ...
ABRecordRef addressBookRecord = ...; ABNewPersonViewController *newPersonViewController = [[[ABNewPersonViewController alloc] init] autorelease]; newPersonViewController.newPersonViewDelegate = delegate; newPersonViewController.displayedPerson = addressBookRecord; Is it safe to CFRelease(addressBookRecord); ? Is there a standard Co...
Hey guys, I have a big problem with the UIWebView in iPhone SDK. I have a TabBarApplication with one WebView on each Tab (except the first). Because it takes quiet a while to load the views I'd like to show an activity indicator. Here is the code I'm using in order to do that: -(void)webViewDidStartLoad:(UIWebView *) portal { [UIApp...
I constructed a tabbar with more than 5 tabs and the remainders were automatically added into the "More" view. That is fine, but along with that, the user is able to "Edit" the configuration of the app's tabs. I do not want the user to be able to do that. Is there a way to prevent the user from doing this? ...
Hi there, Part of the functionality Ive written for an app is downloading zip files from a server using NSMutableURLRequest. All works until I try to download a file approx greater than 12MB. The iPhone is on wireless lan. I was wondering if there is a limit or max chunk size to implement when downloading larger files? I fails for these ...
I want to make the top of the navigation view a bit smaller. How would you achieve this? This is what I've tried so far, but as you can see, even though I make the navigationbar smaller, the area which it used to occupy is still there (black). [window addSubview:[navigationController view]]; navigationController.view.frame = CGRectMake(...
Hi, I have an application which has some text views on one of the controllers. When the application is processing these text views are disabled and have their user interaction disabled. The problem is that when the text views are re-enabled they respond to any touches made when they where disabled. This is made even worse because they...
Hello! I am really new to iphone programming and I am trying to build an application that uses camera live view to select a rectangle by touch events. I want to store the pixels in that rectangle in a pointer. Can anyone help me out with this code? Thank you! ...
From an Apple example, I have this: Event *event = (Event*)[NSEntityDescription insertNewObjectForEntityForName:@"Event" inManagedObjectContext:self.managedObjectContext]; Event inherits from NSManagedObject. Is there a way to avoid this weird call to NSEntityDescription and instead just alloc+init somehow directly ...
Hi, I've seen quite a lot of posts about CCCrypt and 3DES on the iPhone at various places around the Net, but there does not seem to be a working example of using it with ECB mode, always with PKCS7Padding. Does anyone have any working code to encrypt and decrypt a passed string using 3DES and ECB mode using the CCCrypt function? Curre...
Hi, I've submitted my application to the app store and had it approved. I'd set the release date to a few months in the future, but in the meantime have added a lot of extra functionality to the product. I still want my app to be listed as a 'new release' when it comes out (the release data hasn't been reached yet) so should I replace ...
Apple provided this example: NSError *error; NSMutableArray *mutableFetchResults = [[managedObjectContext executeFetchRequest:request error:&error] mutableCopy]; if (mutableFetchResults == nil) { // Handle the error } Why are they calling mutableCopy here? Is it because they wanted to have an NSMutableArray rather than an NSArray,...
I wonder if I could just execute a NSFetchRequest with just the Entity and nothing else. However, it seems to work with no errors, but since I've never seen anyone doing that, I wonder if there are any bad drawbacks in doing this. The documentation doesn't say if there's any default value used instead when I provide no NSSortDescriptor. ...
This document --> http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html explains in detail about how to stream videos to the iPhone. There is, however, no mention about how the content is then presented to the user. It could be via the browser, or via a co...
I've been messing around with some open source code trying to figure cocoa out. I've gotten an application with multiple views, and I want to put UIWEBVIEWS on the second, third, and fourth view controllers i've made. However for the life of me I can't seem to figure it out I can actually pull down on the touch screen a black/blank UIWE...
in my iphone app, I'm wishing to link a contact to a data-piece in an array. All the data handling is fine. My question is: what contact info parameter can be saved in a database, acting as a link to a contact. Then later I will be able to call this one value and then get the link back to the contact. ---EDIT BELOW This is where I am u...
I'm stumped (and likely blind to something incredibly obvious). I have a UITableView, which I want to do terribly normal things with, such as display text in each row. To do this, I've implemented the usual delegate method tableView:cellForRowAtIndexPath:. This is called as expected. According to the docs, I'm supposed to create a UILabe...
I'm writing some Objective-C code and I've frequently hit the situation where I have to use a class variable to store a value for one time use. After consuming it I no longer need it. To me, storing this value in a class variable seems like code smell. Really the value should be passed in as a parameter to the methods I'm using. I ru...
I have noticed in my application that didReceiveMemoryWarning gets called much faster if my phone has not been powered down for a long time. It almost seems like the pool of memory that my application can access shrinks with time. Has anyone else noticed this and is there an explanation for it? Is there a course of action that I can tak...