iphone

add sounds, buttons and image on the function of button programmatically

hello , i want to know i add sound & image or label on the function of button which is created prgrammatically on the click of button. firstly my sound was working fy9, but after adding image and label on that same function , sound is not working. help ME! Anks..... ...

Calculating minimumZoomScale of a UIScrollView

Hi, I have an image that I want to load into an image view and set the minimumZoomScale, as well as the zoomScale to an aspectFill like scale that I calculate as follows: // configure the map image scroll view iImageSize = CGSizeMake(iImageView.bounds.size.width, iImageView.bounds.size.height); iScrollView.minimumZoomScale = iScrollView...

TabBar rotation from protrait to landscape

I am making a TabBar based universal app. I have added few extra tabs and changed the viewController to navigationController. Now when i am trying to rotate the view from protrait to landscape, its rotating the inside view but tabBar does not rotate and it stays at the same place ie at the bottom of the protrait mode where as every othe...

Change name of Iphone Project

i have edited an app and made some changes in it. I want to change its name .. SO i tried lots of methods to change the name and was success.. but the problem is, when i run this new application it replaces the older one.... but i want both to be there....not replacement... edited---- my app support inapp purchase could be this is a ...

xauth twitter on iphone app

Hello, I will use xAuth to post data on my twitter account and I'm kind of stuck with the signature, header stuff. I have the following code: // Build url NSString *url = [NSString stringWithFormat:@"https://api.twitter.com/oauth/access_token?x_auth_username=%@&x_auth_password=%@&x_auth_mode=client_auth", ...

iPhone SDK, how to get NSDate object of coming friday's 20:00 ?

Does anyone know how to get the NSDate of the coming friday's 20:00 ? ...

iPhone safari web app floating div

Hello, Am wondering how to achieve a floating div in iPhone Safari. position:fixed does not work unfortunately. Thank you for your time. ...

iPhone - Phonegap UI Controls - Tab Bar

Hi there Just started with Sencha today and found it a bit overwhelming. Was able to get a nice custom tabbar working, and top nav panel, however am stuck from where to go. Decided it might be a lot easier to just use JQTouch and a Phonegap TabBar instead. I found: http://phonegap.pbworks.com/iPhone%3A-UIControls-(TabBar) I'm on the...

Timezone convert result error

CCT is UTC + 6:30 and SGT is UTC + 8:00. However result is wrong NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"MMMM dd, yyyy h:mm"]; // The date in your source timezone (eg. EST) NSDate* sourceDate = [NSDate date]; NSLog([formatter stringFromDate:sourceDate]); NSTimeZone* sourceTimeZone = ...

getting error assertion Failed in ipad

here is the error description- Assertion failed: (cls), function getName, file /SourceCache/objc4_Sim/objc4-427.1.1/runtime/objc-runtime-new.m, line 3939. modifying layer that is being finalized - 0x8142710 i am not getting what kind of error it is . please suggest ...

To the bottom with didRecieveMemoryWarning

I have to go to the bottom with the didRecieveMemoryWarning method. I have read like thirty threads about this topic on this forum. And every answer is differerent. First question. Should you release objects in didRecieveMemoryWarning or just set them to nil? Or both? I have read that I should release the tableView data source, if you ...

Iphone app rejected.

Hi, I had recently submitted my first Iphone app to itunes connect. After review I got an email from apple saying my app was rejected. The reason they provided was "Currently the user has to enter their email address in order to proceed to the application. Applications cannot require user registration prior to allowing acc...

UITableViewCell's detaiTextLabel overlaps with custom subviews

I want to customize UITableViewCell by adding UILabel and two UIButton as its subview. The cell style will be UITableViewCellStyleSubtitle and these three items would have to next (on the left) of detailTextLabel.But when i do this, detailTextLabel overlaps with these items and display clipped or partial subviews. Any way to handle out ...

How do you remove extra empty space in NSString?

Hi, is there a simple way to remove the extra spaces in a string? ie like... NSString *str = @"this string has extra empty spaces"; result should be: NSString *str = @"this string has extra empty spaces"; Thanks! ...

How to use several viewcontrollers

Hi! I have problem concerning viewcontrollers. I have done some iphone games with just one viewcontroller, but now I want to use several. I have a MainViewController that creates two viewcontrollers called StageViewController (where the gameplay takes place) and a MenuViewController (where you select the stage you want to play). My M...

ASIHTTPRequest Problem

Is anyone else having this problem with ASIHTTPRequest? It seems that when I perform an async request from within a background thread with delegate set to the instance I can run into trouble as the delegate can be freed before the request (which is put into an NSOperationQueue) returns a callback. It seems that ASIHTTPRequest doesn't r...

how to change orientation of TabBar and Navigation Controller in Ipad App ..??

when i load tabbar and navigation bar then tabbar and navigation bar is not oriented with this ...

iphone - MPMoviePlayerController - How can I decrease volume of the video programatically

I'm using MPMoviePlayerController to play a video which has audio as well. Its working fine. I'm hiding the default controls. So no controls are showing on the video. I want to place a slider on the video (i successfully placed a slider as well over the video). With the slider, I want to control the volume of the video that is being play...

storing UIViews into NSMutableArray

Is it possible to store dynamically created UIViews into an NSMutableArray? This question suddenly occurred to me. Have any one done it before? ...

concept of retain in objective c

i am new in objective c.....i am aware of alloc and release..... but dont know when and why to use retain statement...... please help....need just basic idea... please also tell something about copy statement..... ...