Hi Folks!
I want to use the scrollview as something like a picker in horizontal mode.
The scrollview holds up to seven subviews.
Each subview represents a value.
Always three views are visible and the one in the middle is the selected one.
Scrollview visible at start:
__ | V1 | V2
Scrollview set to view/value two:
V1 | V2 | V3
S...
Basically what I want to do is copy the already rendered content (a PDF drawn into the UIView's graphics context using CGContextDrawPDFPage()) onto a similar UIView, without having to re render the PDF. The idea is, that I'd then be able to perform an animated transform on the UIView and later re render the PDF with more accuracy. For bo...
I have an entity called 'Job' with two boolean attributes named 'completed' and 'logged'.
I am trying to retrieve all completed jobs that have not been logged at app start-up and change them to logged. I'm able to get all the completed but unlogged jobs with this fetchRequest:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@...
In developing a few CoreData applications, I've found the automatic UI prototyping extremely useful while experimenting with the CoreData model. By automatic UI prototyping I mean selecting a CoreData entity in XCode and option-dragging it to a window in Interface Builder.
This brings up a dialogue box in IB allowing me to select some o...
greetings!
I've seen apps (e.g. meebo) that have different indicators on UIPageControls instead of the default white circles.
is there an easy way to do this? I've read the docs for UIPageControls and it seems that there is no methods to replace the images.
thank you
...
Hi: In an iPhone application I use a library(C++) which asynchronously makes a callback when computation is finished.
Now I want to measure the time which is spent -including the method which calls the library- until the callback is made. Are there any possibilities to do this with the Instruments application from Apple? What are the be...
Hi everyone,
I have an entity which has relationships with other entities. Let say we have: user->menu->meal
My problem is that some of the users don't have a menu. So when I try to check: user.menu.meal == rice I get an error (path not found...)!
Thank you for your help!
...
How can I get my albums array and photos list in the same album use gdata.framework?
...
Hi Guys,
Actually My code is:
else if(isExpense == YES)
{
NSDate *strDate;
strDate = [NSDate date];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
[dateFormatter setDateFormat:@"dd-MM-yyyy"];
if([expense.date length] > 0)
{
NSDate *date = [dateFormatter dateFromString:expense.date]...
Hello,
Within my iPhone application I wish to add the ability for other devices to connect via WIFI, and share the 3G connection of the phone, essentially turning the phone into a wireless access point similar to what MyWi does.
As I said; this functionality is to go on top of other application functions, so simply using MyWi isnt an ...
while(sqlite3_step(compiledStatement) == SQLITE_ROW) {
// Read the data from the result row
NSLog(@"WHILE IS OK");
//// THIS NEXT STATEMENT ////
NSString *araci = [[NSString alloc] stringWithUTF8String:(char *)
sqlite3_column_text(compiledStatement, 1)];**
[deneme addObject:araci];
NSLog(@"Data read...
Hi, I have following 2 queries.
1)
I have developed an application for Mac.
I want to copy some of the files from application bundle to the library folder of home folder.
How to get path of the Library folder of home folder.
2)
I want to display the number of files of a directory in text field.
I have written the following code fo...
Can anyone enlighten me as to the differences between the two statements below.
[self playButtonSound];
AND:
[self performSelector:@selector(playButtonSound)];
I am just asking as I had some old code that used @selector, now with a little more knowledge I can't think why I did not use [self playButtonSound] instead, they both seem...
I am playing a wav file to give a little audio feedback when a button in my UI is pressed. My question is when you first press the button there is a delay (about 1.5secs) whilst the sound file "sound.wav" is loaded and cached. Is there a way to pre-cache this file (maybe in my viewDidLoad)? I guess I could do it by just playing it a view...
In the following code:
- (NSMutableArray *) fetchNotesForGroup: (NSString *)groupName {
// Variables declaration
NSMutableArray *result;
NSFetchRequest *fetchRequest;
NSEntityDescription *entity;
NSSortDescriptor *sortDescriptor;
NSPredicate *searchPredicate;
NSError *error = nil;
// Creates the fetchRequest and executes it
f...
Hello guys,
I've followed this tutorial for setting up a static library with common classes from 3 projects we are working on.
It's pretty simple, create a new static library project on xcode, add the code there, a change some headers role from project to public. The tutorial says I should add my library folder to the header search pat...
I write code below but it gives warning.. I identified dbdesc as a NSString but nothing changes.. How will I handle with this type of warnings?
**[self.searchDetailViewController setText:appDelegate.dbdesc];**
warning:'searchDetailViewController' may not respond to 'setText:'
(Messages without a message method signatures will be ass...
Hi there,
I'm currently developing an iPhone application, and when it comes to compiling, I have the aforementioned error. Here's the block of code it's on:
-(void)tableView(UITableView *)tableView{
didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NextViewController *nextController = [[NextViewController alloc]
...
I have been spending many frustrating hours trying to get rotations working on the iPhone version of Tunepal.
Firstly, I have a tab bar controller, with a navigation controller controlling each of the views. I actually only want one of my views to be able to rotate and that is the TuneDisplay. I have a subclassed the UITabBarController ...
What's the ObjectiveC syntax for specifying a protocol as an argument in a method?
Say I have 2 protocols, MyProtocol and MyProtocolCB:
@protocol MyProtocolCB <NSObject>
- (void) func;
@end
@protocol MyProtocol <NSObject>
- (void) register:(MyProtocolCB*) cb;
@end
I'm receiving this syntax error:
error: expected type-specifier befo...