Questions tagged [iphone-sdk-3.0]

Refers to the iPhone software development kit, version 3.0.

2772 questions
22
votes
4 answers

Adjusting the positions of the labels in a UITableViewCell

I'm using a UITableViewCell with UITableViewCellStyleSubtitle. However, because of the background image I'm using for the cell, I don't like where the detailTextLabel is going. I want to move it and resize it within the cell, but nothing I try seems…
executor21
  • 4,532
  • 6
  • 28
  • 38
21
votes
3 answers

compare two arrays and get the common items

I have two arrays, but they have different lengths. I want to compare these two arrays and put common items to a new array. meanwhile there should not be have duplicate items is the third array. I really mess up with this, please give me a…
smartsanja
  • 4,413
  • 9
  • 58
  • 106
21
votes
6 answers

Clear UIWebView content upon dismissal of modal view (iPhone OS 3.0)

I currently have a UIWebView that is displayed within a modal view. It is basically a detail view that provides a view of a page when the user clicks a link. When the view is dismissed and then brought up again (when the user clicks another link),…
Ricky
  • 639
  • 2
  • 6
  • 12
21
votes
2 answers

UITableView section header height for non-grouped table

Greetings! I know that UITableView sectionHeaderHeight is only used for grouped tables, but I'll ask anyway (in case there's some way to do this that isn't obvious) ... Is there a way to change the section header height (and with it, the font/size)…
Joe D'Andrea
  • 5,141
  • 6
  • 49
  • 67
20
votes
2 answers

How do I get arctan MATH function in iOS?

How do I get arctan MATH function in iphone SDK?
Devang
  • 11,258
  • 13
  • 62
  • 100
20
votes
6 answers

How to extract orientation information from videos?

After surfing through tons of documentation on the web it seems that the iPhone always shoots the video at a 480x360 aspect ratio and applies a transformation matrix on the video track. (480x360 may change but its always the same for a given…
Sid
  • 603
  • 1
  • 6
  • 19
20
votes
2 answers

Changing color of UITableViewCellAccessoryCheckmark and UITextField

I want to change the color of UITableViewCellAccessoryCheckmark and UITextField background color where we type. I found this is not straight forward.
Dilshan
  • 3,231
  • 4
  • 39
  • 50
20
votes
1 answer

How to use LinkedIn API in iPhone SDK?

I want to use the LinkedIn API in my project, but I haven't found any good tutorials about using LinkedIn API. How to use LinkedIn API? "A beginners guide/introduction" of "basic concepts" would be helpful. OK, after googleing around I went to this…
Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
20
votes
9 answers

How to get UIMenuController work for a custom view?

I'm trying to get the following code work: UIMenuController * menu = [UIMenuController sharedMenuController]; [menu setTargetRect: CGRectMake(100, 100, 100, 100) inView: self.view]; [menu setMenuVisible: YES animated: YES]; The menu instance is…
al_lea
  • 596
  • 1
  • 9
  • 17
19
votes
4 answers

MP3 playing using AVAudioPlayer not working on device

I am testing my app on my 3GS iPhone with iOS 4.2 I am using the following code which plays a sound in my IBAction. It works perfectly in the simulator (both iPad and iPhone) - I hear the sound. NSString *pathToMusicFile1 = [[NSBundle mainBundle]…
Matt Facer
  • 3,103
  • 11
  • 49
  • 91
18
votes
5 answers

Resulting lines of UILabel with UILineBreakModeWordWrap

I have a UILabel whose size is calculated with sizeWithFont: method. The line break mode is set to UILineBreakModeWordWrap (same flag is used when calculating the size with sizeWithFont:)... Everything works great, label is properly sized and…
Nick
  • 2,626
  • 1
  • 26
  • 29
18
votes
2 answers

UIApplication openUrl not working with formatted NSString

I have the following code to open google maps: NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@, Anchorage, AK",addressString]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]]; But it…
agentfll
  • 858
  • 2
  • 10
  • 21
18
votes
1 answer

Stop deceleration of UIScrollView

What's the best way to immediately stop the deceleration of an UIScrollView in iPhone 3.0? I would like to keep the deceleration of the UIScrollView until it naturally stops or the user performs a certain action, whatever happens first. Thanks!
hpique
  • 119,096
  • 131
  • 338
  • 476
18
votes
3 answers

MPMediaItems raw song data

I was wondering how to access an MPMediaItem's raw data. Any ideas?
conradev
  • 1,074
  • 1
  • 14
  • 31
18
votes
3 answers

How do I set the firstresponder?

I have a view built through IB, there's a text view and and button on it. When the view shows up I would like to have the keyboard to be already displayed. I tried to set the first responder in the didViewLoad but that didn't work. I do have an…
amok
  • 1,736
  • 4
  • 20
  • 41