Hi All,
I am learning iPhone programming. I am starting with a simple example of displaying recently used documents in a UITableView.
What I am confused about is why do I need to have several classes and why cant I just use one?
Example, My class is called RecentFileList.
I need to implement controller, delegate and datasource as wel...
I can easily change a short region-code (en_US) into a longer string... but it there an easy way to also move in the other direction?
[displayInEnglish displayNameForKey:NSLocaleIdentifier value:regionCountryCode];
"en_US" becomes "English (United States)".
"English (United States)" becomes "en_US".
I currently store the short regio...
Hi,
I am trying to send a file via Bluetooth using the GameKit framework. The problem I am having though is that I can only send one NSData object at a time, but I need to save it on the other end. this obviously isn't possible without knowing the filename, but i don't know how to transmit that. I've tried to convert it to a string NS...
I can't seem to find this anywhere, but I'm sure there must be an answer...
How many simultaneous HTTP connections can an iphone app service? In other words, if I build and run a bunch of NSURLConnections asynchronously, how many can be in flight before it starts queuing them?
Also, is there a method to check how many threads are avai...
I have a PhoneGap app that I'm testing on webOS, Android, and iPhone. I'm using physical devices as well as emulators (the ones that come with their respective SDKs, not the PhoneGap emulator).
Part of the code uses the navigator.notification.vibrate() and navigator.notification.beep() functions.
All the physical devices I'm using eith...
Hi , i try to load a view via UIPopover but my app crash after tap the popover button , i tried to solve it but i don't understand ! here is my code :
-
(IBAction)calendarPopUp:(id)sender {
PopViewController *cal = [[PopViewController alloc]init];
//The compiler tells me the problem comes from this line :
UIPopoverController *popOve...
I'm using this code to play a different mp3 files with every call. The first time through works great. The second time crash, as indicated below.
.h
AVAudioPlayer *player;
@property (nonatomic, retain) AVAudioPlayer *player;
.m
-(void)load:(NSURL *)aFileURL {
if (aFileURL) {
AVAudioPlayer *newPlayer =
[[AVAudioPlayer alloc] in...
Hello all – I'm getting into iPhone development and have hit my first confusing UI point. Here's the situation:
My app is tab-based, and the view that I'm confused about has a static featured content image at the top, then a dynamic list below into which X headlines are loaded. My goal is to have the height of the headline table grow as...
Ok so I actually got to add UINavigationBar inside a UITabBarController using the following tutorial: http://twilloapp.blogspot.com/2009/03/how-to-embed-navigation-controller.html
But now the issue is that whenever I add a new button inside one of the views it just crashes.
For example:
In the first view called FirstViewController I a...
Does anybody have a WORKING copy of NyArToolikit augmented reality port to iPhone? I've read the article http://www.morethantechnical.com/2009/07/01/augmented-reality-on-the-iphone-using-nyartoolkit-w-code/comment-page-2/#comment-380.
Tough I've been unable to figure out the missing parts to make it work. For instance what should be "3D...
Hey all, I am using http://pastie.org/966473 as a reference as all I need to do is encrypt something using AES256 encrypting. I created a class and put the implementation in the pastie on top of the implementation for my class.
@implementation
//pastie code
@end
@implementation
//my class code
@end
In my class code I create a NSMut...
I am trying to use UIAlertView on my landscape right (home button on the right) app but it is showing up in portrait orientation. I have tried putting:
[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight animated: NO ];
in applicationDidFinishLaunching, but it doesn't work. Are there any o...
Hi, I'm customizing my image picker controller
and I want to have a full-screen viewfinder.
I think this might be pretty an old topic and I found an answer here:
http://www.gorbster.net/blog/archives/144
But what I want to know is if there's a way to achieve this without distorting the scale of the image.
If I scale that clipped previe...
After some grueling debugging, I think I have found a bug in the iPad Safari's implementation of canvas.drawImage(). Specifically this overload:
void drawImage(in HTMLImageElement image, in float sx, in float sy, in float sw, in float sh, in float dx, in float dy, in float dw, in float dh);
When slicing an image and scaling it down, i...
I have a method (getAllTeams:) that initiates an HTTP request using the ASIHTTPRequest library.
NSURL *httpURL = [[[NSURL alloc] initWithString:@"/api/teams" relativeToURL:webServiceURL] autorelease];
ASIHTTPRequest *request = [[[ASIHTTPRequest alloc] initWithURL:httpURL] autorelease];
[request setDelegate:self];
[request startAsynchr...
Hi,
I wanted to subclass UINavigationBar (to set a custom background image & text color) and use that for all the navigation bars in my app. Looking at the API docs for UINavigationController, it looks like navigationBar is read-only:
@property(nonatomic, readonly) UINavigationBar *navigationBar
Is there a way to actually use a cu...
How can I know the displayed text in the UILabelView? I have a large text and I am going to have 3 uilabels that represent 3 columns of an iPad App like NYTimes one. When I put the large text in the first column (UILabelView) I need to know how much of the text is displayed there..
If U suggest another solution please let me know.
Char...
I'm currently running Xcode 3.2.2 on Snow Leopard. When opening Organizer > Screenshots I see a list of screenshots I did before. But when I click the Capture button, nothing's happening. I don't see any messages popping up or any errors from the Console tab. I also tried restoring the iPod Touch (2nd gen) but that didn't help. Any thoug...
MonoTouch preferred, but Obj-C ok too
My MainWindow.xib has a NavigationView and a View. The View appears nicely and works, but I need to add buttons to the toolbar that is part of the NavigationView. I can see the toolbar in IB.
In this View I try to add buttons to the toolbar, but they do not appear.
UIBarButtonItem btnBrowse = new...
Can I create an MKAnnotation, or is it read only? I have coordinates, but I am not finding it easy to manually create an MKAnnotation with using setCoordinate.
Ideas?
...