Questions tagged [iphone-sdk-3.0]

Refers to the iPhone software development kit, version 3.0.

2772 questions
35
votes
7 answers

Frameworks are 'red' in Xcode

I downloaded a project developed by Apple employees ( who taught course at Stanford on iPhone application development). Strangely , the frameworks are red. http://img.skitch.com/20100730-kcjun96mp2pxnpg7w3x6njw57.jpg I tried to locate…
Taimur Ajmal
  • 2,778
  • 6
  • 39
  • 57
35
votes
5 answers

Easiest way to support multiple orientations? How do I load a custom NIB when the application is in Landscape?

I have an application in which I would like to support multiple orientations. I have two .xib files that I want to use, myViewController.xib and myViewControllerLandscape.xib. myViewController.xib exists in project/Resources and…
Peter Hajas
  • 4,011
  • 4
  • 25
  • 28
33
votes
7 answers

Detecting the iPhone's Ring / Silent / Mute switch using AVAudioPlayer not working?

I've tried using these methods in an attempt to detect that the Ring/Silent switch is active or not: How to programmatically sense the iPhone mute switch? AVAudioSession category not working as documentation dictates But on my iPhone 4, the "state"…
taber
  • 3,166
  • 4
  • 46
  • 72
33
votes
6 answers

Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile

I get this build error when I build my iPhone project to run on my device: **Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile** My development code signing certificate expired so I got a new one.…
Cal
  • 1,625
  • 4
  • 20
  • 30
32
votes
7 answers

Best way to check if an iPhone app is running for the first time

I want to check if my iPhone app is running for the first time. I can create a file in the documents folder and check that file to see if this is the first time the app is running, but I wanted to know if there is a better way to do this.
iosdevnyc
  • 1,873
  • 5
  • 25
  • 48
31
votes
3 answers

Write only property in Objective-C

I am stuck with objective-c properties. What I need is to assign a write-only property for a variable, exactly the opposite of readonly, i.e the variable can have setMethod, but it should not have getMethod. I don't know how to do it. answers with…
KingofHeaven
  • 1,195
  • 3
  • 14
  • 27
31
votes
4 answers

How to solve "Application failed codesign verification" when uploading to iTunes Connect?

I've got a problem that I couldn't solve with a deep search in different resources as most of the "similar" points out to be an error with Icon.png size, etc... I've tried to upload my application after verifying that: Correctly builds and run on…
Cy.
  • 2,125
  • 4
  • 26
  • 35
31
votes
5 answers

how to get the event that switch tab menu on iphone

I'm trying to figure out how to catch the event that controls the switch tabs on the UITabBarController. How could I accomplish this?
Yan
  • 1,424
  • 4
  • 21
  • 44
31
votes
9 answers

Adding image to navigation bar

I'd like an image to take up all of a navigation bar. This is the navigation that comes with a navigation based app. It appears on the RootViewController with the accompanying UITableView. I've seen some examples of how this might work. Set…
4thSpace
  • 43,672
  • 97
  • 296
  • 475
31
votes
11 answers

How to hide a section in UITableView?

There are some section in the table that does not contain any data and would like to hide that section. How to do this?
Teo Choong Ping
  • 12,512
  • 18
  • 64
  • 91
30
votes
4 answers

How to find if NSTimer is active or not?

I have a timer something like this: NSTimer* timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateCountdown) …
Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
29
votes
1 answer

try & catch in iPhone?

The try{}catch construct is common to C++, Java & related languages. In the iOS SDK is there and any functionality like this?
Sam007
  • 1,385
  • 3
  • 17
  • 32
29
votes
5 answers

How do I tell if my iPhone app is running when a Push Notification is received?

I am sending Push Notifications to my iPhone app, and I'd like a different set of instructions to execute depending on whether the app is already launched or not. I'm new to iPhone development, and while I suspect UIApplication or my project's…
thebossman
  • 4,598
  • 11
  • 34
  • 45
28
votes
9 answers

Is there a way for Xcode to warn about new API calls?

On more than one occasion I've seen crashing bugs appear on iOS 3.x due to use of a new call that was introduced in 4.x without proper checking. Is there a way for Xcode to warn about classes, methods and procedures that are only available a later…
Ben S
  • 68,394
  • 30
  • 171
  • 212
28
votes
5 answers

Push-Notification Badge auto increment

I've been implementing the push service to my application, and I've been thinking about the application's badge. My app is a mail app (sorta) and I want to notify the user via push for new messages added to the inbox, I want the badge = number of…
natanavra
  • 2,100
  • 3
  • 18
  • 24