iphone-sdk-3.1.3

Transferring data from iPhone to Mac via Bluetooth

Is there any way built into the iPhone SDK that allows devices to send data to a Mac over bluetooth? I know of GameKit, which allows data sharing between iPhones, but I haven't seen anything about an iPhone --> computer connection. Thanks ...

iPhone SDK: Add UIBarButtonItem action programmaticly

Hello, I have several UIBarButtonItems, and I want to set the action when you press it programmaticly. How can I do this? Please give in-depth instructions since i just started to work with the SDK. EDIT: if it would be possible non-programmaticly, please also reply :) The action is going to Google.com, and the button is the search bu...

NSLog crashing app using 3.1.3 software

Hi guys - the other day I had a bug submitted for my app from a user on an ipod touch with 3.1.3 software. It was a strange bug as no-one else has submitted it yet. Long story short, it appears that anywhere where I have NSLog() in code it will actually crash the app. I tried stripping out ALL the code other than NSLog(@"hello") and ru...

Button to add value to array and then compare result with another array on IPhone.

I have ten buttons that each correspond to a different number. I'm looking to record the order that these buttons are pressed and enter them into an array and then compare it to another array that is static in the app. The check should be done on the Nth button press, where N equals the number of items in the other, static array. How do...

-[NSCFData writeStreamHandleEvent:]: unrecognized selector sent to instance in a stream callback

Hi everyone, I am working with streams and sockets in iPhone SDK 3.1.3 the issue is when the program accept a callback and I want to handle this writestream callback the following error is triggered " Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSCFData writeStreamHandleEvent:]: unrecognized sele...

How to process an SQLite row (with categories) to an UITableCellView (with sections)

Hi guys! Currently I'm receiving a list of objects from a SQLiteDB by using: -(NSMutableArray*) getMoreForObjectIdByCategoryId:(NSInteger) itemId: (NSInteger) categoryId On the ViewController Side, I'm using the (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { in combination w...

How to solve a deallocated connection in iPhone SDK 3.1.3? - Streams - CFSockets

Hi everyone, Debugging my implementation I found a memory leak issue. I know where is the issue, I tried to solve it but sadly without success. I will try to explain you, maybe someone of you can help with this. First I have two classes involved in the issue, the publish class (where publishing the service and socket configuration is ...

Where to find changes from iphone OS 3.0 to 3.1.3

I've developed an app using the 3.1.3 SDK and I want to set the deployment target to OS 3.0. The app uses iPod functionality which I can't test on the Simulator so my question is: Is there somewhere I can find a list of the changes from 3.0 to 3.1.3 so I can check if anything might be broken on an OS 3.0 device? I've looked on Apple's...

Background image for list view still shows white behind text for cells.

I wanted to put a background image partially visible behind a list view. I created a list view in my nib with an image view behind it and made the list view background 20% opacity. This allows the background image to show thru but my text in the cells show a white background behind and if I create the cells in cellForRowAtIndexPath th...

iPhone 3.1.3 sdk for Leopard

Is it still possible to find the 3.1.3 SDK (w/ Xcode) for iPhone development on Leopard? I haven't upgraded to Snow Leopard yet, but I need to interact with devices running 3.1.3. I should have grabbed that version when it was up, but I didn't. So, does anyone have a link to the 3.1.3 iPhone SDK (w/ Xcode)? ...

Get name given by phone number on the iPhone

I'm using a TextField where the user types a phone number. When the TextField changes, it should check if this number is already in the phonebook and display the name. So far, my only way is to parse all names and number in a Dict and read it from there. Is there a simpler, more efficient and sophisticated way to do that? ...

MKAnnotations are being made successfully, however they sometimes fail to render on MKMapView

I'm working on an iPhone app using the 3.1.3 SDK, my app finds the users current location, displays it on a MKMapView and then finds nearby locations and renders them as MKAnnotations. My code is working, however sometimes the nearby annotations do not appear on the map. They are still being made as I see the correct data in the console ...

How to get a UIScrollView embedded within a UITableCellView to scroll?

I have a scroll view containing several images embedded within a custom cell view, it sometimes scrolls horizontally if I keep holding the cell for a while. I tried a lot of things and it doesn't seem to work, please help? Here's part of the CustomCell : UITableViewCell code: -(void) layoutSubviews { CGRect scrollViewFrame = CGRectMake(...

Using GraphicsServices.h/GSEvent as well as compiling CLI iPhone tools with Xcode

I sent this to KennyTM (has all the private framework headers on GitHub) but I figured I'd ask here too just in case someone has some good ideas or any way to help me out. I'm trying to write a command line utility that sends GSEvents to operate the keyboard, touch/drag elements onscreen, and operate hardware buttons (volume, home, slee...

how to find restaurant list near current location using mapkit in iphone

Hi I want to know how to find nearest restaurant using mapkit in iphone sdk? I want to display current location of user and then want to display restaurant near tht location... if neone have idea please help me in this Thanks nir ...

3.1.3 and 3.2 different behaviour

I'm using a custom cell in tableView with a UITextField - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell =...

Using GraphicsServices to send a fake touch event to Springboard

I am attempting to use the GraphicsServices framework to send a fake touch event to Springboard. I am writing this application in XCode and using it from within a .app, although I use Backgrounder to send the majority of the system events (to other applications or Springboard itself). I doubt this will cause any issues, but I could be w...

iOS 4 Build SDK

Hi, I installed the iOS 4 SDK yesterday. I previously had the 3.1.2, 3.1.3 and 3.2 SDKs installed. Since installing the iOS 4 SDK, I only have 3.2 and 4.0 available in Xcode. When I load an Xcode project that was targeting an older version (say 3.1.2), it says "Base SDK Missing" in the toolbar. I've been able to reset the project to ta...

How to make my iphone application compatible with iphone 4.0 OS

Hi There!, Can any one help me out. I want to make my iphone application developed in 3.1.3 SDK compatible with iphone OS 4.0 It is a simple application of getting data from a remote web services and showing the data in a UItableView ...

UITableView Two tableviews in two separate views can't get them to load cell data from two different plists

Hi, I have an app with two UITableViews on two separate views. Each table view cell data is loaded from a different plist files. The table views load fine but one works correctly but the other seems to combine the two plists which is weird. Here is How I bring in the plist data Table 1 - (void)viewDidLoad { [super viewDidLoad]; NSS...