iphone

EXC_BAD_ACCESS when not using self.

I got nabbed by the following bug again and would like some clarification to exactly why it is a bug. I have a simple UITableView that loads some data: // myclass.h @property (nonatomic, retain) NSArray *myData // myclass.m @synthesize myData; - (void) viewDidLoad { ... myData = someDataSource // note the lack of self } - (UITab...

MKMapView userLocation not showing in ipod

i used self.mapView.showsUserLocation = YES; for showing blue dot (circle) on MKmapview. Its working fine in simulator. but when i tested in Ipod, its not showing. Anybody know what will be the reason ? thanks in advance ...

How to create an action for a UITabBarItem?

Hi, I have created a UITabBar and UITabBarItems without UITabBarController on it, now i want to know how to place an action on click of the UITabBarItem.What is the method i should use for action on UITabBarItem? ...

Is dealloc method called in presentModalViewController when dismiss the controller.

Hi Guys, here the following code is used to view the present modal view controller. [[self navigationController] presentModalViewController:doctorListViewNavigationController animated:YES]; the close action is in the next view controller(DoctorListViewController). You can understand by seeing the following code I added now cleary. -...

Xcode debugger warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable

What does this means? Seems to appear in the console occasionally when I run with breakpoints on in the debugger. warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable ...

How i implement Mid-Point/Bresenham circle algorithm in objective-C?

Hi, I want to implement mid-point/Bresenham circle drawing algorithm using objective for Iphone.please give me any tutorial or source code to drawing mid point/Bresenham circle algorithm.It is possible to draw the circle using CGPoint method? ...

How to add database layer in core data application

Hi all I am fairly new to core data technology and i searched a lot on how to add the database to a core data application.so can anybody guide me on how to integrate the database layer? i have seen the iphone tutorial on core data (i.e books example) but i am not able to understand how to .sqlite file has been included in that applicati...

OpenGLES Add User Interactions

http://www.switchonthecode.com/tutorials/getting-started-with-opengl-es-for-the-iphone From the above link they created tutorial by No Nib File. But i need to add User interactions like , adding Progress View. Please help me. i am new to iphone OpenGLES. Thanks In Advance. ...

append in middle of NSString in iPhone programming

hello, how to append the value of string in between NSString? for example: NSString* str1 = @"Hello"; NSString* str2 = @"Hi.."/*add contents of str1*/@"how r u??"; please tell me how to achieve this?? ...

getting memory allocation at ActivityIndicator in Iphone sdk

Hi Guys, Here I'm gettimg memory allocation problem at activity indicator and my code is: - (id)init { if (self = [super init]) { self.title=@"Release Details"; contentView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; contentView.backgroundColor = [UIColor clearColor]; self.view = contentV...

Is there any user-friendly way to deliver an In-app purchase subscription to multiple devices?

Hi everybody, Apple requires an in-app purchase subscription purchased on one device to be available on all devices associated with the user: “...subscriptions must be provided on all devices associated with a user. In App Purchase expects subscriptions to be delivered through an external server that you will provide. You must provid...

Sample code from apple iPhoneMultichannelMixerTest can't run mp3 file

Hi i want to control channel volume from my app and iPhoneMultichannelMixerTest (http://developer.apple.com/iphone/library/samplecode/iPhoneMultichannelMixerTest/)sample code form apple looks perfect for me. but i m heaving problem in playing mp3 files. code crashes in MultichannelMixerController.m at static OSStatus renderInput(void *i...

How to set title in the MFMailComposerViewController ?

Hi All, I am trying to set the title of MFMailComposerViewController , which is a subclass of UINavigationController. I am using these following ways : MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; [picker.navigationController navigationItem].title = @"Send Mail"; [[picker navigationItem] setTitl...

Is memory leak caused by global variables?

When I checked my application for memory leaks it is showing 12 leaks. What will be the effect of this? I used global variables as shown below #import "file1.m" int num; #import "file2.m" extern int num; num = 10; Can this cause memory leaks? Anyone please help. I am a beginner in programming. ...

UIScrollView and CATiledLayer question

I am using a CATiledLayer as content of UIScrollView, but seems I can not get the correct (sometimes) [scrollView contentSize] and [scrollView contentOffset] from CATiledLayer's delegate method : (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx I know CATiledLayer uses this method to render tile in a background thread. A...

show a new view after x seconds?

hey all, i'm quite new to objective c and i have this problem. i'm animating an image an show this in a imageview. after 15 seconds i want to show another view, thought of a "flying in view from the bottom". any hints fpr me how i could manage that? thanx in advance marcus ...

How to create a screen that let user to draw a 'sketch' through finger touch?

Hi I am developing an app which will let users to 'draw' on screen via finger touch - so basically users can write, draw shapes - similar to a white board. The problem is I am a newbie as far as iphone graphics programming is concerned, I would highly appreciate if community here provide some sample code link or suggest a direction as w...

Change position of navigationItem.title

Hi, In my ViewDidLoad I try something like that but its not working: UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10,2,60,14)]; label.autoresizingMask = UIViewAutoresisingFlecibleWidth; [self.navigationController.navigationBar addSubview:label]; I want to display a label in the left part of my NavigationBar. Or maybe...

TTImageView not working

Guys, I am new to IPhone and using following code to render the image from remote server using TTImageView from Three20 framework with the help of following code TTImageView* imageView = [[[TTImageView alloc] initWithFrame:CGRectMake(30, 30, 0, 0)] autorelease]; //Working OK //imageView.urlPath = @"http://prosares.co.cc/Images/b...

How no make a button show UINavigationBar only in 3 of 5 tabs in UITabBar?

I have an app, where there's a UITabBar with 5 tabs. When user shakes the device, I want the UINavigationBar to push an UIImageView. When I show the UIImageView, I need to hide both tab and nav bars. After that, when user taps the UIImageView, the NavBar appears again and user can go to the UIImageView's parent view. I make the Nav Bar a...