I made a custom UITableViewCell in IB, but for some reason, despite the single line option for separator being selected, there are no separator lines on my table.
Has this happened to any of you before? What gives?
Thanks!
...
Hello everyone, I'm trying to build a project using xcode. The project is linked with a dynamic library and everything works fine when building in simulator mode.
My problem is every time i try to build in device mode i get the error
"id returned 1 exit status" (which is usually a lib link error).
I also get the warning "myLib.a file ...
Hey! I was wondering if there was any way to check if the first letter of a string was capital or not in an NSString. Something similar to:
if ([[string substringToIndex:1] isCapitalLetter]) {
// CODE
}
--or--
if ([self isCapitalLetter:[string substringToIndex:1]]) {
// CODE
}
...
I have a UIView subclass called Card that I move around on my board and drop on hot spots called slots. When I drop the card I use the hitTest to figure out if I am dropping the card on one of my hotspots. I want to get a property of that hot spot but I am having trouble getting that to work properly. My only guess is the hitTest return...
Hi
I have two views with their own .h and .m files of course. How can I declare a bool (or any variable for that matter) in one view and be bale to access it in another view?
Thanks.
...
Hi there,
I have a TabBarController, which contains 4 tabs with a UITableView init. The content of each table view is downloaded from server. There is no problem, if I switch tabs slowly. But if I switch tab a bit faster, I always get the "message sent do deallocated instance" when I insert rows into table,
following is the insert code:...
I am new to iPhone apps, I am developing one application which requires playing audio songs in background that is if user exists the application also it has to playback the audio songs still user stops it. I have checked in this site for this feature but some guy gave answer that this feature is owned by Apple people for their apps befor...
This isn't working for some reason it just crashes my app:
NSString *urlRegex = @"\\bhttps?://[a-zA-Z0-9\\-.]+(?:(?:/[a-zA-Z0-9\\-._?,'+\\&%$=~*!():@\\\\]*)+)?";
NSString *urlParsedStatus = [status stringByReplacingOccurrencesOfRegex:urlRegex withString:@"<a href=\"$1\">$1</a>"];
NSLog(@"new string: %@", urlParsedStatus);
any idea...
I have this code
arrangeListViewController = [[[ArrangeListViewController alloc] init] autorelease];
arrangeList = [[UITableView alloc] initWithFrame:CGRectMake(attributesPadding, y, popoverWidth - 2* attributesPadding, popoverHeight - y - attributesPadding) style:UITableViewStylePlain];
arrangeList.layer.cornerRadius = 15;
So i add ...
I have an app that uses a number of views, and it was getting pretty awkward swapping between them so I thought it might be an idea to make some code that would automatically go to a numbered page, load the appropriate view, then perform any setup that needed doing based upon that view. I came up with the following. The test page I've se...
Im trying to implement an undo manager in my app using Core Data. Instead of making my own UndoManager im using the default undo manager in my ManagedObjectContext. Because of that i am not registering any actions manually, neither am i beginning or ending any undo groups. Undo works fine for most conditions however at certain conditions...
Hi,
I have a Class which I have created as an NSObject.
This class has a number of properties of different types and
methods etc.
When I instantiate this class in my App (say in the main View Controller) I
immediately send it a release call when I am finished using it. ie:
MyObject *myObject = [[MyObject alloc] initWithParameters:pa...
I have a scrollview that has a number of custom imageviews in it. I use the custom imageviews as I need to be able to drag any one of them off the scrollview and to another location on the iPad screen, bit like a photo picker.
Problem is if I want to scroll the scroll view most of the time the custom imageview gets the touch and moves ...
I wrote a small application using iPhone 3.x sdk. The app works well on device/simulator 3.x. But when I switch to device/simulator 4, it exit directly when I navigate among the tab pages. Here is the log form ~/Library/Logs/CrashReporter,
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000000...
I'd like to add an OpenGL ES view as an overlay to my camera view. From this question and its anser I came to know the two field angles of the iPhone 4 rear camera.
How can I properly set the volume view and its perspective in the OpenGL ES view?
Shall I use glFrustum or glOrthof?
(I've seen that gluPerspective takes just one angle as...
Hey guys im totally new with jabber/xmpp but i'm currently developing an chat iPhone app and so far so good for regular configuration for the ejabberd server... I want to implement Push notification when the user is "offline" and to do this I just need to run a PHP script which gets a Token device and the text message to deliver via ssl ...
Hey All,
I am developing an app and the user has to enter the URL to access the information in the app. If the user forgets to enter the URL in a proper way, I want to prepend http:// and append soap.php to the URL text field. Is there any validation to be done for this or can I append using string methods? Also is there a way to allow ...
So i have a:
arrangeList = [[UITableView alloc] initWithFrame:CGRectMake(attributesPadding, y, popoverWidth - 2* attributesPadding, popoverHeight - y - attributesPadding) style:UITableViewStylePlain];
That is the tableview that i want to connect to a controller, and i also have added this tableview to a uiview that i have animate onto...
Hello,
I got this app that needs to be updated with a new database.
I want to remove the old one and replace it with the new.
This is the code I'm using:
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator {
if (persistentStoreCoordinator != nil) {
return persistentStoreCoordinator;
}
NSString...
From the native iPhone map app, it is possible to share a position via email or MMS.
How (if) can this be achieved in a custom app?
...