Hi
I have a tabController-based iPhone application. First tab is associated with a table view controller. When I select a table cell I want to show another table controller view, but with different tabs on the bottom. What is the best way to do it? Change dynamically tab entries, or do it through IB? Please advise.
Thanks,
Nava
...
I have an iPhone application that downloads images from the internet and saves them for display later.
The user can select the images to view from a UITableView, the table view has custom cells which display thumbnails of the original images in varying sizes.
When the large image is first downloaded it is scaled to thumbnail size and t...
hi, please tell me that how can i play video files in my application from ipod video library? or is there any other possibility to search and play video files stored anywhere in iphone?
...
Hi,
I want to prevent a view from exiting when the users hits the top left navigation bar button.
If I can do this, I can then ask them if they want to save their work or discard it.
I tried this. But it does not give me the pretty arrow on the left hand side, instead it just gives me a button.
self.navigationItem.leftBarButtonItem = ...
Without subclassing a UIResponder class(e.g. UIView) and overriding its touchesBegan:withEvent: method, is it possible to get informed of touch events of a UIResponder class?
This question was answered here.
...
iPhone app stop rotating after few touches or sometimes stop rotating at all, other times works just fine. Any idea where to look for the problem?
My app is designed to support auto-rotate and works fine previously until I added some code that move JSOn data loading to another thread.
...
Hi there, I have made two games for the iPhone already, the first one was a mess, and the second one is less messy but still, not perfect.
I would love to hear if someone had some links that pointed to good class organization advice when creating games using MVC ?
...
Hi,
I'm relatively new to Cocoa/ObjC. Could someone please help me change my code to use asynchronous network calls? Currently it looks like this (fictional example):
// Networker.m
-(AttackResult*)attack:(Charactor*)target {
// prepare attack information to be sent to server
ServerData *data = ...;
id resultData = [self se...
I have;
CGContextRef context = UIGraphicsGetCurrentContext();
Now I want to know the width/height of the the context (in pixels); any way to do this?
...
I'm tryiing to display some text in my app where there might be some URL in the text. I want the URL to be highlighted as hyperlinks and clickable. Furthermore, when it is clicked, I want to supply a callback where I can perform custom action. Of course the URL should be passed back to my callback so I know what to do with it (say open i...
Something with colorspace ? Note; if I draw on the current context directly it turns black; on an bitmap context it turns red.
Example:
CGContextRef context;// = UIGraphicsGetCurrentContext();
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
void *bitmapData = malloc(getWidth()*4*getHeight());
memset(bitmapData, 0, getWidt...
According to the Apple docs, MKPinAnnotationView's pin color is available in red, green and purple. Is there any way to get other colors also? I've found nothing in the docs.
...
Is it possible to propagate touches from shared application object to a custom view which has not actually received touches and somewhere at the back of the top view? Assume that I can't use my top view to track touches.
...
I am assigning protocols in a couple classes that follow an inheritance tree. Like so:
first class
@protocol LevelOne
- (void) functionA
@end
@interface BaseClass : NSObject <LevelOne> {
}
second class
@protocol LevelTwo <LevelOne>
- (void) functionB
@end
@interface SubClass : BaseClass <LevelTwo> {
}
Later I am assigning the c...
Hi, I'm working on an iPhone game written in Objective C (which I'm new to). The problem is
that the views which are used to draw the sprites on screen are semi transparent. I have set
the alpha to 1.0 and the opacity to True. I have also used NSLog to confirm that the views' alphas are 1.0. I was using [self.view insertSubview:myView]; ...
Hey, I'm new to this site. I think it is great! Okay, here's the deal. I just downloaded Smule Ocarina. I was wondering how they made it so you can upload a song to the cloud. I might have an app idea that might incorporate this. How would I do this? What would I need?
...
Would pasteboard.numberOfItems (in the code below) ever be greater than 1? How would the user cause this to happen?
UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard];
pasteBoard.numberOfItems
Note that I'm not asking if a single pasteboard item can have more than one representation type. That they can is clear.
Update: I ...
I am using a custom subclass of UIImageView, but I can't figure out why it's not being displayed.
The relevant code from my UIImageView subclass:
-(id) initWithImage:(UIImage*)image{
if(self = [super initWithImage:image]){
}
return self;
}
And from the view controller for the view that will be displaying my subclass:
UII...
Hi, I just have a question about binary file in iPhone app.
When an iPhone developer wants to submit their app to testers or App store they build the binary file of their appliction. My question is it possible to edit your app's binary to get the source code, or just simply edit the binary for someones purpose.
If it is posible how can...
I used this technique, but it appears to not work anymore in 3.0. In the simulator at least, my app opens Safari, and then there is a visible redirect, but then I get a message that there has been too many redirects. Any fix?
...