ios

Debugging iphone app

How to debug iPhone aplication? How can i find out what's going on in simulator? i'm beginner in xcode development and don't know what's problem with code below.. the app is just crashing on button click.. - (void)viewDidLoad { myLabel = [[UILabel alloc]init]; [myLabel setText:@"Labela"]; myLabel.frame = CGRectMake(50.0,5...

Using OpenSIPS between iPods?

I'd like to work on a SIP project for mobile devices. I've seen links to Siphon, Sipdroid and OpenSIPS. Does OpenSIPS allow for me to make phone calls between two iOS devices in a local network? In other words, I'm trying to do an app for a VOIP company. I'd like to set up my own SIP server and then use theirs later. Is there any reaso...

Can I use instance variables with an NSManagedObject?

So I got entities Level and Tile. Level has a to-many relationship with Tile. Tile has a property 'index'. Right now I'm using this code to get the tiles array of Level sorted: - (NSArray *)sortedTiles { NSMutableArray *sortedTiles = [NSMutableArray arrayWithArray:[self.tiles allObjects]]; NSSortDescriptor *sortDescriptor...

App submittion from clients side

Hi, I am developing an application which is going to be branded to for different clients. For some clients I will release the application myself using my developer account @ apple, but some clients want to release the application using their own developer account. Off course they can create an account for me which I can build the applic...

NSRunLoop cancelPerformSelectorsWithTarget's not working

Hey guys, I have this following code and I am not getting the results I expected. #import "CancelPerformSelectorTestAppDelegate.h" @implementation CancelPerformSelectorTestAppDelegate @synthesize window; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [window makeK...

loading and manipulating a multi component UIPicker with Plist

In detail code, can someone please show me a way to populate a multiple component UIPicker with data from a plist? The reason I choose Plist as my datasource mainly is because it is much easier to manage visually and edit at the later stage. I want to create a simple app that have Picker with 4 components (lets call it component A, B,...

[iPhone] Persisting an array of images

What's the best way to save and retrieve an array of images across app restarts? I'm implementing a caching feature for offline viewing of downloaded images and just want to make sure I'm using the right persisting methods. Thanks! ...

Trying to make a card from CALayers that can flip over

I've been trying to develop a CALayer based "CardView" object that has two layers that face away from each other to present the two sides of a card. I've been working with things like the doublesided property of the CALayer and find the results to be confusing. My base class is CALayer and I'm adding two sublayers to it, one with a M_P...

Can't edit UITableView frame.y

Have a nib file with a UISearchBar on top and a UITableView. wann add an button and some text on top of the UISearchBar's input. so i made (in viewWillAppear): [searchBar setFrame:CGRectMake(0, 0, 320, 90)]; works fine so far (except the position of the input needs to be vertically aligned to the bottom and not to center, any hints o...

CoreData "Error validating url for store"

I'm having a problem in my application, CoreData works as it should in he simulator - but not on the device. I receive an 2010-09-30 12:45:07.500 CoreDataTutorial_iOS[130:307] Unresolved error Error Domain=NSCocoaErrorDomain Code=513 "The operation couldn’t be completed. (Cocoa error 513.)" UserInfo=0x1412a0 {NSUnderlyingException=Err...

iPhone/iPad context menu

Im talking about the menu that shows up when you select a block of text it gives you the option to cut/paste/copy. I figured out how to add one more option to the menu, but if I add two or more options it will say "more" first. clicking it will show all the options I added. But is there a way to show all the options I added upfront? with...

Extracting Amplitude Data from Linear PCM on the iPhone

I'm having difficulty extracting amplitude data from linear PCM on the iPhone stored in a audio.caf. My questions are: Linear PCM stores amplitude samples as 16-bit values. Is this correct? How is amplitude stored in packets returned by AudioFileReadPacketData()? When recording mono linear PCM, isn't each sample, (in one frame, in one...

Unit Testing is Wonderful, But...

I took the time to set up some Unit Tests and set up the targets in XCode, etc., and they're pretty useful for a few classes. However: I want to test small UI pieces for which I don't want to launch the entire application. There is no concept of pass/fail: I need to "see" the pieces, and I can make dummy instances of all the relevant cl...

Build And Archive Buttons Don't Do Anything in XCode 3.2.4 for me

After I use Build and Archive to produce an Ad Hoc Distribution build, the Organizer appears. When I select the build, and press Share Application, the dialog pops up, but thereafter none of the buttons work. I can't Distribute For Enterprise, Save To Disk or Email. I press the buttons and they just pop right back up. There are no error...

How to make "swipe to mark as read" menu like Reeder?

Anybody can tell me how to make "swipe to mark as read" menu like Reeder (img below)? ...

MKMapView inside a UIScrollView doesn't move with swipes

I've got a detail view with various labels and such providing information about a place (address, phone, etc.). The information provided is taller than an iPhone screen so they're all in a UIScrollView (itself inside a UIView) that allows you to swipe up and down to see everything. I also have an MKMapView inside the scrollview. When it...

iPhone, why isn't UITableView reloadData working?

I've enclosed a screen dump to make things easier to follow. I've attached my outlets for datasource and delegate and I've created an outlet for my table view, but reloadData doesn't work? Ideally I'd like to only call reloadData after the view has been loaded once? ...

Pitfalls when writing an iOS app supporting iOS 3.1.3 and iOS 4.x

I would like to write an app which can be run on iOS 3.1.3 up to iOS 4.1. I know how to set up the deployment target and the base SDK. After reading the Apple docs it heavily relies on checking if the class is available and/or if an instance responds to a specific selector. Now my questions: What happens if Apple made a class public ...

How Do You Embed a Provisioning Profile in an iOS App

I read in the iOS Enterprise Developer Program docs that a provisioning profile can be embedded with the application. I am wondering how this is done. Is it simply added to the Payload directory of an IPA, or included in the project directory? I also wonder whether this technique is generally available for all deployment modes/Program...

Order of Magnitude Cost to Ship an iOS Bluetooth Accessory

This is a request for guidance regarding Bluetooth accessory development for iOS devices. Publicly available documentation/discussion seems limited; I assume this is due to the MFI NDA. And I didn't find the quantity/variety of iOS Bluetooth accessories I'd expect if accessory development was as accessible as iOS development in general...