What is the save method for cocoatouch?
I need to add it where the comment is: // whatever you want to do.
- (BOOL) webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)ntype {
if ([request.URL.scheme isEqualToString:@"hide"]) {
// whatever you want to do.
...
I have a UIView inside of a UIScrollView that I want to resize.
I can increase the height easily by :
CGRect frame = self.drawinView.frame;
frame.size.height += 100;
self.drawinView.frame = frame;
self.drawinScrollView.contentSize = CGSizeMake(frame.size.width, frame.size.height);
And all is good.
The above code will create a new ar...
Native applications on IPhone seem to be more usable and a web based experience seems to be totally different than IPhone experience. I am already aware of iUI framework but am wondering how the community is tackling with this problem.
...
Hey there,
I'm doing a lot of animations in my app, and I was wondering whether passing nil as the context parameter to [UIView beginAnimations:context] is ok to do.
When would I want to pass anything in as the context param and why?
...
Hey fellas,
I've got a custom view inside of a UIBarButtonItem, set by calling -initWithCustomView.
OK, so the view renders fine, but when I tap it, it doesn't call the method that I set as the UIBarButtonItem's action property.
Oh, and I have verified that my -deselectAll method works fine.
Keep in mind that I am not using Interface...
I am having an issue where I am trying to save whether a repeat image will show selected or not (it is created as a UIButton on a UITableViewCell created in IB).
The issue is that since the cell gets re-used randomly, the image gets reset or set somewhere else after you start scrolling. I've looked all over and the advice was to setup ...
Ok I have a UIButton inside every row of a UITableView, and I want to fade it to alpha 0 when it begins editing. Then the opposite when it goes back to normal. How do I do this?
I know what methods to use but how do I access the buttons from outside tableViewcellForRowAtIndex:?
...
I couldn't find a good answer anywhere to this. I am using a UINavigationController for my iPhone app, with everything is generated programmatically, nothing in Interface Builder. I am trying to port my app to iPad, using a UISplitViewController and my existing UINavigationController, but I am not sure where I should have the logic of ...
there is an iphone app called supercam and you can get it through the app store free. This app features a way to connect your webcam or dv cam that is connected on the internet, you could set up the ip address and enter the data on the app and it will connect to your online camera.
the thing is that they have the video stream and it lo...
I have a split view-based app that presents a master-detail interface, and uses a popover to present the master list when in portrait mode. The popover presents a sectioned table view that ultimately gets populated by a subclass of NSFetchedResultsController. I can tap the tool bar button to present the master list, scroll to whatever ro...
Hello,
What would be the best way to name a file associated to a NSManagedObject. The NSManagedObject will hold the URL to this file.
But I need to create a unique filename for my file. Is there some kind of autoincrement id that I could use? Should I use mktemp (but it's not a temporary file) or try to convert the NSManagedObjectId to...
first, please see the blog as the link showed below:
http://blogs.nitobi.com/joe/2008/10/17/phonegap-now-for-android/comment-page-1/#comment-12918
the author made iPhone Style app in Android emulator, the pic showed below:
http: blogs.nitobi.com/joe/wp-content/uploads/2008/10/droidgap.png
if anyone knows, Would you please tell me how...
I have a simple iPhone game consisting of two "threads": the main game loop where all updating and rendering happen 30 times per second (NSTimer)... and the "thread" that calls the accelerometer delegate 100 times per second. I have a variable "xPosition" that's updated in the accelerometer delegate function and used in the game loop. ...
I'm able to show current location on mapview. It shows round blue color circle. When I click on the circle, it shows "Current Location".
I want to show users current location as green pin. on click of pin, i want to show "My Location" annotation. How to do it.
Please suggest me how to do it.
...
I have two image views, one on top of the another, with two different images. As the user touches the image and moves his/her finger, the top image should become transparent along the touch points with a fixed radius. (Like the PhotoChop app).
Currently I am doing it this way...
For each touch.
Get a copy of the image buffer from CGIm...
I've noticed some games in the app store that allow the user to choose background music from their music library (iTunes). As a developer how can I add this functionality to my game?
(Just a link to a tutorial would be great... I've tried searching about 10 times and no luck)
...
It is the code:
self.view.backgroundColor= [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"yourimage.png"]];
My "yourimage.png" have some space that is transparency. But it shows me it becomes black. How can I change it to show the transparency instead of black color? thz.
...
Hi,
I need my application to be considered localized in order for MFMailComposer to present its fields in localized language. I don't need to localize any strings or xibs. What is the minimum I need to do in order for my application to be considered localized?
TIA
...
Hi, I'm just curious as to what methods people are using to dynamically use larger or smaller images in their universal iPhone/iPad apps.
I created a large test image and I tried scaling down (using cocos2d) by 0.46875. After viewing that in the iPhone 4.0 simulator I found the results were pretty crappy... rough pixel edges, etc. Plus,...
Here is the viewDidLoad:
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png"]]];
It can show the simulator, but not on the device, why?? thz.
...